---
title: "Deploy CCCC"
description: "Coordinate AI coding agents in a group chat, with a token-locked Web UI"
category: "AI/ML"
url: https://railway.com/deploy/cccc
---

# Deploy CCCC

Coordinate AI coding agents in a group chat, with a token-locked Web UI

**[Deploy CCCC on Railway](https://railway.com/template/cccc)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/cccc/manifest.json

- **Creator:** Agaz Self-Host
- **Category:** AI/ML

## Template content

### CCCC https://raw.githubusercontent.com/ChesterRa/cccc/v0.4.60/web/public/logo-512.png

- **Source:** https://github.com/aalfath/cccc-railway-template
- **Health check:** /api/v1/health
- **Public domain:** Yes

## Documentation

# Deploy and Host CCCC on Railway

CCCC is an open-source coordinator for AI coding agents. It puts Claude Code, Codex, Pi, OpenCode and other agent CLIs into one persistent Group chat with tracked delivery, read receipts, tasks and shared context, and gives you a Web UI to run and watch them from any browser, including your phone.

## About Hosting CCCC

This template runs one service: the official CCCC v0.4.60 Linux release (checked against its sha256) with Claude Code, Codex and Pi preinstalled, built from a public GitHub repo. A single volume at `/data` keeps Groups, ledgers, access tokens, agent logins and your project folders, so they survive redeploys. The Web UI is locked on the first deploy: a generated admin Access Token is the only way in. The LLM API key you enter is used by the Pi agent; you can sign in to other agent CLIs from their terminal in the Web UI. CCCC with one Pi agent stays near 100 MB; give it more memory for more agents.

## Common Use Cases

* Run a small team of coding agents (a foreman plus peers) on a repository and follow their work from the browser
* Keep long-running agent work going 24/7 on a server instead of a laptop, with a durable message history
* Check on agents and answer their questions from your phone, or through Telegram, Slack or Discord bridges

## Dependencies for CCCC Hosting

* An API key for an OpenAI-compatible LLM provider (OpenAI by default), or an agent CLI login such as Claude Code
* A Railway volume for `/data` (included)

### Deployment Dependencies

* CCCC source and releases: https://github.com/ChesterRa/cccc (v0.4.60)
* Documentation: https://chesterra.github.io/cccc/
* Template repo: https://github.com/aalfath/cccc-railway-template

### Implementation Details

**Services.** One service, `CCCC`, built from `aalfath/cccc-railway-template`. It runs `cccc --headless` (daemon and Web UI) as an unprivileged user on Railway's `PORT`, behind Railway's HTTPS domain. Health check: `/api/v1/health`.

**After deploy.**

1. Open the service's variables and copy `CCCC_ADMIN_TOKEN`.
2. Open the public URL and paste the token into the sign-in form. The browser keeps a session cookie for 30 days.
3. Choose **New**, create a Group in a folder under `/data/workspace` (for example `/data/workspace/myproject`; clone your repo there from an agent's terminal), then **Add an agent** and pick a runtime. **Pi** is already set up with your `LLM_API_KEY`, `LLM_BASE_URL` and `LLM_MODEL`. For **Claude Code** or **Codex**, sign in once from the agent's terminal, or add `ANTHROPIC_API_KEY` / `OPENAI_API_KEY` to the service variables.

**Variables.** `CCCC_ADMIN_TOKEN` is generated. `LLM_API_KEY` is the only prompt. `LLM_BASE_URL` (default `https://api.openai.com/v1`) and `LLM_MODEL` (default `gpt-5.4-mini`) point Pi at any OpenAI-compatible provider, such as OpenRouter, DeepSeek or a self-hosted gateway. Changing `CCCC_ADMIN_TOKEN` adds the new value as an admin token on the next start; remove old tokens in **Settings &gt; This instance &gt; Web Access**.

**Security.** Agents run with their approval prompts bypassed and can run any command inside the container, and anyone with the admin token controls them. Keep the token private, and give agents only the credentials they need. Docker-in-Docker and CCCC's projected browser are not available on Railway.

**Resources.** CCCC with one Pi agent running a tool job peaked under 100 MB in our tests at a 0.5 GB limit, so one agent fits the Free plan. We did not measure Claude Code or Codex under load: for those, or for several agents at once, choose Hobby or higher and raise the service's memory limit.

**Updates.** The template builds from a public GitHub repo. When we publish a new CCCC version there, Railway shows you an "update available" notice and you choose when to apply it. Read the repo's `CHANGELOG.md` first. Your data on `/data` is kept.

## Why Deploy CCCC on Railway?


Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying CCCC on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.



## Similar templates

- [Chat Chat](https://railway.com/deploy/-WWW5r) — Chat Chat, your own unified chat and search to AI platform.
- [Weaviate](https://railway.com/deploy/weaviate-1) — Vector database with hybrid search and an API key-protected API
- [Möbius Personal AI OS](https://railway.com/deploy/mobius-v01-personal-ai-os) — Self-hosted AI agent that builds and runs apps for you, with memory.

Open this page in a browser: https://railway.com/deploy/cccc
