CLI reference
Every claudelink command you run from your own shell: init, status, ui, install-hooks, usage, restore, prompt-clear, reset, and help.
The tools in the tools reference are what agents call. These are the commands you run yourself, from your shell, to set up and manage ClaudeLink.
claudelink init # configure for current project
claudelink init --global # configure globally
claudelink status # show registered agents + stats
claudelink ui # open the Command Center
claudelink ui --stop # stop the Command Center
claudelink install-hooks # install autonomous-reply hooks
claudelink install-hooks --global # install hooks in ~/.claude
claudelink install-hooks --uninstall # remove ClaudeLink hooks
claudelink usage --on # start the Plan Usage quota proxy (opt-in)
claudelink usage # quota proxy status + last capture
claudelink usage --off # stop the quota proxy
claudelink restore # preview resuming every agent after a restart
claudelink restore --go # resume them (iTerm2 only)
claudelink restore --go --plain # resume without the Plan Usage meter
claudelink prompt-clear # print a paste-ready context prompt per agent
claudelink reset # clear all data (fresh start)
claudelink help # full helpinit
Writes the MCP config and agent-instructions file for whichever clients you flag: --claude, --codex, --gemini, --goose, or --all. Add --global to configure for your user instead of the current project. Flags stack. It is safe to run repeatedly; existing files are appended to with a marker check, never overwritten. Full details on the installation page.
status
Prints the registered agents and message statistics from the shared database, without opening the web console. Useful in scripts or a quick terminal check.
ui
Starts the Command Center manually, though any agent boot also launches it. ui --stop shuts it down gracefully.
install-hooks
Installs the Claude Code Stop hook for instant turn-end pickup, project or global. --uninstall removes it cleanly. The hook is a Claude Code supplement; other CLIs rely on the scheduler.
usage
Controls the opt-in Plan Usage quota proxy. usage --on starts a local passthrough proxy on 127.0.0.1:8788, usage with no flag prints the proxy state and the last capture, and usage --off stops it. No proxy process exists until you run usage --on.
restore
Resumes every agent after a restart. claudelink restore prints a preview of which session goes into which iTerm2 pane and types nothing. claudelink restore --go acts on the preview. It is iTerm2 only and for Claude Code sessions only. If Plan Usage was never set up, it types claude --resume <id>; if it is set up and the proxy is running, it types claude-metered --resume <id>; if it is set up and the proxy is not running, it stops and tells you to run claudelink usage --on or add --plain (v1.6.15+). Flags:
| Flag | Effect |
|---|---|
--go | Act on the preview. Without it nothing is typed. |
--only "Role A,Role B" | Limit to the named roles. |
--allow-medium | Include matches made by pane order. |
--batch N | Terminals started before each pause (default 3). |
--plain | Resume with plain claude, without the Plan Usage meter (v1.6.15+). |
The full walkthrough, including how panes are matched, is on the Fleet restore page.
prompt-clear
claudelink prompt-clear prints a paste-ready prompt that tells an agent its context is high and asks whether it is ready to clear or compact, with each agent's measured context numbers filled in. --agent <role> prints it for that one role. It only prints to your shell: it never types into a terminal and never runs /clear or /compact. It is the same text as the Copy prompt button in the Command Center's Fleet live context panel.
reset
Clears all ClaudeLink data for a fresh start. It empties the database but keeps your config in place, so agents reconnect on next launch with an empty mesh.