Skip to content
docs

Settings reference

This page lists every settings.json key that Waibee Code reads. For where the files live and the order in which they layer over each other, see Configuration files. You can also change the main keys in the terminal with the /settings command, which saves them to the global file; its keys are described in Keys.

  • A file must be valid JSON: comments and a trailing comma after the last element are not allowed. An error in the managed file stops the launch; on an error in any other layer, the agent falls back to the global settings or the defaults. To check the resulting configuration, use waibee config check.
  • An unknown key causes no error and has no effect. This includes Claude Code keys that have no equivalent here, such as permissions.defaultMode and permissions.ask: the mode is set with the permissions.mode key.
  • Usually the value comes from the last layer that sets it. The exceptions and how lists are merged are described in Configuration files.
  • In a folder you do not trust, some keys from its files do not take effect; see Folder trust.
  • With the sandbox on, changes to a file on disk do not change the permissions and hooks of a running session; see Configuration files.
KeyValuesDefaultWhat it does
modelan alias (sonnet, opus, haiku, or your own) or a full model IDsonnetThe main agent’s model; see Choosing a model. Not read from .claude/settings.json
aliasesan object {"name": "model id"}built-in sonnet, opus, haikuYour own short model names
thought_levelnone, minimal, low, medium, high, xhigh, maxdepends on the modelThe reasoning level; off is read as none. Applies while the current model matches thought_level_model. The /effort command writes both keys itself
thought_level_modela full model IDthe value of modelThe model that thought_level applies to
KeyValuesDefaultWhat it does
context.compact_at20 to 70, percent of the window70When automatic compaction starts
context.idle_compacttrue, falsetrueAllow compaction while idle
context.prompt_cacheauto, 5m, 1hautoHow long Anthropic models and waibee/auto keep the prompt cache; auto is an hour for the main agent
helper.modela modelthe helper modelThe model for chat titles and other small background jobs
title.autotrue, falsetrueGive a chat a title automatically
memory.autotrue, falsetrueAdd to memory during work
memory.modela modelhelper.model, or the helper model without itThe model that picks facts for memory
memory.max_bytesbytes2048The threshold at which old automatic entries are removed; manual entries can exceed it
read.max_bytesbytes262144 (256 KB)How much Read returns to the model per call

helper.model picks the model for chat titles and other small background jobs. Old configurations with compaction.model still work. This does not choose a summary model: compaction uses the session’s own model and its cached conversation.

Other background jobs include picking facts for memory, the goal check, summarizing pages for WebFetch, and web search. By default, these use an available helper model, or the session’s main model if the helper model is not in the router’s catalog. Helper calls run at the lowest reasoning level the model accepts. Use memory.model for memory and goal.evaluator_model for the goal check.

By default, neither tokens nor time stop the work on a message: the agent works until it is done, and only the turn limit guards against endless work. A spending limit applies only if you set one. Limits count per message you send, together with all the subagents it started, and start over with the next message.

KeyValuesDefaultWhat it does
max_turnsan integer10000How many turns the main agent gets. For example, 1 limits the work to one turn; 0 restores the default limit
sub_agent_max_turnsa numbersame as the main agentHow many turns each subagent gets if its definition has no maxTurns
max_billable_input_per_runtokensnoneThe limit on billable input tokens: fresh input and cache writes. Tokens read from the cache do not count
max_output_per_runtokensnoneThe limit on output tokens
max_run_secondssecondsnoneThe limit on working time; in headless mode, it is a hard stop deadline
~/.waibee/settings.json
{
"max_run_seconds": 3600,
"max_billable_input_per_run": 5000000
}

The same fields are in /settings; an empty field means “no limit”. For a single waibee run, flags set the limits; see Run limits.

In an interactive chat, when a limit is reached, the agent takes one last turn without tools and replies with what it has done so far, and the chat shows a line saying which limit was reached. The next message continues the work. How a headless run ends is described in Run limits.

