
# NexusOS
**A local-first AI assistant platform.** Runs entirely on your machine — a
Python/FastAPI backend, a bundled Ollama instance for inference, a persistent
memory service, and a React frontend. No external AI provider is called.
---
## What it is
NexusOS ("Nexus") is a self-hosted assistant you actually own. All inference
runs through a **locally bundled Ollama** on `localhost`; conversations, facts,
and settings live in local SQLite. It ships with desktop branding (XFCE theme,
icons, boot splash) so it can be run as a full assistant environment, not just
a web app.
- **Chat** — streaming responses from local Ollama models (SSE).
- **Persistent memory** — a dedicated service auto-extracts durable facts from
each exchange and layers them into future prompts.
- **Playbooks** — ordered YAML system-prompt records; the first is the active
persona, the rest are injected as reference context.
- **Model management** — list, pull, and delete Ollama models from the UI/CLI.
- **History** — full conversation persistence, search, edit, export.
## Quick start
Requires Python 3, Node, and a GPU is optional (CPU works).
```bash
# 1. Install deps into the Promethean venv (auto-selects AMD/NVIDIA/CPU)
./bin/install.sh
# 2. Launch the full stack (memory :8001, backend :8000, frontend :5173)
./launch_nexus.sh
```
Python deps are layered: `requirements-base.txt` (GPU-agnostic core) plus one
overlay — `requirements-amd.txt` (ROCm), `requirements-nvidia.txt` (CUDA), or
`requirements-wsl.txt` (CPU-only). `bin/install.sh` picks the right one for the
host.
### Individual services
```bash
source Promethean/bin/activate
uvicorn synapse.main:sio_app --host 0.0.0.0 --port 8000 --reload # backend
uvicorn synapse.memory.service:app --host 0.0.0.0 --port 8001 --reload # memory
cd interface/web && npm run dev # frontend
```
## CLI (`ncp`)
Start/stop services and drive the same features as the web UI over the REST API:
```bash
./management/nexus-cli.sh start # backend + frontend (--backend|--frontend|--memory)
./management/nexus-cli.sh stop
ncp chat "