Skip to content

Configuration File

CACD stores its configuration in ~/.config/cacd/config.json (or a custom location if you set CACD_CONFIG_DIR).

  • Linux/macOS: ~/.config/cacd/config.json
  • Custom: Set via CACD_CONFIG_DIR environment variable
{
"port": 54321,
"webEnabled": true,
"accessToken": "word-word-word",
"passcodeHash": "...",
"shortcuts": { ... },
"statusHooks": { ... },
"worktreeHooks": { ... },
"worktree": { ... },
"agents": { ... },
"autoApproval": { ... }
}
FieldTypeDescription
portnumberWeb interface port (randomly generated during setup)
webEnabledbooleanWhether web interface is enabled
accessTokenstring3-word token for WebUI URL
passcodeHashstringHashed passcode for authentication
{
"shortcuts": {
"returnToMenu": { "ctrl": true, "key": "e" },
"cancel": { "key": "escape" }
}
}

See Keyboard Shortcuts.

{
"statusHooks": {
"idle": { "command": "notify-send 'Session idle'", "enabled": true },
"busy": { "command": "", "enabled": false },
"waiting_input": { "command": "notify-send 'Needs input'", "enabled": true }
}
}

See Status Hooks.

{
"worktreeHooks": {
"postCreate": "cd \"$CACD_WORKTREE_PATH\" && npm install"
}
}

See Worktree Hooks.

{
"worktree": {
"autoDirectory": true,
"autoDirectoryPattern": "../worktrees/{branch}",
"copySessionData": false,
"sortBy": "name"
}
}
FieldTypeDescription
autoDirectorybooleanAuto-generate worktree paths
autoDirectoryPatternstringPattern for auto-generated paths
copySessionDatabooleanDefault for copying Claude session data
sortBystringSort worktrees by “name” or “lastAccess”
{
"agents": {
"agents": [
{
"id": "claude",
"name": "Claude Code",
"kind": "agent",
"command": "claude",
"options": [
{ "id": "model", "flag": "--model", "label": "Model", "type": "string" }
]
}
],
"defaultAgentId": "claude",
"schemaVersion": 1
}
}

See Agent Profiles.

{
"autoApproval": {
"enabled": false,
"timeout": 30,
"customCommand": ""
}
}
FieldTypeDescription
enabledbooleanEnable auto-approval
timeoutnumberTimeout in seconds (default: 30)
customCommandstringCustom verification command

See Auto-Approval.

CACD also maintains:

  • ~/.config/cacd/projects.json - List of tracked projects
  • ~/.config/cacd/agents.json - Agent configurations (if separate from main config)

You can edit the config file directly, but it’s easier to use the Settings UI in CACD. Changes made in the UI are saved automatically.

If you edit manually, restart CACD to pick up changes.