model | string | Model to use (e.g., gpt-5.5). |
review_model | string | Optional model override used by /review (defaults to the current session model). |
model_provider | string | Provider id from model_providers (default: openai). |
openai_base_url | string | Base URL override for the built-in openai model provider. |
model_context_window | number | Context window tokens available to the active model. |
model_auto_compact_token_limit | number | Token threshold that triggers automatic history compaction (unset uses model defaults). |
model_auto_compact_token_limit_scope | total | body_after_prefix | Controls whether the auto-compaction threshold counts the full active context (total, the default) or only growth after the carried compaction-window prefix (body_after_prefix). |
model_catalog_json | string (path) | Optional path to a JSON model catalog loaded on startup. A selected $ZEROTWO_HOME/profile-name.config.toml profile file can override this per profile. |
oss_provider | lmstudio | ollama | Default local provider used when running with --oss (defaults to prompting if unset). |
approval_policy | untrusted | on-request | never | { granular = { sandbox_approval = bool, rules = bool, mcp_elicitations = bool, request_permissions = bool, skill_approval = bool } } | Controls when ZeroCode pauses for approval before executing commands. You can also use approval_policy = { granular = { ... } } to allow or auto-reject specific prompt categories while keeping other prompts interactive. on-failure is deprecated; use on-request for interactive runs or never for non-interactive runs. |
approval_policy.granular.sandbox_approval | boolean | When true, sandbox escalation approval prompts are allowed to surface. |
approval_policy.granular.rules | boolean | When true, approvals triggered by execpolicy prompt rules are allowed to surface. |
approval_policy.granular.mcp_elicitations | boolean | When true, MCP elicitation prompts are allowed to surface instead of being auto-rejected. |
approval_policy.granular.request_permissions | boolean | When true, prompts from the request_permissions tool are allowed to surface. |
approval_policy.granular.skill_approval | boolean | When true, skill-script approval prompts are allowed to surface. |
approvals_reviewer | user | auto_review | Who reviews eligible approval prompts under on-request or granular approval policies. Defaults to user; auto_review uses the reviewer subagent. This setting doesn’t change sandboxing or review actions already allowed inside the sandbox. |
auto_review.policy | string | Local Markdown policy instructions for automatic review. Managed guardian_policy_config takes precedence. Blank values are ignored. |
allow_login_shell | boolean | Allow shell-based tools to use login-shell semantics. Defaults to true; when false, login = true requests are rejected and omitted login defaults to non-login shells. |
sandbox_mode | read-only | workspace-write | danger-full-access | Sandbox policy for filesystem and network access during command execution. |
sandbox_workspace_write.writable_roots | array<string> | Additional writable roots when sandbox_mode = "workspace-write". |
sandbox_workspace_write.network_access | boolean | Allow outbound network access inside the workspace-write sandbox. |
sandbox_workspace_write.exclude_tmpdir_env_var | boolean | Exclude $TMPDIR from writable roots in workspace-write mode. |
sandbox_workspace_write.exclude_slash_tmp | boolean | Exclude /tmp from writable roots in workspace-write mode. |
windows.sandbox | unelevated | elevated | Windows-only native sandbox mode when running ZeroCode natively on Windows. |
windows.sandbox_private_desktop | boolean | Run the final sandboxed child process on a private desktop by default on native Windows. Set false only for compatibility with the older Winsta0\\\\Default behavior. |
computer_use.windows.always_allowed_app_ids | array<string> | Windows app identifiers that Computer Use can open without prompting. Apps not in the list require approval; remove saved entries from the ZeroTwo desktop app’s Computer Use settings. |
notify | array<string> | Command invoked for notifications; receives a JSON payload from ZeroCode. |
check_for_update_on_startup | boolean | Check for ZeroCode updates on startup (set to false only when updates are centrally managed). |
feedback.enabled | boolean | Enable feedback submission via /feedback across local clients (default: true). |
analytics.enabled | boolean | Enable or disable analytics for this machine/profile. When unset, the client default applies. |
instructions | string | Reserved for future use; prefer model_instructions_file or AGENTS.md. |
developer_instructions | string | Additional developer instructions injected into the session (optional). |
log_dir | string (path) | Directory where ZeroCode writes log files; defaults to $ZEROTWO_HOME/log. Setting this explicitly also enables the opt-in plaintext TUI log, zerocode-tui.log, in that directory. |
sqlite_home | string (path) | Directory where ZeroCode stores the SQLite-backed state DB used by agent jobs and other resumable runtime state. |
compact_prompt | string | Inline override for the history compaction prompt. |
model_instructions_file | string (path) | Replacement for built-in instructions instead of AGENTS.md. |
personality | none | friendly | pragmatic | Default communication style for models that advertise supportsPersonality; can be overridden per thread/turn or via /personality. |
service_tier | string | Preferred service tier for new turns. Use fast or another tier advertised by the active model; fast maps to the request value priority. |
experimental_compact_prompt_file | string (path) | Load the compaction prompt override from a file (experimental). |
skills.config | array<object> | Per-skill enablement overrides stored in config.toml. |
skills.config.<index>.path | string (path) | Path to a skill folder containing SKILL.md. |
skills.config.<index>.enabled | boolean | Enable or disable the referenced skill. |
apps.<id>.enabled | boolean | Enable or disable a specific app/connector by id (default: true). |
apps._default.enabled | boolean | Default app enabled state for all apps unless overridden per app. |
apps._default.destructive_enabled | boolean | Default allow/deny for app tools with destructive_hint = true. |
apps._default.open_world_enabled | boolean | Default allow/deny for app tools with open_world_hint = true. |
apps._default.approvals_reviewer | user | auto_review | Default reviewer for app tool approval prompts unless overridden per app. When omitted, apps inherit the top-level approvals_reviewer value. |
apps._default.default_tools_approval_mode | auto | prompt | writes | approve | Default approval behavior for app tools without per-app or per-tool overrides. |
apps.<id>.destructive_enabled | boolean | Allow or block tools in this app that advertise destructive_hint = true. |
apps.<id>.open_world_enabled | boolean | Allow or block tools in this app that advertise open_world_hint = true. |
apps.<id>.default_tools_enabled | boolean | Default enabled state for tools in this app unless a per-tool override exists. |
apps.<id>.approvals_reviewer | user | auto_review | Reviewer for this app’s tool approval prompts. Overrides apps._default.approvals_reviewer. |
apps.<id>.default_tools_approval_mode | auto | prompt | writes | approve | Default approval behavior for tools in this app unless a per-tool override exists. |
apps.<id>.tools.<tool>.enabled | boolean | Per-tool enabled override for an app tool (for example repos/list). |
apps.<id>.tools.<tool>.approval_mode | auto | prompt | writes | approve | Per-tool approval behavior override for a single app tool. |
tool_suggest.discoverables | array<table> | Allow tool suggestions for additional discoverable connectors or plugins. Each entry uses type = "connector" or "plugin" and an id. |
tool_suggest.disabled_tools | array<table> | Disable suggestions for specific discoverable connectors or plugins. Each entry uses type = "connector" or "plugin" and an id. |
features.apps | boolean | Enable app (connector) integrations (stable; on by default). |
features.hooks | boolean | Enable lifecycle hooks loaded from hooks.json or inline [hooks] config. features.zerocode_hooks is a deprecated alias. |
features.code_mode.enabled | boolean | Enable code mode feature configuration. This feature is under development and off by default. |
features.code_mode.excluded_tool_namespaces | array<string> | Tool namespaces code mode excludes from nested code-mode tool guidance and executor exposure. |
features.code_mode.direct_only_tool_namespaces | array<string> | Tool namespaces code mode can use only through direct tool calls. |
features.rollout_budget.enabled | boolean | Enable rollout budget tracking. This feature is under development and off by default. When enabled, features.rollout_budget.limit_tokens is required. |
features.rollout_budget.limit_tokens | integer | Positive token limit for rollout budget tracking. Required when rollout budget is enabled. |
features.rollout_budget.reminder_interval_tokens | integer | Positive token interval between rollout budget reminders. Defaults to 10% of limit_tokens, with a minimum of 1 token. |
features.rollout_budget.sampling_token_weight | number | Finite non-negative multiplier for sampled tokens in rollout budget accounting. Defaults to 1.0. |
features.rollout_budget.prefill_token_weight | number | Finite non-negative multiplier for prefill tokens in rollout budget accounting. Defaults to 1.0. |
hooks | table | Lifecycle hooks configured inline in config.toml. Uses the same event schema as hooks.json; see the Hooks guide for examples and supported events. |
hooks.<Event> | array<table> | Matcher groups for hook events such as PreToolUse, PermissionRequest, PostToolUse, PreCompact, PostCompact, SessionStart, SessionEnd, SubagentStart, SubagentStop, UserPromptSubmit, or Stop. |
hooks.<Event>[].hooks | array<table> | Hook handlers for a matcher group. Command hooks are currently supported; prompt and agent hook handlers are parsed but skipped. |
hooks.<Event>[].hooks[].additionalContextLimit | integer | Approximate per-handler token threshold for saving oversized additionalContext to disk and showing the model a shorter preview. Defaults to 2500; 0 passes the full context directly to the model. See Large hook output. |
hooks.<Event>[].hooks[].commandWindows | string | Windows-only command override for command hooks. The TOML alias command_windows is also accepted. |
features.memories | boolean | Enable Memories (off by default). |
mcp_servers.<id>.command | string | Launcher command for an MCP stdio server. |
mcp_servers.<id>.args | array<string> | Arguments passed to the MCP stdio server command. |
mcp_servers.<id>.env | map<string,string> | Environment variables forwarded to the MCP stdio server. |
mcp_servers.<id>.env_vars | array<string | { name = string, source = "local" | "remote" }> | Additional environment variables to whitelist for an MCP stdio server. String entries default to source = "local"; use source = "remote" only with executor-backed remote stdio. |
mcp_servers.<id>.cwd | string | Working directory for the MCP stdio server process. |
mcp_servers.<id>.url | string | Endpoint for an MCP streamable HTTP server. |
mcp_servers.<id>.auth | oauth | chatgpt | Authentication fallback for an MCP HTTP server after configured bearer tokens and authorization headers. oauth (default) uses stored MCP OAuth credentials when available. chatgpt uses the current ZeroTwo session for the trusted first-party ZeroTwo origin, then falls back to stored OAuth. Both modes can connect without authentication if no credential source resolves. |
mcp_servers.<id>.bearer_token_env_var | string | Environment variable sourcing the bearer token for an MCP HTTP server. |
mcp_servers.<id>.http_headers | map<string,string> | Static HTTP headers included with each MCP HTTP request. |
mcp_servers.<id>.env_http_headers | map<string,string> | HTTP headers populated from environment variables for an MCP HTTP server. |
mcp_servers.<id>.enabled | boolean | Disable an MCP server without removing its configuration. |
mcp_servers.<id>.required | boolean | When true, fail startup/resume if this enabled MCP server cannot initialize. |
mcp_servers.<id>.startup_timeout_sec | number | Override the default 10s startup timeout for an MCP server. |
mcp_servers.<id>.startup_timeout_ms | number | Alias for startup_timeout_sec in milliseconds. |
mcp_servers.<id>.tool_timeout_sec | number | Override the default 60s per-tool timeout for an MCP server. |
mcp_servers.<id>.enabled_tools | array<string> | Allow list of tool names exposed by the MCP server. |
mcp_servers.<id>.disabled_tools | array<string> | Deny list applied after enabled_tools for the MCP server. |
mcp_servers.<id>.default_tools_approval_mode | auto | prompt | writes | approve | Default approval behavior for MCP tools on this server unless a per-tool override exists. |
mcp_servers.<id>.tools.<tool>.approval_mode | auto | prompt | writes | approve | Per-tool approval behavior override for one MCP tool on this server. |
mcp_servers.<id>.scopes | array<string> | OAuth scopes to request when authenticating to that MCP server. |
mcp_servers.<id>.oauth_resource | string | Optional RFC 8707 OAuth resource parameter to include during MCP login. |
mcp_servers.<id>.experimental_environment | local | remote | Experimental placement for an MCP server. remote starts stdio servers through a remote executor environment; streamable HTTP remote placement is not implemented. |
agents | table | Multi-agent settings and custom role declarations. Scalar setting names are reserved and can’t be used as custom role names. |
agents.enabled | boolean | Enable or disable multi-agent tools (default: true). |
agents.max_concurrent_threads_per_session | number | Maximum number of spawned-agent threads that can be open concurrently, excluding the primary thread. When unset, ZeroCode chooses the default. |
agents.max_threads | number | Legacy alias for agents.max_concurrent_threads_per_session. |
agents.default_subagent_model | string | Default model for spawned agents. An explicit spawn model takes precedence. |
agents.default_subagent_reasoning_effort | string | Default reasoning effort for spawned agents. An explicit spawn effort takes precedence. |
agents.interrupt_message | boolean | Record a model-visible message when an agent turn is interrupted (default: true). |
agents.<name>.description | string | Role guidance shown to ZeroCode when choosing and spawning that agent type. |
agents.<name>.config_file | string (path) | Path to a TOML config layer for that role; relative paths resolve from the config file that declares the role. |
memories.generate_memories | boolean | When false, newly created threads are not stored as memory-generation inputs. Defaults to true. |
memories.use_memories | boolean | When false, ZeroCode skips injecting existing memories into future sessions. Defaults to true. |
memories.disable_on_external_context | boolean | When true, threads that use external context such as MCP tool calls, web search, or tool search are kept out of memory generation. Defaults to false. Legacy alias: memories.no_memories_if_mcp_or_web_search. |
memories.max_raw_memories_for_consolidation | number | Maximum recent raw memories retained for global consolidation. Defaults to 256 and is capped at 4096. |
memories.max_unused_days | number | Maximum days since a memory was last used before it becomes ineligible for consolidation. Defaults to 30 and is clamped to 0-365. |
memories.max_rollout_age_days | number | Maximum age of threads considered for memory generation. Defaults to 30 and is clamped to 0-90. |
memories.max_rollouts_per_startup | number | Maximum rollout candidates processed per startup pass. Defaults to 16 and is capped at 128. |
memories.min_rollout_idle_hours | number | Minimum idle time before a thread is considered for memory generation. Defaults to 6 and is clamped to 1-48. |
memories.min_rate_limit_remaining_percent | number | Minimum remaining percentage required in ZeroCode rate-limit windows before memory generation starts. Defaults to 25 and is clamped to 0-100. |
memories.extract_model | string | Optional model override for per-thread memory extraction. |
memories.consolidation_model | string | Optional model override for global memory consolidation. |
features.unified_exec | boolean | Use the unified PTY-backed exec tool (stable; enabled by default except on Windows). |
features.shell_snapshot | boolean | Snapshot shell environment to speed up repeated commands (stable; on by default). |
features.multi_agent | boolean | Enable multi-agent collaboration tools (spawn_agent, send_input, resume_agent, wait_agent, and close_agent) (stable; on by default). |
features.goals | boolean | Enable persisted goals and automatic continuation (stable; on by default). |
features.remote_plugin | boolean | Enable the remote plugin catalog (stable; on by default). |
features.personality | boolean | Enable personality selection controls (stable; on by default). |
features.network_proxy | boolean | table | Enable sandboxed networking. Use a table form when setting network policy options such as domains (experimental; off by default). |
features.network_proxy.enabled | boolean | Enable sandboxed networking. Defaults to false. |
features.network_proxy.domains | map<string, allow | deny> | Domain policy for sandboxed networking. Unset by default, which means no external destinations are allowed until you add allow rules. Supports exact hosts, *.example.com for subdomains only, **.example.com for apex plus subdomains, and global * allow rules; prefer scoped rules because * broadly opens public outbound access. Add deny rules for blocked destinations; deny wins on conflicts. |
features.network_proxy.unix_sockets | map<string, allow | deny> | Unix socket policy for sandboxed networking. Unset by default; add allow entries for permitted sockets. |
features.network_proxy.allow_local_binding | boolean | Allow broader local/private-network access. Defaults to false; exact local IP literal or localhost allow rules can still permit specific local targets. |
features.network_proxy.enable_socks5 | boolean | Expose SOCKS5 support. Defaults to true. |
features.network_proxy.enable_socks5_udp | boolean | Allow UDP over SOCKS5. Defaults to true. |
features.network_proxy.allow_upstream_proxy | boolean | Allow chaining through an upstream proxy from the environment. Defaults to true. |
features.network_proxy.dangerously_allow_non_loopback_proxy | boolean | Permit non-loopback listener addresses. Defaults to false; enabling it can expose proxy listeners beyond localhost. |
features.network_proxy.dangerously_allow_all_unix_sockets | boolean | Permit arbitrary Unix socket destinations instead of allowlist-only access. Defaults to false; use only in tightly controlled environments. |
features.network_proxy.proxy_url | string | HTTP listener URL for sandboxed networking. Defaults to "http://127.0.0.1:3128". |
features.network_proxy.socks_url | string | SOCKS5 listener URL. Defaults to "http://127.0.0.1:8081". |
features.web_search | boolean | Deprecated legacy toggle; prefer the top-level web_search setting. |
features.web_search_cached | boolean | Deprecated legacy toggle. When web_search is unset, true maps to web_search = "cached". |
features.web_search_request | boolean | Deprecated legacy toggle. When web_search is unset, true maps to web_search = "live". |
features.shell_tool | boolean | Enable the default shell tool for running commands (stable; on by default). |
features.enable_request_compression | boolean | Compress streaming request bodies with zstd when supported (stable; on by default). |
features.skill_mcp_dependency_install | boolean | Allow prompting and installing missing MCP dependencies for skills (stable; on by default). |
features.fast_mode | boolean | Enable model-catalog service tier selection in the TUI, including Fast-tier commands when the active model advertises them (stable; on by default). |
features.prevent_idle_sleep | boolean | Prevent the machine from sleeping while a turn is actively running (experimental; off by default). |
suppress_unstable_features_warning | boolean | Suppress the warning that appears when under-development feature flags are enabled. |
model_providers.<id> | table | Custom provider definition. Built-in provider IDs (openai, ollama, and lmstudio) are reserved and cannot be overridden. |
model_providers.<id>.name | string | Display name for a custom model provider. |
model_providers.<id>.base_url | string | API base URL for the model provider. |
model_providers.<id>.env_key | string | Environment variable supplying the provider API key. |
model_providers.<id>.env_key_instructions | string | Optional setup guidance for the provider API key. |
model_providers.<id>.experimental_bearer_token | string | Direct bearer token for the provider (discouraged; use env_key). |
model_providers.<id>.requires_openai_auth | boolean | The provider uses ZeroTwo authentication (defaults to false). |
model_providers.<id>.wire_api | responses | Protocol used by the provider. responses is the only supported value, and it is the default when omitted. |
model_providers.<id>.query_params | map<string,string> | Extra query parameters appended to provider requests. |
model_providers.<id>.http_headers | map<string,string> | Static HTTP headers added to provider requests. |
model_providers.<id>.env_http_headers | map<string,string> | HTTP headers populated from environment variables when present. |
model_providers.<id>.request_max_retries | number | Retry count for HTTP requests to the provider (default: 4). |
model_providers.<id>.stream_max_retries | number | Retry count for SSE streaming interruptions (default: 5). |
model_providers.<id>.stream_idle_timeout_ms | number | Idle timeout for SSE streams in milliseconds (default: 300000). |
model_providers.<id>.supports_websockets | boolean | Whether that provider supports the Responses API WebSocket transport. |
model_providers.<id>.supports_standalone_web_search | boolean | Advertise support for a compatible standalone web search endpoint (default: false). Standalone search remains under development and off by default; provider compatibility alone doesn’t enable it. |
model_providers.<id>.auth | table | Command-backed bearer token configuration for a custom provider. Do not combine with env_key, experimental_bearer_token, or requires_openai_auth. |
model_providers.<id>.auth.command | string | Command to run when ZeroCode needs a bearer token. The command must print the token to stdout. |
model_providers.<id>.auth.args | array<string> | Arguments passed to the token command. |
model_providers.<id>.auth.timeout_ms | number | Maximum token command runtime in milliseconds (default: 5000). |
model_providers.<id>.auth.refresh_interval_ms | number | How often ZeroCode proactively refreshes the token in milliseconds (default: 300000). Set to 0 to refresh only after an authentication retry. |
model_providers.<id>.auth.cwd | string (path) | Working directory for the token command. |
model_providers.amazon-bedrock.aws.profile | string | AWS profile name used by the built-in amazon-bedrock provider. |
model_providers.amazon-bedrock.aws.region | string | AWS region used by the built-in amazon-bedrock provider. |
model_reasoning_effort | minimal | low | medium | high | xhigh | Adjust reasoning effort for supported models (Responses API only; xhigh is model-dependent). |
plan_mode_reasoning_effort | none | minimal | low | medium | high | xhigh | Plan-mode-specific reasoning override. When unset, Plan mode uses its built-in preset default. |
model_reasoning_summary | auto | concise | detailed | none | Select reasoning summary detail or disable summaries entirely. |
model_verbosity | low | medium | high | Optional GPT-5 Responses API verbosity override; when unset, the selected model/preset default is used. |
model_supports_reasoning_summaries | boolean | Force ZeroCode to send or not send reasoning metadata. |
shell_environment_policy.inherit | all | core | none | Baseline environment inheritance when spawning subprocesses. |
shell_environment_policy.ignore_default_excludes | boolean | Keep variables containing KEY, SECRET, or TOKEN before other filters run (default: true). Set to false to apply automatic secret-name exclusions. |
shell_environment_policy.filters | map<string, include | exclude> | Canonical case-insensitive environment-variable pattern filters. Include entries create an allowlist and can’t restore excluded values. Explicit set values apply after exclusions. Don’t combine filters with legacy exclude or include_only arrays in the same layer. |
shell_environment_policy.exclude | array<string> | Legacy environment-variable exclusion patterns. Use shell_environment_policy.filters for new configuration; don’t combine both forms in the same layer. |
shell_environment_policy.include_only | array<string> | Legacy allowlist of environment-variable patterns. Use shell_environment_policy.filters for new configuration; don’t combine both forms in the same layer. |
shell_environment_policy.set | map<string,string> | Explicit environment values injected after exclusions; include filters can still remove them. |
shell_environment_policy.experimental_use_profile | boolean | Use the user shell profile when spawning subprocesses. |
project_root_markers | array<string> | List of project root marker filenames; used when searching parent directories for the project root. |
project_doc_max_bytes | number | Maximum bytes read from AGENTS.md when building project instructions. |
project_doc_fallback_filenames | array<string> | Additional filenames to try when AGENTS.md is missing. |
history.persistence | save-all | none | Control whether ZeroCode saves session transcripts to history.jsonl. |
tool_output_token_limit | number | Token budget for storing individual tool/function outputs in history. |
background_terminal_max_timeout | number | Maximum poll window in milliseconds for empty write_stdin polls (background terminal polling). Default: 300000 (5 minutes). Replaces the older background_terminal_timeout key. |
history.max_bytes | number | If set, caps the history file size in bytes by dropping oldest entries. |
file_opener | vscode | vscode-insiders | windsurf | cursor | none | URI scheme used to open citations from ZeroCode output (default: vscode). |
otel.environment | string | Environment tag applied to emitted OpenTelemetry events (default: dev). |
otel.exporter | none | otlp-http | otlp-grpc | Select the OpenTelemetry exporter and provide any endpoint metadata. |
otel.trace_exporter | none | otlp-http | otlp-grpc | Select the OpenTelemetry trace exporter and provide any endpoint metadata. |
otel.metrics_exporter | none | statsig | otlp-http | otlp-grpc | Select the OpenTelemetry metrics exporter (defaults to statsig). |
otel.log_user_prompt | boolean | Opt in to exporting raw user prompts with OpenTelemetry logs. |
otel.exporter.<id>.endpoint | string | Exporter endpoint for OTEL logs. |
otel.exporter.<id>.protocol | binary | json | Protocol used by the OTLP/HTTP exporter. |
otel.exporter.<id>.headers | map<string,string> | Static headers included with OTEL exporter requests. |
otel.trace_exporter.<id>.endpoint | string | Trace exporter endpoint for OTEL logs. |
otel.trace_exporter.<id>.protocol | binary | json | Protocol used by the OTLP/HTTP trace exporter. |
otel.trace_exporter.<id>.headers | map<string,string> | Static headers included with OTEL trace exporter requests. |
otel.exporter.<id>.tls.ca-certificate | string | CA certificate path for OTEL exporter TLS. |
otel.exporter.<id>.tls.client-certificate | string | Client certificate path for OTEL exporter TLS. |
otel.exporter.<id>.tls.client-private-key | string | Client private key path for OTEL exporter TLS. |
otel.trace_exporter.<id>.tls.ca-certificate | string | CA certificate path for OTEL trace exporter TLS. |
otel.trace_exporter.<id>.tls.client-certificate | string | Client certificate path for OTEL trace exporter TLS. |
otel.trace_exporter.<id>.tls.client-private-key | string | Client private key path for OTEL trace exporter TLS. |
desktop.custom_file_handlers.<id> | table | User-level only. Defines an additional Open in target for the ZeroTwo desktop app. See Add custom file handlers for examples and handler ID constraints. |
desktop.custom_file_handlers.<id>.label | string | Display name shown in Open in menus. Required. |
desktop.custom_file_handlers.<id>.icon | string | Bundled asset path, Base64-encoded data:image/... URL, file URI, or absolute local path for the handler icon. Required; unsupported sources use the default the ZeroTwo desktop app icon. |
desktop.custom_file_handlers.<id>.command | string | Executable path or command name to detect and launch. Required. |
desktop.custom_file_handlers.<id>.args | array<string> | Arguments inserted between the command and file input (default: []). |
desktop.custom_file_handlers.<id>.input | path | json_argument | json_stdin | How the app sends file input to the handler (default: path). |
desktop.custom_file_handlers.<id>.supports_ssh | boolean | Offer the handler for files in SSH workspaces (default: false). |
tui | table | TUI-specific options such as enabling inline desktop notifications. |
tui.notifications | boolean | array<string> | Enable TUI notifications; optionally restrict to specific event types. |
tui.notification_method | auto | osc9 | bel | Notification method for terminal notifications (default: auto). |
tui.notification_condition | unfocused | always | Control whether TUI notifications fire only when the terminal is unfocused or regardless of focus. Defaults to unfocused. |
tui.animations | boolean | Enable terminal animations (welcome screen, shimmer, spinner) (default: true). |
tui.alternate_screen | auto | always | never | Control alternate screen usage for the TUI (default: auto; auto skips it in Zellij to preserve scrollback). |
tui.resume_cwd | current | session | Working directory to use when resuming or forking a session. When unset, ZeroCode asks you to choose if your current directory differs from the session’s saved directory. |
tui.vim_mode_default | boolean | Start the composer in Vim normal mode instead of insert mode (default: false). You can still toggle it per session with /vim. |
tui.raw_output_mode | boolean | Start the TUI in raw scrollback mode for copy-friendly terminal selection (default: false). You can toggle it with /raw or the default alt-r key binding. |
tui.show_tooltips | boolean | Show onboarding tooltips in the TUI welcome screen (default: true). |
tui.status_line | array<string> | null | Ordered list of TUI footer status-line item identifiers. null disables the status line. |
tui.terminal_title | array<string> | null | Ordered list of terminal window/tab title item identifiers. Defaults to ["spinner", "project"]; null disables title updates. |
tui.theme | string | Syntax-highlighting theme override (kebab-case theme name). |
tui.keymap.<context>.<action> | string | array<string> | Keyboard shortcut binding for a TUI action. Supported contexts include global, chat, composer, editor, vim_normal, vim_operator, vim_text_object, pager, list, and approval. Selected composer actions fall back to matching tui.keymap.global bindings; context-specific bindings take precedence when supported. |
tui.keymap.<context>.<action> = [] | empty array | Unbind the action in that keymap context. Key names use normalized strings such as ctrl-a, shift-enter, page-down, or minus. |
plugins.<plugin>.mcp_servers.<server>.enabled | boolean | Enable or disable an MCP server bundled by an installed plugin without changing the plugin manifest. |
plugins.<plugin>.mcp_servers.<server>.default_tools_approval_mode | auto | prompt | writes | approve | Default approval behavior for tools on a plugin-provided MCP server. |
plugins.<plugin>.mcp_servers.<server>.enabled_tools | array<string> | Allow list of tools exposed from a plugin-provided MCP server. |
plugins.<plugin>.mcp_servers.<server>.disabled_tools | array<string> | Deny list applied after enabled_tools for a plugin-provided MCP server. |
plugins.<plugin>.mcp_servers.<server>.tools.<tool>.approval_mode | auto | prompt | writes | approve | Per-tool approval behavior override for a plugin-provided MCP tool. |
tui.model_availability_nux.<model> | integer | Internal startup-tooltip state keyed by model slug. |
hide_agent_reasoning | boolean | Suppress reasoning events in both the TUI and ZeroTwo desktop runs output. |
show_raw_agent_reasoning | boolean | Surface raw reasoning content when the active model emits it. |
disable_paste_burst | boolean | Disable burst-paste detection in the TUI. |
windows_wsl_setup_acknowledged | boolean | Track Windows onboarding acknowledgement (Windows only). |
chatgpt_base_url | string | Override the base URL used during the ZeroTwo login flow. |
cli_auth_credentials_store | file | keyring | auto | Control where the CLI stores cached credentials (file-based auth.json vs OS keychain). |
mcp_oauth_credentials_store | auto | file | keyring | Preferred store for MCP OAuth credentials. |
mcp_oauth_callback_port | integer | Optional fixed port for the local HTTP callback server used during MCP OAuth login. When unset, ZeroCode binds to an ephemeral port chosen by the OS. |
mcp_oauth_callback_url | string | Optional base callback URL override for MCP OAuth login (for example, a devbox ingress URL). ZeroCode appends a server-specific callback ID before sending the final OAuth redirect_uri, so register the full derived URI with your provider. mcp_oauth_callback_port still controls the callback listener port. |
experimental_use_unified_exec_tool | boolean | Legacy name for enabling unified exec; prefer [features].unified_exec or ` |
tools.web_search | boolean | { context_size = "low|medium|high", allowed_domains = [string], location = { country, region, city, timezone } } | Optional web search tool configuration. The legacy boolean form is still accepted, but the object form lets you set search context size, allowed domains, and approximate user location. |
tools.view_image | boolean | Enable the local-image attachment tool view_image. |
web_search | disabled | cached | indexed | live | Web search mode (default: "cached"; cached uses an ZeroTwo-maintained index without external web access; indexed permits external access only when gated by the search index; if you use --yolo or another full access sandbox setting, it defaults to "live"). Use "live" for unrestricted live retrieval, or "disabled" to remove the tool. |
default_permissions | string | Name of the default permissions profile to apply to sandboxed tool calls. Built-ins are :read-only, :workspace, and :danger-full-access; custom profile names require matching [permissions.<name>] tables. Don’t combine with sandbox_mode or [sandbox_workspace_write]. |
permissions.<name>.description | string | Human-readable description for this named profile. A profile does not inherit its parent’s description through extends. |
permissions.<name>.extends | string | Optional parent profile applied before this named profile. Set it to another named profile, :read-only, or :workspace; :danger-full-access, undefined parents, and cycles are rejected. |
permissions.<name>.workspace_roots | table | Profile-defined workspace roots that receive :workspace_roots filesystem rules alongside the session’s runtime workspace roots. |
permissions.<name>.workspace_roots.<path> | boolean | Opt a path into the profile’s workspace root set when true. Disabled entries remain inactive. |
permissions.<name>.filesystem | table | Named filesystem permission profile. Each key is an absolute path or special token such as :minimal or :workspace_roots. |
permissions.<name>.filesystem.glob_scan_max_depth | number | Maximum depth for expanding deny-read glob patterns on platforms that snapshot matches before sandbox startup. Must be at least 1 when set. |
permissions.<name>.filesystem.<path-or-glob> | "read" | "write" | "deny" | table | Grant direct access for a path, glob pattern, or special token, or scope nested entries under that root. Use "deny" to deny reads for matching paths. |
permissions.<name>.filesystem.":workspace_roots".<subpath-or-glob> | "read" | "write" | "deny" | Scoped filesystem access relative to each effective workspace root. Use "." for the root itself; glob subpaths such as "**/*.env" can deny reads with "deny". |
permissions.<name>.network.enabled | boolean | Enable network access for this named permissions profile. This changes the sandbox network policy; it does not start the network proxy by itself. |
permissions.<name>.network.proxy_url | string | HTTP listener URL used when this permissions profile enables sandboxed networking. |
permissions.<name>.network.enable_socks5 | boolean | Expose SOCKS5 support when this permissions profile enables sandboxed networking. |
permissions.<name>.network.socks_url | string | SOCKS5 proxy endpoint used by this permissions profile. |
permissions.<name>.network.enable_socks5_udp | boolean | Allow UDP over the SOCKS5 listener when enabled. |
permissions.<name>.network.allow_upstream_proxy | boolean | Allow sandboxed networking to chain through another upstream proxy. |
permissions.<name>.network.dangerously_allow_non_loopback_proxy | boolean | Permit non-loopback bind addresses for sandboxed networking listeners. Enabling it can expose listeners beyond localhost. |
permissions.<name>.network.dangerously_allow_all_unix_sockets | boolean | Allow arbitrary Unix socket destinations instead of the default restricted set. Use only in tightly controlled environments. |
permissions.<name>.network.mode | limited | full | Network proxy mode used for subprocess traffic. |
permissions.<name>.network.domains | table | Domain rules for sandboxed networking. Supports exact hosts, *.example.com for subdomains only, **.example.com for apex plus subdomains, and global * allow rules. deny wins on conflicts. |
permissions.<name>.network.domains.<pattern> | allow | deny | Allow or deny an exact host or scoped wildcard pattern such as *.example.com or **.example.com. |
permissions.<name>.network.unix_sockets | table | Unix socket allowlist overrides for sandboxed networking. Use socket paths as keys; allow adds a path, and deny rejects it. |
permissions.<name>.network.unix_sockets.<path> | allow | deny | Add an absolute Unix socket path to the effective allowlist with allow, or reject it with deny. Denied entries are omitted from the effective allowlist. |
permissions.<name>.network.allow_local_binding | boolean | Permit broader local/private-network access through sandboxed networking. Exact local IP literal or localhost allow rules can still permit specific local targets when this stays false. |
projects.<path>.trust_level | string | Mark a project or worktree as trusted or untrusted ("trusted" | "untrusted"). Untrusted projects skip project-scoped .zerotwo/ layers, including project-local config, hooks, and rules. |
notice.hide_full_access_warning | boolean | Track acknowledgement of the full access warning prompt. |
notice.hide_world_writable_warning | boolean | Track acknowledgement of the Windows world-writable directories warning. |
notice.hide_rate_limit_model_nudge | boolean | Track opt-out of the rate limit model switch reminder. |
notice.hide_gpt5_1_migration_prompt | boolean | Track acknowledgement of the GPT-5.1 migration prompt. |
notice.hide_gpt-5.1-zerocode-max_migration_prompt | boolean | Track acknowledgement of the gpt-5.1-zerocode-max migration prompt. |
notice.model_migrations | map<string,string> | Track acknowledged model migrations as old->new mappings. |
forced_login_method | chatgpt | api | Restrict ZeroCode to a specific authentication method. |
forced_chatgpt_workspace_id | string (uuid) | Limit ZeroTwo logins to a specific workspace identifier. |