KeyValuesDefaultWhat it does
permissions.modedefault, acceptEdits, trust, bypassPermissionsdefault, trust in headless modeThe mode a session starts in; see Permissions
permissions.allowa list of regular expressionsemptyWhat is approved without a question
permissions.granteda list of regular expressionsemptyPermanent permissions from the approval card. Written to .waibee/settings.local.json; they do not allow risky commands
permissions.denya list of regular expressionsemptyWhat is forbidden in any mode, including whole tools; see Denying a tool
trusted_foldersa list of pathsemptyFolders you trust. Read only from the global and managed files
sandbox.profileoff, workspace-write, restrictedoffThe sandbox profile. The managed file’s precedence is described in Configuration files
sandbox.allow_writea list of pathsemptyExtra directories the sandbox allows writes to. Read only from the global file
sandbox.requiretrue, falsefalseDo not start where the chosen sandbox cannot be provided. Read from the global and managed files; see the merge rules
sandbox.network.allowed_domainsa list of domainsemptyAllowed addresses for commands in the restricted profile. The merge rules and the empty-list rule are described in Configuration files
sandbox.network.allow_unix_socketsa list of absolute pathsemptyUnix socket exceptions in restricted: exact paths on macOS; on Linux, a non-empty list prevents the launch. The merge rules are described in Configuration files
netsec.enabledtrue, falsefalseTurn on the domain filter
netsec.allowed_domainsa list of domainsemptyAllow only these domains
netsec.blocked_domainsa list of domainsemptyBlock these domains
files.skip_integrity_checktrue, falsefalseTurn off the Edit check: without it, the agent edits a file it has not read or that changed after it was read. true in any of the files turns the check off
privacy.redact.additional_sensitive_keysa list of name patternsemptyWhich other fields to mask in the audit log and crash reports
privacy.redact.additional_command_regexesa list of regular expressionsemptyWhich other string fragments to mask in the same places
privacy.redact.disable_default_patternstrue, falsefalseDo not apply the built-in masking list. privacy keys are read only from the global and managed files
api_keyan sk_live_... keynoneThe API key. The WAIBEE_API_KEY variable takes precedence over this key, and the system keychain is checked after it. Keeping the key in the keychain is safer: waibee auth login. That command and waibee auth logout remove the key from this field
KeyValuesDefaultWhat it does
mcpServers, mcp.serversan object of serversemptyMCP servers: the entry fields are described there
mcp.default_timeout_msmilliseconds, 0 for no limitnoneThe tool call timeout for every MCP server whose entry has no timeout_ms of its own. Without this key, the default timeout applies; see MCP
hooksan object of eventsemptyHooks. Read only from settings.json: they have no effect in settings.local.json or the managed file
envan object {"NAME": "value"}emptyEnvironment variables for the agent and its commands. A variable already set in the environment is not overwritten. WAIBEE_DATA_DIR cannot be set this way
lsp.prewarmtrue, falsefalseStart language servers when the session starts instead of on first use
KeyValuesDefaultWhat it does
network.proxya URLnoneA proxy for the agent’s HTTP requests. Without it, model requests, update checks, and MCP server logins go through HTTPS_PROXY, HTTP_PROXY, or ALL_PROXY from the environment, honoring NO_PROXY, while WebFetch connects directly: it does not read environment variables, only this key
network.connect_timeout_secsseconds10The connection timeout
network.request_timeout_secsseconds120The timeout for a non-streaming request. It does not apply to streamed model responses
KeyValuesDefaultWhat it does
audit.enabledtrue, falsetrueKeep the audit log. false in any of the files turns it off
audit.max_size_mbMB100The log file size after which the same day’s entries continue in the next file. This key does not limit the log’s total size
storage.audit_max_age_daysdays90How many days to keep the audit log. Older days are removed automatically when the day changes, without auto_cleanup. Read only from the global file
storage.cache_max_age_daysdays7How long to keep the cache during scheduled cleanup
storage.tool_outputs_max_mbMB50The size of saved tool results after which waibee storage status warns you
storage.auto_cleanuptrue, falsefalseClean up storage in the background at launch, with the retention periods of waibee storage clean all. true in any of the files turns cleanup on
KeyValuesDefaultWhat it does
goal.evaluator_modela modelthe helper modelThe model that checks the goal
goal.max_iterationsa number50The limit on turns with a goal check, including the first
goal.auto_goaltrue, falsetrueSuggest a goal from the first prompt. In the terminal the agent asks; waibee run sets it without asking. false in any of the files turns this off
background.max_jobsa number10How many background commands run at the same time. They stop together with the session
background.job_output_max_kbKB256How much of the latest output is kept for each stream of a background command
KeyValuesDefaultWhat it does
tui.languageen, ruthe system languageThe interface language. Change it in /settings in the terminal, or in the sidebar in the browser
tui.show_splashtrue, falsetrueThe splash screen at launch
tui.centeredtrue, falsefalseKeep the interface in a centered column in a wide terminal
tui.center_widthnumber of columns100The width of that column
KeyValuesDefaultWhat it does
updates.channelstable, beta, nightlystableThe channel waibee update installs from. Read only from the global file; automatic checks at launch do not depend on it
updates.checktrue, falsetrueCheck for updates automatically at startup and in the TUI. false in any layer turns the checks off, and later layers do not turn them back on

WAIBEE_NO_UPDATE_CHECK=1 or DISABLE_AUTOUPDATER=1 in the environment also turns off all automatic checks. With the checks off, the agent runs the installed version and does not check the minimum supported version. You need to update it yourself; the explicit waibee update and /update commands stay available.

The agent writes the keys permissions.last_picked, updates.last_check, updates.last_seen_version, has_completed_onboarding, tour_seen, and tour_seen_web itself to remember state between launches. You do not need to edit them by hand.

There is no separate key that sets the main agent’s tool set. A built-in tool is turned off with a rule in permissions.deny, and an MCP server’s tool with the disabled_tools key in the server’s entry; see Denying a tool. For a single headless run, there is the —tools flag. For the duration of one command or skill, the allowed-tools field narrows the set, and for a subagent the tools and disallowedTools fields do; see Skills and commands.