---
title: "Self-Hosting Comma and BYOK · Comma Blog"
description: "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."
url: https://comma.surf/blog/self-hosting-comma
language: en
---

[Back to blog](https://comma.surf/blog)

Comma Team · November 21, 2026 · 2 min read

# 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 started](https://app.comma.surf/) [Read the docs](https://comma.surf/docs/self-host/install)

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:

| Service | Role |
| --- | --- |
| **Comma Server & Salix Harness** | Router, Workers, Task orchestration, Salix Loops, and channel connectors. |
| **Web App & Admin Console** | The Comma client UI and organization management console. |
| **PostgreSQL** | Conversations, Tasks, bindings, and organization state. |
| **Redis** | Live presence, queues, and coordination state. |
| **ClickHouse** | Telemetry, usage metering, and operational queries. |
| **MinIO** | Stored 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](https://comma.surf/docs/self-host).

## Hosted vs. Self-hosted: how to choose

| Consideration | Hosted (`app.comma.surf`) | Self-Hosted (AGPL-3.0) |
| --- | --- | --- |
| Setup time | Seconds (free to start) | Minutes via Docker Compose |
| Data storage | Comma managed cloud (never used for general model training) | 100% in your own PostgreSQL / MinIO / ClickHouse |
| Cloud computer & Meeting runtime | Managed out of the box | Attach your own Linux/Mac Devices; Meeting runtime configured separately |
| Cost | Free ($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`.

**Next up:** [Comma for Admins](https://comma.surf/blog/comma-for-admins) · [Comma for Engineering](https://comma.surf/blog/comma-for-engineering)

Guides

[Back to blog](https://comma.surf/blog)

Share

## Related posts

December 3, 2026

### [Comma 101](https://comma.surf/blog/comma-101)

December 2, 2026

### [Comma for Admins](https://comma.surf/blog/comma-for-admins)

December 1, 2026

### [Comma in Your Chat Apps](https://comma.surf/blog/comma-in-your-chat-apps)

## Try Comma, Now.

[Get started](https://app.comma.surf/)
