Commands
The kapacitor CLI command surface, grouped by what you’d reach for. For every command, kapacitor <command> --help gives the full flag list. This page is a navigable summary.
Setup and auth
Section titled “Setup and auth”kapacitor setup # interactive wizardkapacitor setup --server-url <url> --no-prompt # scripted / CIkapacitor login # OAuth in browserkapacitor login --device # device flow (SSH / headless)kapacitor logout # delete stored tokenskapacitor whoami # show authenticated userkapacitor status # server health checkTokens are stored at ~/.config/kapacitor/tokens.json. Auth0 tokens auto-refresh; direct GitHub tokens expire after 24 hours and the next CLI call will reprompt.
See Install the CLI for the wizard walkthrough.
Session lookup
Section titled “Session lookup”kapacitor recap <sessionId> # AI-generated summarykapacitor recap --full <sessionId> # complete transcriptkapacitor recap --chain <sessionId> # across the continuation chainkapacitor recap --chain --full <sessionId>
kapacitor errors <sessionId> # extract tool-call errorskapacitor errors --chain <sessionId>
kapacitor validate-plan <sessionId> # verify all plan items completedThe identifier can be a session GUID or a meta-session slug. Inside Claude or Codex with the plugin installed, the session ID is resolved from the environment automatically.
More: Session recap, Errors & plan validation.
Recording control
Section titled “Recording control”kapacitor hide # mark current session owner-onlykapacitor hide <sessionId> # specific session
kapacitor disable # stop recording + delete server data (irreversible)kapacitor disable <sessionId>
kapacitor ignore . # ignore current directory (no capture for sessions under it)kapacitor ignore ~/code/xkapacitor ignore --listkapacitor ignore --remove ~/code/xMore: Visibility & sharing.
Evaluations and review
Section titled “Evaluations and review”kapacitor eval <sessionId> # LLM-as-judge, 13 questionskapacitor eval --model opus <sessionId>kapacitor eval --chain <sessionId>kapacitor eval --questions safety <sessionId>kapacitor eval --skip efficiency <sessionId>kapacitor eval --threshold 5000 <sessionId>kapacitor eval --list-questions
kapacitor review <pr-url> # Claude with MCP context toolsMore: Evaluations, PR review.
MCP servers (for agents)
Section titled “MCP servers (for agents)”kapacitor mcp sessions # stdio MCP server: search past sessionsThe Kapacitor plugin (installed by kapacitor setup) auto-registers this server for both Claude Code and Codex CLI, so it’s available out of the box on either harness.
The server is repo-aware — cd into a project before launching the agent and search_sessions defaults to that repo. Three tools: search_sessions, get_session_summary, get_session_transcript. See Session recall.
Importing past sessions
Section titled “Importing past sessions”kapacitor import --all # every discovered session (Claude)kapacitor import --orgkapacitor import --repo owner/repokapacitor import --repo .kapacitor import --codex --org # Codex rolloutskapacitor import --org --privatekapacitor import --org --since 2026-01-01kapacitor import --org --cwd /pathkapacitor import --org --session abc123
kapacitor cursor import # current Cursor workspacekapacitor cursor import --workspace /pathkapacitor cursor import --allMore: Import your history.
Hooks and plugin
Section titled “Hooks and plugin”kapacitor plugin install # Claude hooks, user scopekapacitor plugin install --codex # Codex hooks + agent skills, user scopekapacitor plugin install --skills # Agent skills only (~/.agents/skills/), no Codex hookskapacitor plugin install --project # Claude hooks, current repokapacitor plugin install --codex --project # Codex hooks in <repo>/.codex/hooks.json, skills user-widekapacitor plugin remove --codex # Remove Codex hooks + agent skillskapacitor plugin remove --skills # Remove agent skills--skills installs the five kapacitor skills (kapacitor-recap, kapacitor-errors, kapacitor-hide, kapacitor-disable, kapacitor-validate-plan) to ~/.agents/skills/. Codex, Cursor, and any agent that honours the .agents/skills/ convention picks them up automatically. Use --codex instead to also install Codex hooks.
Project-scope installs must be run from inside a git working tree. Skills are always user-wide; --project only affects hooks.
Daemon
Section titled “Daemon”kapacitor daemon start # foreground (default --name = OS username)kapacitor daemon start -d # backgroundkapacitor daemon start --name laptop -dkapacitor daemon statuskapacitor daemon status --name laptopkapacitor daemon stop --name laptopkapacitor daemon stop --yes # stop all, no promptkapacitor daemon doctor # diagnose lock-file statekapacitor daemon doctor --clean # also remove stale lock/pid files
kapacitor repos # list known reposkapacitor repos add .kapacitor repos remove ~/dev/oldMore: Hosted agents.
Configuration and profiles
Section titled “Configuration and profiles”kapacitor config showkapacitor config set <key> <value>
kapacitor profile add work --server-url https://acme.kapacitor.aikapacitor profile listkapacitor profile show workkapacitor profile remove work
kapacitor use work # bind 'work' to current repokapacitor use work --global # set as global defaultkapacitor use work --save # write .kapacitor.json (team-share)More: Configuration & profiles.
kapacitor update # check npm for a newer releaseThe CLI checks for updates lazily (24-hour cache). To force a check, just run kapacitor update.