Quick Start
The fastest path to a running Octipus. The setup wizard generates your secrets,
writes a minimal .env, registers your admin account, and wires a first model —
so most of the steps below are one command.
-
Install Bun (and Node.js ≥ 18 for the web UI)
Terminal window curl -fsSL https://bun.sh/install | bashSee Installation for full requirements.
-
Clone the repo and install dependencies
Terminal window git clone https://github.com/PatriceA/octipus.gitcd octipusbun installcd web && bun install && cd .. -
Run the setup wizard
Terminal window bun run setupThe wizard:
- lets you choose embedded or external storage,
- generates
MASTER_KEY,JWT_SECRET, andSESSION_SECRET, - writes a minimal
.env(it won’t overwrite an existing one), - registers your admin account (the first user is the admin),
- optionally wires a model provider + default model, and installs optional capabilities (Playwright, MCP server, browser extension).
If you picked external, start PostgreSQL + Valkey first — see Installation → Backing services.
-
Start everything
Terminal window octi start # or: bun run start:allThis starts the backend API, waits for its health check, then starts the web UI. Database migrations run automatically on first boot — there is no manual migrate step.
-
Open the web UI
Visit http://localhost:3007 and log in with the admin account you created in the wizard.
What runs
Section titled “What runs”| Process | Default port | Notes |
|---|---|---|
| Backend API | 3005 | Bun (API_PORT) |
| Web UI | 3007 | Next.js (WEB_PORT) |
Stop everything with octi stop (= bun run stop:all).
The octi CLI
Section titled “The octi CLI”octi is the day-to-day entry point — it manages the processes, the setup wizard, the
terminal client, and health checks. octi setup puts it on your PATH at install
time; until then call it as bin/octi <command>.
octi start [--dev] # Start backend + web UI (waits for health check)octi stop # Stop all Octipus processesocti restart [--dev] # Restart everythingocti status # Show running stateocti logs [--web] # Tail backend (or web) logsocti open # Open the web UI in your browserocti setup [--remote <url>] # Run the setup wizard (local, or against a remote backend)octi tui # Launch the terminal chat clientocti edit # Launch the TUI editorocti doctor [--json] # Environment health checksocti capabilities [install] # List or install optional tools (browser, MCP, …); alias: octi capsocti models recommend [--install <id>] # Recommend local models for this hardware (and pull/bind one)octi persona [show] # Print the resolved persona (edit it in the web UI)octi version # Print versionocti help # Full command listEquivalent package scripts
Section titled “Equivalent package scripts”The common lifecycle commands have bun run equivalents (handy in CI or where octi
isn’t on PATH). octi start is literally bun run start:all under the hood.
octi command | Package script |
|---|---|
octi start | bun run start:all |
octi stop | bun run stop:all |
octi setup | bun run setup |
| — (backend only, hot reload) | bun run dev |
| — (backend API only) | bun run start |
Other package scripts (no octi equivalent)
Section titled “Other package scripts (no octi equivalent)”| Command | Description |
|---|---|
bun run db:migrate | Run migrations manually (CI/ops — normally automatic on boot) |
bun run db:generate | Generate a migration from schema changes (developers) |
bun test / bun run test:e2e | Unit / E2E tests |
bun run backup | Back up database, Valkey, config, and vault |
Desktop launcher (optional)
Section titled “Desktop launcher (optional)”cp octipus.desktop ~/.local/share/applications/Create an Automator application or add bin/octi start to your Dock. The CLI
auto-detects macOS and uses open to launch the browser.
Use bin/octi.cmd. Create a shortcut to octi.cmd start or pin it to the taskbar.
Next steps
Section titled “Next steps”Once you’re logged in:
- Add a model on the Models page (connect Ollama, or add a provider API key —
stored in the encrypted vault, not your
.env). - Start chatting on the Chat page to confirm routing works.
- Tune everything else under Settings → Configuration — it’s all stored in the database. See Configuration.
Prefer containers? See Docker Setup for a self-contained stack.