An open-source, touch-optimized control plane for managing AI coding agents.
Supports Claude Code agents (any Anthropic-compatible provider), OpenAI Codex agents (any OpenAI-compatible provider), Google Gemini CLI agents, Muse Code agents, and Grok Build (local `grok` CLI over ACP). Works with API key or subscription-based authorization.
Features
- Agents can operate Circus Chief itself. Each agent can inspect sessions, spawn follow-ups, schedule retries, stop/restart work, and react to results.

- Visual Kanban board per project. Lanes can auto-move cards on completion and run a template or custom prompt when a card lands in them — so the board can drive the workflow, not just reflect it.

- Schedule work ahead of time. Plan agent sessions for a later time, from one-off prompts to full template pipelines.

- Opt-in retry on usage limits. Toggle it on for a session and, if it hits a token cap or provider outage, it reschedules itself and picks up where it left off.

- Configurable, chainable templates. Each template defines a prompt and session settings, and one template can auto-launch the next. Example pipeline: plan → review plan → implement the plan → review implementation → open PR — templates can invoke themselves.

- AI-generated summaries on every session, so you can see what each agent is doing and where you left off without re-reading the whole transcript. You can turn this off in project settings.

- User-configured commands. Add one-tap buttons for the project commands you run constantly: tests, lint, build, typecheck, CI checks. Output streams live, and pass/fail results can optionally display on the dashboard.

- Claude Code, Codex, Gemini, Muse, and Grok Build sessions. Start any kind of agent from the same dashboard, with the same mobile controls, history, canvas, commands, and worktree isolation. Switch agents and/or providers freely. Invoke parallel agents against the same worktree or in their own work trees.

- Worktree-per-session isolation. Every session gets its own git worktree. You can also elect to work in the main git repo, or on a specific branch of the main git repo.

- Shared canvas. Markdown, images, JSON, code — agents and you edit the same artifacts. Version history included.

- Bring your own provider — per session. Use subscription auth for Anthropic, OpenAI, Google, or Muse (
muse auth), or point sessions at third-party providers with Anthropic- or OpenAI-compatible endpoints. Grok Build uses the localgrokCLI (grok login) and does not take an API key. Claude Code, Codex, Gemini CLI, Muse Code, and Grok Build are all first-class paths.
- Model tiers with automatic failover. Group models across providers into an ordered fallback list (e.g. Opus → GPT-5.5) and bind it anywhere you'd normally pick a model — sessions, templates, kanban lanes, project defaults, summaries. If the first model can't start a new session (outage, rate limit, out of tokens), Circus Chief automatically starts on the next healthy model in the tier.

- Auto-linked GitHub PRs with live CI and merge/conflict state (needs
gh).
How to Run
Options
| Flag | Description |
|---|---|
-p, --port <number> |
Port to listen on (default: 5000) |
-H, --host <address> |
Network address to bind to (default: 127.0.0.1; flag only, no env var). For LAN, Docker, or remote access, use --host 0.0.0.0. |
--no-analytics |
Disable anonymous usage analytics |
--ssl-cert <path> / --ssl-key <path> |
Serve HTTPS with your own PEM cert + key (must supply both) |
--self-signed |
Serve HTTPS with an auto-generated self-signed cert (needs openssl) |
--tls-dir <path> |
Storage dir for the self-signed cert pair (default: ~/.circuschief/tls/) |
--auth |
Enable HTTP Basic auth with the default file (~/.circuschief/.htpasswd) |
--auth-file <path> |
Enable HTTP Basic auth with a custom htpasswd file (implies --auth) |
-h, --help |
Show help message |
-v, --version |
Show version number |
Example — run on a custom port:
Example — serve HTTPS with your own certificate:
npx circuschief --ssl-cert ./cert.pem --ssl-key ./key.pem
Example — serve HTTPS with a self-signed certificate:
npx circuschief --self-signed
The self-signed pair is generated once (RSA 2048, ~825 days, SANs for localhost, LAN IPs, and hostname) and reused from ~/.circuschief/tls/ on later boots. Self-signed certificates are encrypted but untrusted — browsers will warn until the cert is trusted. TLS is HTTPS-only: there is no HTTP→HTTPS redirect.
Example — require a password (Basic auth):
# 1. create the credential file (prompts for a password, bcrypt-hashed) npx htpasswd -cB ~/.circuschief/.htpasswd admin chmod 600 ~/.circuschief/.htpasswd # 2. launch with auth enabled (default file) npx circuschief --auth # custom path (implies --auth; e.g. Docker volume, shared config dir) npx circuschief --auth-file /run/secrets/circuschief.htpasswd
Auth is off by default and turns on only via --auth / --auth-file — the
mere presence of the file does nothing. When enabled, every REST route, the
/ws WebSocket upgrade, and the production frontend require the credentials,
except GET /api/server-info, which stays open so port-probing tooling can
identify the server instance. Password changes apply without a restart;
toggling auth on/off requires a relaunch, as does disabling (relaunch without
the flag). Basic auth sends base64 credentials with every request, so pair it
with TLS (above) whenever the server binds beyond localhost.
Prerequisites
- macOS or Linux
- Node.js 20+
- Claude Code — required for Claude Code agents
- OpenAI Codex CLI — required for Codex agents
- Google Gemini CLI — required for Gemini agents
- Muse Code CLI (
museon PATH, authenticated viamuse auth) — required for Muse agents - Grok Build (
grokon PATH, authenticated viagrok login) — required for Grok Build agents. Circus Chief does not take an xAI API key. - GitHub CLI (optional — enables automatic PR linking)
Documentation
- Development Guide — Quick start, commands, testing, environment variables
- Build & Distribution — How the npm package is built, published, and run
- Agent System Prompt & REST API Reference — The REST API exposed to agents via the system prompt
License and Trademarks
Circus Chief is licensed under the Apache License 2.0, including its warranty and liability disclaimers. See NOTICE for attribution and trademark notices, and TRADEMARKS.md for the project trademark policy covering Circus Chief, Circus Time, and Circus Search.
