Configuration

Where ClaudeLink keeps its state, the per-CLI config files it writes, and the environment variables you can set.

Where state lives

ClaudeLink stores its database at ~/.claudelink/nexus.db. The path is fixed, so every agent across every project and every supported CLI converges on the same hub. Scheduler settings persist at ~/.claudelink/scheduler.json, with an audit log at ~/.claudelink/scheduler.log.

Other files under ~/.claudelink/:

FileWhat it holds
context-watcher.jsonContext-watcher settings for Fleet live context: the contextOccupancyThreshold saved from the threshold box (10 to 95 percent, one value for the fleet) and modelContextWindows, where you declare a 1M window per model.
fleet-snapshot.jsonWritten by the Command Center about once a minute while it runs: for each agent, its Claude Code session id, folder, and iTerm2 pane, keeping the last known entry per role. Used by fleet restore.
quota.jsonThe rate-limit headers the opt-in Plan Usage proxy captures. The Command Center reads it to draw the meters.
quota-proxy.lockLock file for the Plan Usage proxy. The suggested claude-metered shell function checks it to see whether the proxy is running before it starts Claude.

Per-CLI config files

Each client keeps its MCP config in its own format. claudelink init writes the right one for whichever flag you pass:

ClientConfig file
Claude Code.mcp.json (project) or ~/.claude.json (global)
Codex CLI~/.codex/config.toml
Gemini CLI.gemini/settings.json or ~/.gemini/settings.json
Goose~/.config/goose/config.yaml

Alongside the MCP config, init also writes an agent-instructions file per client (CLAUDE.md, AGENTS.md, GEMINI.md, or .goosehints) that teaches the agent to check its inbox and reply on its own.

Environment variables

VariableEffect
CLAUDELINK_UI=offDo not launch the Command Center.
CLAUDELINK_NOTIFY=offDisable desktop notifications.
CLAUDELINK_HARD_CAPMax consecutive Stop-hook auto-fires (default 5).
CLAUDELINK_COOLDOWN_SMinimum seconds between auto-fires (default 30).
CLAUDELINK_CHAIN_CAPMax reply-chain depth before auto-fire stops (default 8).
CLAUDELINK_HOOK_TTYOverride tty auto-detection, for testing or CI.

Set any of the cap or cooldown values to 0 to disable that guard. For what these guards do, see Auto-nudge.