Configuration
The CLI stores its configuration in ~/.config/kcap/config.json (or under KCAP_CONFIG_DIR). Most of it is per profile
kcap config showkcap config set <key> <value>kcap config unset flows.reviewer_vendor # unset accepts this, skills.auto_sync and daemon.auto_resumeconfig set changes the global active profile, even when a repository binding or KCAP_PROFILE would select another for requests. Run kcap use <name> --global first to edit a different profile
The desktop app edits some of the same values in Settings (⌘,). Under This profile, Privacy holds the default audience and the Recording rules, and Daemon holds the machine name, the agent capacity and whether agents resume after a restart; these write the profile the app runs against. Under This computer, Usage data holds Send usage data, shared with the CLI on your computer
| Key | Default | Meaning |
|---|---|---|
server_url | none | Your workspace URL. Set by setup. --no-probe skips the reachability check |
default_visibility | org_public | private, project, org_public or public for new sessions. Setup asks the same question: in the desktop app’s setup and in the web app’s first-run page under “who can read new sessions”. In the desktop app afterwards: Settings → Privacy → Who can read new sessions, then Save. On the local edition the desktop app always sets private |
allowed_repos | empty | Comma-separated owner/repo allow list; empty allows all. In the desktop app: Settings → Privacy → Recording rules → Repositories → Only record, one per line |
excluded_repos | empty | Comma-separated owner/repo exclusions. In the desktop app: Settings → Privacy → Recording rules → Repositories → Never record |
daemon.name | OS username | The daemon’s name; --name or KCAP_DAEMON_NAME override per launch. In the desktop app: Settings → Daemon → Machine name, then Rename, which restarts the daemon and relaunches the app |
daemon.max_agents | 5 | Concurrent hosted agents; 0 is unlimited. In the desktop app: Settings → Daemon → Agent capacity, then Save |
daemon.auto_resume | true | Resume agents a restart or update stopped; when false they wait as interrupted until kcap agent resume. In the desktop app: Settings → Daemon → Resume agents after a restart |
daemon.claude_path, daemon.codex_path | claude, codex | Binaries the daemon launches. Other vendors use KCAP_<VENDOR>_PATH |
flows.reviewer_vendor | unset | Preferred reviewer when a flow definition names none |
skills.auto_sync | false | Refresh approved skills at Claude session start |
use_provider_api_key | false | Keep ANTHROPIC_API_KEY / OPENAI_API_KEY in headless spawns; see API keys for headless calls |
disable_session_guidelines, disable_memory_index, disable_coordination_notices, disable_workitems_nudge, disable_plans_nudge, disable_nextwork_nudge, disable_first_run_notice, disable_harness_nudge | false | Session-start opt-outs; see What your agent is told at session start |
update_check | true | Update hints in the CLI, the web app and the agent |
telemetry | on | Anonymous usage reporting. Machine-wide, and the same switch as Settings → Usage data → Send usage data in the desktop app |
Path lists, remaps, remote patterns and the update channel are managed by their own commands (allow, ignore, remap, profile add --remote, update --beta), not by config set
Capture scope
Section titled “Capture scope”kcap allow ~/dev/work # capture only this treekcap ignore ~/dev/work/private # except thiskcap allow --list; kcap ignore --listkcap allow --remove ~/dev/workThe desktop app edits the same lists on Settings → Privacy under Recording rules: Repositories and Folders each have an Only record list (the allow list) and a Never record list (the exclusions), one entry per line, and nothing changes until you press Save. The lists belong to a profile: the CLI commands edit the global active profile, and the desktop app edits the profile it runs against
A session must sit under an allowed path when any are set, match allowed_repos when it is set, and match no exclusion. Unknown working directory or repository fails the corresponding allow list. Rules apply to live capture, imports and unattended hosted launches alike; an agent you launch yourself is consent for that launch. Sessions already on the server stay there
Keep private repos out walks through excluding a repository or a folder step by step, in the desktop app and from the terminal, and covers the history imported during setup
More than one workspace
Section titled “More than one workspace”Sign-in creates one profile per organisation you belong to. Add others by hand, and bind them to repositories so the right one is used without thinking:
kcap profile add oss --server-url https://cap.oss.dev --remote "github.com/myorg/*"kcap use work --globalkcap use oss # this repositorykcap use oss --save # commit .kcap.json for the teamThe desktop app does not switch or add profiles. It runs against the global active profile it found at launch; the profile card at the top of Settings opens Profiles, which lists every profile, marks the one In use and the one This app uses, and offers Sign in and Remove profile. To move the app to another workspace, run kcap use <name> --global and relaunch it
Resolution order, first match wins: --server-url, KCAP_URL, KCAP_PROFILE, .kcap.json in the repository root, a --remote pattern match, the directory binding from kcap use, then the global active profile
Environment overrides
Section titled “Environment overrides”An environment variable beats the profile for the process it is set in. Config keys and environment variables lists every one; in groups:
- Server and profile:
KCAP_URLpicks the server andKCAP_PROFILEthe profile, for one shell or one CI job - Daemon:
KCAP_DAEMON_NAMEandKCAP_MAX_AGENTSoverride the machine name and the agent capacity - Agent binaries:
KCAP_CLAUDE_PATH,KCAP_CODEX_PATH,KCAP_CURSOR_PATHand the otherKCAP_<VENDOR>_PATHvariables point the daemon at a coding agent that is not on its path - API keys for headless calls:
KCAP_USE_PROVIDER_API_KEY=1does whatuse_provider_api_keydoes, below - Usage data:
KCAP_TELEMETRY=0orDO_NOT_TRACK=1turns it off, and the desktop switch then defers to it - Machine credentials:
KCAP_CLIENT_IDandKCAP_CLIENT_SECRETare different in kind: they switch every kcap process to a machine credential instead of your sign-in
A daemon installed as a service keeps the environment it was installed with; reinstall it after changing any of these
API keys for headless calls
Section titled “API keys for headless calls”Title generation, summaries and local evaluations spawn claude -p or codex exec. A global ANTHROPIC_API_KEY or OPENAI_API_KEY would override your subscription sign-in on those calls and surface as API errors, so by default the CLI removes both from those spawns, and they run on your Claude or ChatGPT subscription sign-in
If you want those calls billed to your API key instead, keep the variables:
kcap config set use_provider_api_key trueFrom then on the spawns keep ANTHROPIC_API_KEY and OPENAI_API_KEY, so the calls are charged to the key. kcap config set use_provider_api_key false goes back to the subscription sign-in. KCAP_USE_PROVIDER_API_KEY=1 does the same for one process
Renamed repository directories
Section titled “Renamed repository directories”Imports attribute a transcript by the directory it ran in. If you renamed that directory since, the sessions fall out of --repo and --org scopes. Every import prints the directories it could not find; map them:
kcap remap ~/dev/foo-cli ~/dev/bar-clikcap remap '~/dev/worktrees/*/api' ~/dev/api # one * matches one path segmentkcap remap --listRemaps are global, prefix matches on a path boundary, applied once. Ephemeral worktrees under <project>/.<anything>/worktrees/<slug> are attributed to the project automatically when it still exists
Experimental features
Section titled “Experimental features”Features still being proven are switched on per profile. In the desktop app: Settings → Experimental. From a terminal:
kcap experimental listkcap experimental enable codex-app-serverkcap experimental disable codex-app-serverBoth surfaces edit the same per-profile setting, which the daemon reads
Reminders about agents you have not set up
Section titled “Reminders about agents you have not set up”kcap status and session start mention a detected coding agent that is not wired. kcap harness dismiss <vendor> quiets one; kcap harness reset offers it again; disable_harness_nudge quiets them all