Skip to content

Installation

RequirementMinimum
Python3.11 or later
Disk500 MB for NEXUS core
GPUNot required

No cloud accounts, API keys, or internet connection required after setup. The kernel runs standalone: connect a model provider whenever you’re ready.

Terminal window
git clone https://github.com/AllStreets/ONEXUS.git
cd ONEXUS
pip install -e .

The editable install (-e) means changes to the source are immediately reflected without reinstalling.

Terminal window
onexus status

Expected output:

NEXUS ready
kernel cortex engram pulse chronicle aegis
modules 0 active
data ~/.local/share/nexus/

If the command is not found, ensure your Python scripts directory is on $PATH. For pipx installs or virtual environments, activate the environment first.

NEXUS works without a language model for rule-based modules (Sentry, Chronicle queries, agents, etc.), but the cognitive modules (Council, Specter, Oracle, etc.) require an LLM.

Three options:

Set an environment variable and go:

Terminal window
# OpenAI
export NEXUS_OPENAI_KEY=sk-...
export NEXUS_DEFAULT_PROVIDER=openai
# Anthropic
export NEXUS_ANTHROPIC_KEY=sk-ant-...
export NEXUS_DEFAULT_PROVIDER=anthropic

Or register at runtime via the API after the kernel is already running:

Terminal window
curl -X POST http://localhost:8000/api/providers \
-H "Content-Type: application/json" \
-d '{"provider": "openai", "api_key": "sk-...", "set_default": true}'

Run any model locally via llama.cpp, Ollama, or vLLM:

Terminal window
# llama.cpp
llama-server --model qwen3-8b-q4.gguf --port 8384 --ctx-size 8192
# Ollama
ollama serve # then: ollama run qwen3:8b

NEXUS auto-connects to localhost:8384 by default. Override with NEXUS_LLM_PORT.

Start the kernel without any model. Memory, trust, audit, and event routing all work. Connect a provider later when you need inference.

NEXUS stores all runtime data, memory databases, audit logs, trust scores, in a single directory following the XDG Base Directory spec:

~/.local/share/nexus/
+-- nexus.db # memory, audit log, trust scores (single SQLite)
+-- models/ # local model files (optional)

To relocate this directory, set NEXUS_DATA_DIR before first run.