Covendocs
Coven CodeConfiguration

Configuration

Configuration reference for Coven Code, including settings files, environment variables, provider defaults, local state directories, and Coven daemon integration.

3 min read

Coven Code stores TUI-specific state under ~/.coven-code and reads shared daemon state from COVEN_HOME when it uses the local Coven daemon.

State Directories

PathOwnerContains
~/.coven-code/settings.jsonCoven CodeTUI settings, provider defaults, and feature preferences.
~/.coven-code/projects/Coven CodeProject-scoped session transcripts and local session state.
~/.coven-code/keybindings.jsonCoven CodeCustom keybindings.
~/.coven-code/plugins/Coven CodeLocal plugin manifests and plugin files.
~/.covenCoven daemonDaemon socket, session ledger, and shared Coven state.

Do not mix reset scopes

Removing ~/.coven-code resets Coven Code. Removing ~/.coven resets shared daemon state used by the CLI, Cave, and other clients. They solve different problems.

Settings Reference

~/.coven-code/settings.json accepts the keys below. Change them with /config in the TUI or by editing the file directly.

Display & Notifications

KeyDefaultPurpose
showCwdtrueShow the current working directory in the footer.
showGitBranchtrueShow the git branch in the footer.
notificationstrueEnable desktop notifications.
completionToasttrueShow a toast when a background task or assistant turn finishes.
bellOnCompletefalseRing the terminal bell when a background task or assistant turn finishes.
showTurnDurationfalseShow turn duration in output.
reduceMotionfalseReduce motion in the UI.
terminalProgressBartrueShow terminal progress bars.
autoCopyOnHighlightfalseCopy a drag selection to the system clipboard when the drag is released.

Context & File Handling

KeyDefaultPurpose
autoCompacttrueAutomatically compact the conversation as the context window fills.
fileAutocompleteLimit15Maximum number of file suggestions shown in autocomplete.
fileAutocompleteShowHiddenFilesfalseShow hidden files in file autocomplete.
fileInjectionEnabledtrueAutomatically inject @file references into message context before sending.
fileInjectionMaxSize100Maximum file size to auto-inject, in KB. Set to 0 for no limit.

Structured Sections

KeyDefaultPurpose
providerunsetActive provider ID, such as anthropic or codex.
providersempty mapPer-provider configurations.
commandsempty mapUser-defined slash command templates.
formatterempty mapFormatter configurations keyed by a user-defined name.
agentsempty mapNamed agent definitions that override built-in defaults.
familiarunsetActive familiar persona for the welcome screen and /familiar.
skillsemptySkill-discovery configuration: extra paths and git URLs.
managed_agentsunsetManager-executor (managed agent) architecture configuration.
daemonLedgerfalseRegister interactive sessions in the Coven daemon ledger (best-effort, opt-in).

Environment Variables

VariablePurpose
COVEN_CODE_PROVIDERDefault provider, such as anthropic or codex.
COVEN_CODE_API_BASEOverride the provider API base URL.
COVEN_CODE_SKIP_PROMPT_HISTORYDisable prompt history when set to 1.
COVEN_CODE_ANTHROPIC_OAUTH_CLIENT_IDConfigure a registered Anthropic OAuth client for Coven Code auth login.
ANTHROPIC_API_KEYAnthropic API key used by the Anthropic provider path.
OPENAI_API_KEYOpenAI API key used by the Codex provider path when no stored credential exists.
ANTHROPIC_BASE_URLOverride the Anthropic API base URL.
OPENAI_BASE_URLOverride the OpenAI API base URL for the Codex provider.
COVEN_HOMECoven daemon home. Defaults to ~/.coven.
COVEN_LEGACY_TUIOpt out of coven / coven tui exec behavior where legacy TUI support is available.

Provider Defaults

Set a default provider for new launches:

export COVEN_CODE_PROVIDER=codex
coven-code

Or choose explicitly per run:

coven-code --provider anthropic
coven-code --provider codex

Use /connect to manage accounts and /model to pick a model in the interactive UI.

Project Context

Coven Code runs from the current working directory unless a command or workflow changes it. Keep these boundaries in mind:

  • Project files and AGENTS.md-style instructions are read from the local project context.
  • Session state under ~/.coven-code/projects/ is project-scoped.
  • Daemon operations invoked through /coven still go through Coven's project-root and working-directory validation.

For daemon project-root rules, see Harness Project Roots and Working Directories.

Keybindings

Keybindings are stored in:

~/.coven-code/keybindings.json

Edit them through the TUI where possible. If you edit the file manually, restart Coven Code afterward so the current process reloads the new bindings.

Daemon Integration

The /coven command and welcome daemon status block use the typed daemon client over:

~/.coven/coven.sock

If you use a custom Coven home:

export COVEN_HOME=/path/to/coven-home
coven daemon status
coven-code

Make sure both the daemon command and the Coven Code process see the same COVEN_HOME. If they do not, the TUI may show no daemon sessions even though the CLI can see a different daemon.

Was this page helpful?No

Last updated on

On this page