Get started with CCCC using the command line.
Install CCCC using the installation guide. This walkthrough uses Claude Code: install its CLI and sign in first. If Claude asks you to trust your project, you can answer in the project beforehand or later in the agent's terminal (Step 4). You can use another supported runtime that you have already configured.
Check that CCCC is available in your terminal:
cccc --version
cccc doctordoctor reports the installation, detected runtimes and daemon status. Detecting
a runtime does not verify its provider login. The daemon can be stopped at this
point; start it next.
cccc daemon start
cccc daemon statusdaemon start reuses an already-running compatible daemon. Commands such as
attach, actor and send need the daemon to be running.
cd /path/to/your/project
cccc attach .This creates a new Group, binds the current directory as its project workspace
(a "scope"), and selects it as the active Group. The output includes its
group_id. To return to an existing Group, use cccc groups and
cccc use <group_id>; running cccc attach . again creates another Group.
In CCCC, a Group member running or connected to an agent runtime is called an agent. The CLI keeps the command name
cccc actor and fields such as actor_id for that same member.
cccc actor add assistant --runtime claudeThe first non-internal agent in the Group's member list is the "foreman" (coordinator). Disabling that agent does not automatically promote another.
CCCC injects the CCCC MCP integration when it starts this Claude Code session;
no separate cccc setup step is needed for this example. Other runtimes may
require setup. See Supported Runtimes and
cccc setup for their integration requirements.
cccc group startgroup start starts the Group's enabled agents. To start just one agent, use:
cccc actor start assistantCheck cccc actor list for agent state. If startup requires an interactive
prompt, use the agent's terminal in the Web UI.
cccc send "Hello! Please introduce yourself." --to assistantFollow the Group's recorded messages and other events as JSON:
cccc tail -fLook for the agent's chat.message events. Its native terminal output is
available in the Web UI. Press Ctrl+C to stop following; this leaves the
agents running.
cccc inbox serves a different purpose: it reads and consumes an agent's
unread Mail, marking that batch as read. Use tail or Web chat to view responses.
Once Codex is installed and signed in, add a second agent:
cccc actor add reviewer --runtime codex
cccc actor start reviewerSend to specific agents:
cccc send "Please implement the feature" --to assistant
cccc send "Please review the code" --to reviewer
cccc send "Please coordinate the next step" --to "@foreman"
cccc send "Team-wide constraint: pause deploys until CI is green" --to "@all"Use task-backed delegation when the work should survive chat context switches and needs an owner, outcome, or completion evidence:
cccc tracked-send "Please implement the feature and reply with validation evidence." \
--to assistant \
--title "Implement feature" \
--outcome "Feature is implemented and validation evidence is reported"The multiline example uses Bash line continuations. In PowerShell, enter it on one line.
Replace <event_id> with the id of the message you want to answer from tail:
cccc reply <event_id> "Thanks, that looks good!"
cccc reply <event_id> "Non-urgent follow-up" --to assistant --mode mailMail is for agent recipients and does not prompt them immediately.
Commands that accept --group resolve it in this order: the explicit option,
the CCCC_GROUP_ID environment variable, then the active Group selected by
attach or cccc use. Changing directories alone does not switch Groups.
Messaging uses --by, then CCCC_ACTOR_ID, then user. An agent therefore
keeps its own Group when another session changes the active Group.
For other instances, use cccc connect to discover accessible Groups, then
cccc send --dst-instance ... --dst-group .... Reply with the incoming local
Event ID. See Agent collaboration for the
complete discovery, send and reply flow, including Direct connections.
cccc groups # List all groups
cccc use <group_id> # Switch group
cccc active # Show active group
cccc group show <group_id> # Show group metadata
cccc group start # Start this Group's enabled agents
cccc group stop # Stop this Group's agents; keep historycccc actor list # List agents
cccc actor add <id> --runtime <r> # Add agent
cccc actor start <id> # Start agent
cccc actor stop <id> # Stop agent
cccc actor restart <id> # Restart agent
cccc actor new-session <id> # Restart with a new session
cccc actor remove <id> # Remove agentcccc send "message" # No --to: default recipient policy applies (default: foreman)
cccc send "msg" --to assistant # To specific agent
cccc send "msg" --to "@foreman" # Ask the coordinator
cccc send "msg" --to "@all" # Explicit broadcast, not default task dispatch
cccc tracked-send "work" --to assistant --title "Task title" --outcome "Done criterion"
cccc reply <event_id> "response" # Reply to message
cccc inbox --actor-id assistant # Read and consume an agent's unread Mail
cccc tail -n 50 # Recent events
cccc tail -f # Follow events
cccc ledger search --by assistant # Search events by sendercccc daemon status # Check status
cccc daemon start # Start daemon
cccc daemon stop # Stop daemon and its managed processes across Groups
cccc daemon stop --keep-agents # Linux and native arm64 macOS: stop only the daemon and keep agents runningIn another terminal, start the Web UI:
cccc webcccc with no subcommand starts the same services; in an interactive terminal
it also opens a status panel for this launch, and cccc --headless is identical
to cccc web. Both reuse the daemon if it is already running, or start it if
needed. Open http://127.0.0.1:8848/ with the
default settings; if you configured a different binding, use the address shown
at startup. Use cccc web --port 9000 to choose another port.
| Variable | Default | Description |
|---|---|---|
CCCC_HOME |
~/.cccc |
Runtime directory |
CCCC_WEB_PORT |
8848 |
Web UI port when no saved binding or --port takes precedence |
Use the same CCCC_HOME for commands that should share Groups and runtime
state. See the CLI reference for all Web
binding options and their precedence.
After exiting tail -f with Ctrl+C, stop the current Group's agents:
cccc group stopThe Group and its recorded history remain available. cccc group start starts
its agents again. Use cccc daemon stop when you want to stop the whole instance,
including managed processes in other Groups.
cccc daemon status
cccc doctorIf the daemon is stopped, run cccc daemon start. If it is unresponsive, inspect
the reported error before deliberately stopping and restarting it; a daemon
restart interrupts managed processes across Groups.
# Check agent status
cccc actor list
# Inspect recorded errors and messages
cccc tail -n 50Inspect the agent's terminal in the Web UI for login, trust or approval prompts.
Check its runtime integration. After fixing the cause, retry with
cccc actor start <actor_id> or deliberately restart it with
cccc actor restart <actor_id>.
# List all groups
cccc groups
# Select an existing Group
cccc use <group_id>
cccc activeConfirm that this terminal uses the expected CCCC_HOME. Use attach when you
intend to create a new Group or explicitly attach a scope to an existing one.
- Workflows - Learn collaboration patterns
- CLI Reference - Complete command reference
- IM Bridge - Set up mobile access