Skip to content
KurrentDB

Configuration

The CLI stores its configuration in ~/.config/kcap/config.json (or under KCAP_CONFIG_DIR). Most of it is per profile

Terminal window
kcap config show
kcap config set <key> <value>
kcap config unset flows.reviewer_vendor # unset accepts this, skills.auto_sync and daemon.auto_resume

config 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

KeyDefaultMeaning
server_urlnoneYour workspace URL. Set by setup. --no-probe skips the reachability check
default_visibilityorg_publicprivate, 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_reposemptyComma-separated owner/repo allow list; empty allows all. In the desktop app: Settings → Privacy → Recording rules → Repositories → Only record, one per line
excluded_reposemptyComma-separated owner/repo exclusions. In the desktop app: Settings → Privacy → Recording rules → Repositories → Never record
daemon.nameOS usernameThe 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_agents5Concurrent hosted agents; 0 is unlimited. In the desktop app: Settings → Daemon → Agent capacity, then Save
daemon.auto_resumetrueResume 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_pathclaude, codexBinaries the daemon launches. Other vendors use KCAP_<VENDOR>_PATH
flows.reviewer_vendorunsetPreferred reviewer when a flow definition names none
skills.auto_syncfalseRefresh approved skills at Claude session start
use_provider_api_keyfalseKeep 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_nudgefalseSession-start opt-outs; see What your agent is told at session start
update_checktrueUpdate hints in the CLI, the web app and the agent
telemetryonAnonymous 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

Terminal window
kcap allow ~/dev/work # capture only this tree
kcap ignore ~/dev/work/private # except this
kcap allow --list; kcap ignore --list
kcap allow --remove ~/dev/work

The 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

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:

Terminal window
kcap profile add oss --server-url https://cap.oss.dev --remote "github.com/myorg/*"
kcap use work --global
kcap use oss # this repository
kcap use oss --save # commit .kcap.json for the team

The 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

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_URL picks the server and KCAP_PROFILE the profile, for one shell or one CI job
  • Daemon: KCAP_DAEMON_NAME and KCAP_MAX_AGENTS override the machine name and the agent capacity
  • Agent binaries: KCAP_CLAUDE_PATH, KCAP_CODEX_PATH, KCAP_CURSOR_PATH and the other KCAP_<VENDOR>_PATH variables point the daemon at a coding agent that is not on its path
  • API keys for headless calls: KCAP_USE_PROVIDER_API_KEY=1 does what use_provider_api_key does, below
  • Usage data: KCAP_TELEMETRY=0 or DO_NOT_TRACK=1 turns it off, and the desktop switch then defers to it
  • Machine credentials: KCAP_CLIENT_ID and KCAP_CLIENT_SECRET are 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

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:

Terminal window
kcap config set use_provider_api_key true

From 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

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:

Terminal window
kcap remap ~/dev/foo-cli ~/dev/bar-cli
kcap remap '~/dev/worktrees/*/api' ~/dev/api # one * matches one path segment
kcap remap --list

Remaps 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

Features still being proven are switched on per profile. In the desktop app: Settings → Experimental. From a terminal:

Terminal window
kcap experimental list
kcap experimental enable codex-app-server
kcap experimental disable codex-app-server

Both 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