Back to blog

Self-Hosting Comma and BYOK

Run open-source Comma (AGPL-3.0) with Docker Compose on your own servers, assign different models to Router and Workers, and keep every database in-house.

Get startedRead the docs

For many engineers and regulated companies, handing email, source code, and internal documents to a closed SaaS agent is a non-starter. Even with strong privacy promises, you want to inspect the code, control the storage, and route model traffic directly to your own endpoints.

Comma is open source under AGPL-3.0. You can run the full stack — web app, Admin console, agent harness (Salix), and storage — on infrastructure you manage with Docker Compose, with zero Comma seat or credit charges for self-hosted instances.

What runs on your server

A single Docker Compose stack starts the complete platform on one machine or inside your VPC:

ServiceRole
Comma Server & Salix HarnessRouter, Workers, Task orchestration, Salix Loops, and channel connectors.
Web App & Admin ConsoleThe Comma client UI and organization management console.
PostgreSQLConversations, Tasks, bindings, and organization state.
RedisLive presence, queues, and coordination state.
ClickHouseTelemetry, usage metering, and operational queries.
MinIOStored attachments, artifacts, and uploaded files.

Sign-in codes go out through your own mail server (SMTP / transactional mail provider). Your files, messages, and memories never leave your own databases.

Configuring BYOK and private models

In a self-hosted instance — or on the hosted Free plan — you choose the model provider directly:

  1. Configure your default provider endpoint, protocol, model ID, and API key in .env (or the Admin console).

  2. Set Router and Worker models independently:

    • Fast model for the Router so chat responses stay instant.

    • Frontier coding/reasoning model (or local model server) for background Workers.

  3. Optional: let team members attach Codex or Claude Code on their own Mac or Linux machines under Settings › Devices.

  4. Model calls bill straight to your provider account — no Comma credits required.

Quickstart workflow (Docker Compose)

  1. Clone the open-source repository and copy .env.example to .env.

  2. Fill in your base URL, mail server credentials, database secrets, and model provider endpoint/key.

  3. Start the stack with docker compose up -d.

  4. Open your instance URL, sign in with your first admin email, and connect your first app or channel (GitHub, Linear, Slack, Feishu/Lark, Telegram, or MCP).

See the full configuration reference and backup/upgrade procedures in Self-host Docs.

Hosted vs. Self-hosted: how to choose

ConsiderationHosted (app.comma.surf)Self-Hosted (AGPL-3.0)
Setup timeSeconds (free to start)Minutes via Docker Compose
Data storageComma managed cloud (never used for general model training)100% in your own PostgreSQL / MinIO / ClickHouse
Cloud computer & Meeting runtimeManaged out of the boxAttach your own Linux/Mac Devices; Meeting runtime configured separately
CostFree ($0) / Pro / Teams ($80/seat/mo)$0 software license; pay only your own infra & model provider

Operational habits for self-hosters

  • Back up PostgreSQL and MinIO together: Conversations reference stored attachment blobs in MinIO; keep snapshot schedules aligned.

  • Keep secrets out of prompts: Use OAuth apps and credential_env references so Worker subprocesses receive credentials without leaking them into logs or context.

  • Upgrade cleanly: Review release notes before pulling new container tags and follow the documented migration steps in /docs/self-host/operations.


Try Comma, Now.

Get started