Home

Awesome

Neutron

Welcome to Neutron.

Neutron

Galaxy

Acknowledgement

First i would like to thank the All-Mighty God who is the source of all knowledge, without Him, this would not be possible.

Disclaimer: AI can make mistakes, consider cross-checking suggestions.

🌐 Introducing Nebula Pro: A New Era in Ethical Hacking 🌐

🚀 We're thrilled to unveil a sneak peek of Nebula Pro, our latest innovation designed to empower ethical hackers with advanced, AI-driven capabilities. After months of dedicated development, we have launched the preview version. Some of the exciting features are:

Neutron is now a part of Nebula Pro's free tier

📺 Click Here to Get Access To Nebula Pro Now 🚀

Why Neutron?

The purpose of Neutron is straightforward: to provide security professionals with access to a free AI assistant that can be invoked directly from their command line interface. It was built as part of the free tier of Nebula Pro.

Click Here to Watch Neutron in Action

Compatibility

Neutron has been extensively tested and optimized for Linux platforms. As of now, its functionality on Windows or macOS is not guaranteed, and it may not operate as expected.

System dependencies

PYPI based distribution requirement(s)

To install the above dependencies:

pip install fastapi uvicorn pydantic torch transformers regex argparse typing-extensions langchain_community langchain_core

PIP:

pip install neutron-ai

Upgrading

For optimal performance and to ensure access to the most recent advancements, we consistently release updates and refinements to our models. Neutron will proactively inform you of any available updates to the package or the models upon each execution.

PIP:

pip install neutron-ai --upgrade

Usage.

Server

usage: server.py [-h] [--host HOST] [--port PORT]

Run the FastAPI server.

options:
  -h, --help   show this help message and exit
  --host HOST  The hostname to listen on. Default is 0.0.0.0.
  --port PORT  The port of the webserver. Default is 8000.

The server can be invoked using the following command after installation using pip:

neutron-server 0.0.0.0 8000

Client

usage: client.py [-h] [--server_url SERVER_URL] question

Send a question to the AI server.

positional arguments:
  question              The question to ask the AI server.

options:
  -h, --help            show this help message and exit
  --server_url SERVER_URL
                        The URL of the AI server, defaults to http://localhost:8000

The client can be invoked using the following command after installation using pip:

neutron-client "your question"

To use Neutron AI directly from the command line using a shorter alias for example AN, add the following function to your .bashrc or .zshrc:

function AN() {
    local query="$*"
    neutron-client "$query"
}

After adding, restart your terminal or run 'source ~/.bashrc' (or 'source ~/.zshrc') to apply the changes.

Then after starting the server, you can ask your questions like so:

AN your question

Authentication

To use a password for the server and client simply add it to your ENVs before you run the server and the client like so:

export NEUTRON_TOKEN="YOUR_SECRET"