Skip to content

Quick Start

  1. Install Bun (if not installed)

    Terminal window
    curl -fsSL https://bun.sh/install | bash
  2. Clone and install dependencies

    Terminal window
    cd assistant
    bun install
    cd web && bun install && cd ..
  3. 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
  4. 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";'
  5. 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

The assistant CLI provides all the commands you need to manage the application:

Terminal window
assistant start # Start backend + web UI, open browser
assistant start --dev # Start in dev mode (hot reload)
assistant stop # Stop all assistant processes
assistant restart # Stop + start
assistant status # Show running state and service health
assistant logs # Tail backend logs
assistant logs --web # Tail web UI logs
assistant open # Open web UI in browser

To make the assistant command available globally:

Terminal window
bun link # Creates global symlink

Add Octipus to your application menu:

Terminal window
cp octipus.desktop ~/.local/share/applications/

In addition to the CLI, you can use these package scripts directly:

CommandDescription
bun run startStart backend only
bun run devStart backend with hot reload
bun run buildBuild for production
bun run start:allStart everything (alias for bin/octi start)
bun run stop:allStop everything (alias for bin/octi stop)
CommandDescription
bun run db:migrateRun database migrations
bun run db:generateGenerate migrations from schema changes
bun run db:studioOpen Drizzle Studio (database GUI)
CommandDescription
bun testRun unit tests
bun run test:e2eRun E2E API test suite
bun run typecheckType check without emitting
bun run setupInteractive setup wizard
bun run backupBackup database, Redis, config, vault

Once Octipus is running, visit the web UI and:

  1. Register an account on the login page
  2. Configure a model on the Models page (connect Ollama, add API keys, etc.)
  3. Start chatting on the Chat page to test your setup