Quick Start
-
Install Bun (if not installed)
Terminal window curl -fsSL https://bun.sh/install | bash -
Clone and install dependencies
Terminal window cd assistantbun installcd web && bun install && cd .. -
Configure the environment
Terminal window cp .env.example .env# Edit .env with your database password, security keys, etc.# Or run the interactive setup wizard:bun run setup -
Create the database (if it does not exist)
Terminal window docker exec <db-container> psql -U <superuser> -c "CREATE DATABASE assistant;"docker exec <db-container> psql -U <superuser> -d assistant \-c "CREATE EXTENSION IF NOT EXISTS vector;"docker exec <db-container> psql -U <superuser> -d assistant \-c 'CREATE EXTENSION IF NOT EXISTS "uuid-ossp";' -
Start everything
Terminal window bin/octi start
The assistant start command will:
- Check that PostgreSQL and Redis are reachable
- Start the backend API server
- Start the Next.js web UI
- Wait for the health check to pass
- Open your browser to the web UI
CLI Management
Section titled “CLI Management”The assistant CLI provides all the commands you need to manage the application:
assistant start # Start backend + web UI, open browserassistant start --dev # Start in dev mode (hot reload)assistant stop # Stop all assistant processesassistant restart # Stop + startassistant status # Show running state and service healthassistant logs # Tail backend logsassistant logs --web # Tail web UI logsassistant open # Open web UI in browserTo make the assistant command available globally:
bun link # Creates global symlinkDesktop App Setup
Section titled “Desktop App Setup”Add Octipus to your application menu:
cp octipus.desktop ~/.local/share/applications/Create an Automator application or add to Dock. The CLI script auto-detects macOS and uses open for browser launch.
Use the bin/octi.cmd batch script. Create a shortcut to octi.cmd start on your desktop or pin to taskbar.
Package Scripts
Section titled “Package Scripts”In addition to the CLI, you can use these package scripts directly:
| Command | Description |
|---|---|
bun run start | Start backend only |
bun run dev | Start backend with hot reload |
bun run build | Build for production |
bun run start:all | Start everything (alias for bin/octi start) |
bun run stop:all | Stop everything (alias for bin/octi stop) |
Database
Section titled “Database”| Command | Description |
|---|---|
bun run db:migrate | Run database migrations |
bun run db:generate | Generate migrations from schema changes |
bun run db:studio | Open Drizzle Studio (database GUI) |
Development
Section titled “Development”| Command | Description |
|---|---|
bun test | Run unit tests |
bun run test:e2e | Run E2E API test suite |
bun run typecheck | Type check without emitting |
bun run setup | Interactive setup wizard |
bun run backup | Backup database, Redis, config, vault |
Next Steps
Section titled “Next Steps”Once Octipus is running, visit the web UI and:
- Register an account on the login page
- Configure a model on the Models page (connect Ollama, add API keys, etc.)
- Start chatting on the Chat page to test your setup