config-sample.md +187 −110
1# Sample Configuration1# Sample Configuration
2 2
33Use this example configuration as a starting point. It includes most keys Codex reads from `config.toml`, along with defaults and short notes.Use this example configuration as a starting point. It includes most keys Codex reads from `config.toml`, along with default behaviors, recommended values where helpful, and short notes.
4 4
5For explanations and guidance, see:5For explanations and guidance, see:
6 6
7- [Config basics](https://developers.openai.com/codex/config-basic)7- [Config basics](https://developers.openai.com/codex/config-basic)
8- [Advanced Config](https://developers.openai.com/codex/config-advanced)8- [Advanced Config](https://developers.openai.com/codex/config-advanced)
9- [Config Reference](https://developers.openai.com/codex/config-reference)9- [Config Reference](https://developers.openai.com/codex/config-reference)
1010- [Sandbox and approvals](https://developers.openai.com/codex/security#sandbox-and-approvals)- [Sandbox and approvals](https://developers.openai.com/codex/agent-approvals-security#sandbox-and-approvals)
1111- [Managed configuration](https://developers.openai.com/codex/security#managed-configuration)- [Managed configuration](https://developers.openai.com/codex/enterprise/managed-configuration)
12 12
13Use the snippet below as a reference. Copy only the keys and sections you need into `~/.codex/config.toml` (or into a project-scoped `.codex/config.toml`), then adjust values for your setup.13Use the snippet below as a reference. Copy only the keys and sections you need into `~/.codex/config.toml` (or into a project-scoped `.codex/config.toml`), then adjust values for your setup.
14 14
15```toml15```toml
16# Codex example configuration (config.toml)16# Codex example configuration (config.toml)
17#17#
1818# This file lists all keys Codex reads from config.toml, their default values,# This file lists the main keys Codex reads from config.toml, along with default
1919# and concise explanations. Values here mirror the effective defaults compiled# behaviors, recommended examples, and concise explanations. Adjust as needed.
20# into the CLI. Adjust as needed.
21#20#
22# Notes21# Notes
23# - Root keys must appear before tables in TOML.22# - Root keys must appear before tables in TOML.
28# Core Model Selection27# Core Model Selection
29################################################################################28################################################################################
30 29
3130# Primary model used by Codex. Default: "gpt-5.2-codex" on all platforms.# Primary model used by Codex. Recommended example for most users: "gpt-5.4".
3231model = "gpt-5.2-codex"model = "gpt-5.4"
33 32
3433# Default communication style for supported models. Default: "friendly".# Communication style for supported models. Allowed values: none | friendly | pragmatic
3534# Allowed values: none | friendly | pragmatic# personality = "pragmatic"
36# personality = "friendly"
37 35
38# Optional model override for /review. Default: unset (uses current session model).36# Optional model override for /review. Default: unset (uses current session model).
3937# review_model = "gpt-5.2-codex"# review_model = "gpt-5.4"
40 38
41# Provider id selected from [model_providers]. Default: "openai".39# Provider id selected from [model_providers]. Default: "openai".
42model_provider = "openai"40model_provider = "openai"
44# Default OSS provider for --oss sessions. When unset, Codex prompts. Default: unset.42# Default OSS provider for --oss sessions. When unset, Codex prompts. Default: unset.
45# oss_provider = "ollama"43# oss_provider = "ollama"
46 44
4745# Optional manual model metadata. When unset, Codex auto-detects from model.# Preferred service tier. `fast` is honored only when enabled in [features].
4846# Uncomment to force values.# service_tier = "flex" # fast | flex
47
48# Optional manual model metadata. When unset, Codex uses model or preset defaults.
49# model_context_window = 128000 # tokens; default: auto for model49# model_context_window = 128000 # tokens; default: auto for model
5050# model_auto_compact_token_limit = 0 # tokens; unset uses model defaults# model_auto_compact_token_limit = 64000 # tokens; unset uses model defaults
5151# tool_output_token_limit = 10000 # tokens stored per tool output; default: 10000 for gpt-5.2-codex# tool_output_token_limit = 12000 # tokens stored per tool output
52# model_catalog_json = "/absolute/path/to/models.json" # optional startup-only model catalog override
53# background_terminal_max_timeout = 300000 # ms; max empty write_stdin poll window (default 5m)
52# log_dir = "/absolute/path/to/codex-logs" # directory for Codex logs; default: "$CODEX_HOME/log"54# log_dir = "/absolute/path/to/codex-logs" # directory for Codex logs; default: "$CODEX_HOME/log"
55# sqlite_home = "/absolute/path/to/codex-state" # optional SQLite-backed runtime state directory
53 56
54################################################################################57################################################################################
55# Reasoning & Verbosity (Responses API capable models)58# Reasoning & Verbosity (Responses API capable models)
56################################################################################59################################################################################
57 60
5861# Reasoning effort: minimal | low | medium | high | xhigh (default: medium; xhigh on gpt-5.2-codex and gpt-5.2)# Reasoning effort: minimal | low | medium | high | xhigh
5962model_reasoning_effort = "medium"# model_reasoning_effort = "medium"
63
64# Optional override used when Codex runs in plan mode: none | minimal | low | medium | high | xhigh
65# plan_mode_reasoning_effort = "high"
60 66
6167# Reasoning summary: auto | concise | detailed | none (default: auto)# Reasoning summary: auto | concise | detailed | none
62# model_reasoning_summary = "auto"68# model_reasoning_summary = "auto"
63 69
6470# Text verbosity for GPT-5 family (Responses API): low | medium | high (default: medium)# Text verbosity for GPT-5 family (Responses API): low | medium | high
65# model_verbosity = "medium"71# model_verbosity = "medium"
66 72
6773# Force enable or disable reasoning summaries for current model# Force enable or disable reasoning summaries for current model.
68# model_supports_reasoning_summaries = true74# model_supports_reasoning_summaries = true
69 75
70################################################################################76################################################################################
74# Additional user instructions are injected before AGENTS.md. Default: unset.80# Additional user instructions are injected before AGENTS.md. Default: unset.
75# developer_instructions = ""81# developer_instructions = ""
76 82
77# (Ignored) Optional legacy base instructions override (prefer AGENTS.md). Default: unset.
78# instructions = ""
79
80# Inline override for the history compaction prompt. Default: unset.83# Inline override for the history compaction prompt. Default: unset.
81# compact_prompt = ""84# compact_prompt = ""
82 85
86# Override the default commit co-author trailer. Set to "" to disable it.
87# commit_attribution = "Jane Doe <jane@example.com>"
88
83# Override built-in base instructions with a file path. Default: unset.89# Override built-in base instructions with a file path. Default: unset.
84# model_instructions_file = "/absolute/or/relative/path/to/instructions.txt"90# model_instructions_file = "/absolute/or/relative/path/to/instructions.txt"
85 91
86# Migration note: experimental_instructions_file was renamed to model_instructions_file (deprecated).
87
88# Load the compact prompt override from a file. Default: unset.92# Load the compact prompt override from a file. Default: unset.
89# experimental_compact_prompt_file = "/absolute/or/relative/path/to/compact_prompt.txt"93# experimental_compact_prompt_file = "/absolute/or/relative/path/to/compact_prompt.txt"
90 94
91# Legacy name for apply_patch_freeform. Default: false
92include_apply_patch_tool = false
93
94################################################################################95################################################################################
95# Notifications96# Notifications
96################################################################################97################################################################################
97 98
98# External notifier program (argv array). When unset: disabled.99# External notifier program (argv array). When unset: disabled.
99100# Example: notify = ["notify-send", "Codex"]# notify = ["notify-send", "Codex"]
100notify = [ ]
101 101
102################################################################################102################################################################################
103# Approval & Sandbox103# Approval & Sandbox
107# - untrusted: only known-safe read-only commands auto-run; others prompt107# - untrusted: only known-safe read-only commands auto-run; others prompt
108# - on-request: model decides when to ask (default)108# - on-request: model decides when to ask (default)
109# - never: never prompt (risky)109# - never: never prompt (risky)
110# - { granular = { ... } }: allow or auto-reject selected prompt categories
110approval_policy = "on-request"111approval_policy = "on-request"
112# Example granular policy:
113# approval_policy = { granular = {
114# sandbox_approval = true,
115# rules = true,
116# mcp_elicitations = true,
117# request_permissions = false,
118# skill_approval = false
119# } }
120
121# Allow login-shell semantics for shell-based tools when they request `login = true`.
122# Default: true. Set false to force non-login shells and reject explicit login-shell requests.
123allow_login_shell = true
111 124
112# Filesystem/network sandbox policy for tool calls:125# Filesystem/network sandbox policy for tool calls:
113# - read-only (default)126# - read-only (default)
122# Where to persist CLI login credentials: file (default) | keyring | auto135# Where to persist CLI login credentials: file (default) | keyring | auto
123cli_auth_credentials_store = "file"136cli_auth_credentials_store = "file"
124 137
125138# Base URL for ChatGPT auth flow (not OpenAI API). Default:# Base URL for ChatGPT auth flow (not OpenAI API).
126chatgpt_base_url = "https://chatgpt.com/backend-api/"139chatgpt_base_url = "https://chatgpt.com/backend-api/"
127 140
141# Optional base URL override for the built-in OpenAI provider.
142# openai_base_url = "https://us.api.openai.com/v1"
143
128# Restrict ChatGPT login to a specific workspace id. Default: unset.144# Restrict ChatGPT login to a specific workspace id. Default: unset.
129145# forced_chatgpt_workspace_id = ""# forced_chatgpt_workspace_id = "00000000-0000-0000-0000-000000000000"
130 146
131# Force login mechanism when Codex would normally auto-select. Default: unset.147# Force login mechanism when Codex would normally auto-select. Default: unset.
132# Allowed values: chatgpt | api148# Allowed values: chatgpt | api
134 150
135# Preferred store for MCP OAuth credentials: auto (default) | file | keyring151# Preferred store for MCP OAuth credentials: auto (default) | file | keyring
136mcp_oauth_credentials_store = "auto"152mcp_oauth_credentials_store = "auto"
137
138# Optional fixed port for MCP OAuth callback: 1-65535. Default: unset.153# Optional fixed port for MCP OAuth callback: 1-65535. Default: unset.
139# mcp_oauth_callback_port = 4321154# mcp_oauth_callback_port = 4321
155# Optional redirect URI override for MCP OAuth login (for example, remote devbox ingress).
156# Custom callback paths are supported. `mcp_oauth_callback_port` still controls the listener port.
157# mcp_oauth_callback_url = "https://devbox.example.internal/callback"
140 158
141################################################################################159################################################################################
142# Project Documentation Controls160# Project Documentation Controls
187# If you use --yolo or another full access sandbox setting, web search defaults to live.205# If you use --yolo or another full access sandbox setting, web search defaults to live.
188web_search = "cached"206web_search = "cached"
189 207
208# Active profile name. When unset, no profile is applied.
209# profile = "default"
210
211# Suppress the warning shown when under-development feature flags are enabled.
212# suppress_unstable_features_warning = true
213
190################################################################################214################################################################################
191215# Profiles (named presets)# Agents (multi-agent roles and limits)
192################################################################################216################################################################################
193 217
194218# Active profile name. When unset, no profile is applied.[agents]
195219# profile = "default"# Maximum concurrently open agent threads. Default: 6
220# max_threads = 6
221# Maximum nested spawn depth. Root session starts at depth 0. Default: 1
222# max_depth = 1
223# Default timeout per worker for spawn_agents_on_csv jobs. When unset, the tool defaults to 1800 seconds.
224# job_max_runtime_seconds = 1800
225
226# [agents.reviewer]
227# description = "Find correctness, security, and test risks in code."
228# config_file = "./agents/reviewer.toml" # relative to the config.toml that defines it
229# nickname_candidates = ["Athena", "Ada"]
196 230
197################################################################################231################################################################################
198# Skills (per-skill overrides)232# Skills (per-skill overrides)
200 234
201# Disable or re-enable a specific skill without deleting it.235# Disable or re-enable a specific skill without deleting it.
202[[skills.config]]236[[skills.config]]
203237# path = "/path/to/skill"# path = "/path/to/skill/SKILL.md"
204# enabled = false238# enabled = false
205 239
206################################################################################
207# Experimental toggles (legacy; prefer [features])
208################################################################################
209
210experimental_use_unified_exec_tool = false
211
212# Include apply_patch via freeform editing path (affects default tool set). Default: false
213experimental_use_freeform_apply_patch = false
214
215################################################################################240################################################################################
216# Sandbox settings (tables)241# Sandbox settings (tables)
217################################################################################242################################################################################
234[shell_environment_policy]259[shell_environment_policy]
235# inherit: all (default) | core | none260# inherit: all (default) | core | none
236inherit = "all"261inherit = "all"
237262# Skip default excludes for names containing KEY/SECRET/TOKEN (case-insensitive). Default: true# Skip default excludes for names containing KEY/SECRET/TOKEN (case-insensitive). Default: false
238263ignore_default_excludes = trueignore_default_excludes = false
239# Case-insensitive glob patterns to remove (e.g., "AWS_*", "AZURE_*"). Default: []264# Case-insensitive glob patterns to remove (e.g., "AWS_*", "AZURE_*"). Default: []
240exclude = []265exclude = []
241# Explicit key/value overrides (always win). Default: {}266# Explicit key/value overrides (always win). Default: {}
245# Experimental: run via user shell profile. Default: false270# Experimental: run via user shell profile. Default: false
246experimental_use_profile = false271experimental_use_profile = false
247 272
273################################################################################
274# Managed network proxy settings
275################################################################################
276
277[permissions.network]
278# enabled = true
279# proxy_url = "http://127.0.0.1:43128"
280# admin_url = "http://127.0.0.1:43129"
281# enable_socks5 = false
282# socks_url = "http://127.0.0.1:43130"
283# enable_socks5_udp = false
284# allow_upstream_proxy = false
285# dangerously_allow_non_loopback_proxy = false
286# dangerously_allow_non_loopback_admin = false
287# dangerously_allow_all_unix_sockets = false
288# mode = "limited" # limited | full
289# allowed_domains = ["api.openai.com"]
290# denied_domains = ["example.com"]
291# allow_unix_sockets = ["/var/run/docker.sock"]
292# allow_local_binding = false
293
248################################################################################294################################################################################
249# History (table)295# History (table)
250################################################################################296################################################################################
253# save-all (default) | none299# save-all (default) | none
254persistence = "save-all"300persistence = "save-all"
255# Maximum bytes for history file; oldest entries are trimmed when exceeded. Example: 5242880301# Maximum bytes for history file; oldest entries are trimmed when exceeded. Example: 5242880
256302# max_bytes = 0# max_bytes = 5242880
257 303
258################################################################################304################################################################################
259# UI, Notifications, and Misc (tables)305# UI, Notifications, and Misc (tables)
276# Control alternate screen usage (auto skips it in Zellij to preserve scrollback).322# Control alternate screen usage (auto skips it in Zellij to preserve scrollback).
277# alternate_screen = "auto"323# alternate_screen = "auto"
278 324
279325# Ordered list of footer status-line item IDs. Default: null (disabled).# Ordered list of footer status-line item IDs. When unset, Codex uses:
326# ["model-with-reasoning", "context-remaining", "current-dir"].
327# Set to [] to hide the footer.
280# status_line = ["model", "context-remaining", "git-branch"]328# status_line = ["model", "context-remaining", "git-branch"]
281 329
330# Syntax-highlighting theme (kebab-case). Use /theme in the TUI to preview and save.
331# You can also add custom .tmTheme files under $CODEX_HOME/themes.
332# theme = "catppuccin-mocha"
333
334# Internal tooltip state keyed by model slug. Usually managed by Codex.
335# [tui.model_availability_nux]
336# "gpt-5.4" = 1
337
338# Enable or disable analytics for this machine. When unset, Codex uses its default behavior.
339[analytics]
340enabled = true
341
282# Control whether users can submit feedback from `/feedback`. Default: true342# Control whether users can submit feedback from `/feedback`. Default: true
283[feedback]343[feedback]
284enabled = true344enabled = true
292# "hide_gpt-5.1-codex-max_migration_prompt" = true352# "hide_gpt-5.1-codex-max_migration_prompt" = true
293# model_migrations = { "gpt-4.1" = "gpt-5.1" }353# model_migrations = { "gpt-4.1" = "gpt-5.1" }
294 354
295# Suppress the warning shown when under-development feature flags are enabled.
296# suppress_unstable_features_warning = true
297
298################################################################################355################################################################################
299# Centralized Feature Flags (preferred)356# Centralized Feature Flags (preferred)
300################################################################################357################################################################################
301 358
302[features]359[features]
303# Leave this table empty to accept defaults. Set explicit booleans to opt in/out.360# Leave this table empty to accept defaults. Set explicit booleans to opt in/out.
304361shell_tool = true# shell_tool = true
305# apps = false362# apps = false
306363# apps_mcp_gateway = false# codex_hooks = false
307364# Deprecated legacy toggles; prefer the top-level `web_search` setting.# unified_exec = true
308365# web_search = false# shell_snapshot = true
309366# web_search_cached = false# multi_agent = true
310# web_search_request = false
311unified_exec = false
312shell_snapshot = false
313apply_patch_freeform = false
314# search_tool = false
315# personality = true367# personality = true
316368request_rule = true# fast_mode = true
317369collaboration_modes = true# smart_approvals = false
318370use_linux_sandbox_bwrap = false# enable_request_compression = true
319371experimental_windows_sandbox = false# skill_mcp_dependency_install = true
320372elevated_windows_sandbox = false# prevent_idle_sleep = false
321remote_models = false
322runtime_metrics = false
323powershell_utf8 = true
324child_agents_md = false
325 373
326################################################################################374################################################################################
327# Define MCP servers under this table. Leave empty to disable.375# Define MCP servers under this table. Leave empty to disable.
343# tool_timeout_sec = 60.0 # optional; default 60.0 seconds391# tool_timeout_sec = 60.0 # optional; default 60.0 seconds
344# enabled_tools = ["search", "summarize"] # optional allow-list392# enabled_tools = ["search", "summarize"] # optional allow-list
345# disabled_tools = ["slow-tool"] # optional deny-list (applied after allow-list)393# disabled_tools = ["slow-tool"] # optional deny-list (applied after allow-list)
394# scopes = ["read:docs"] # optional OAuth scopes
395# oauth_resource = "https://docs.example.com/" # optional OAuth resource
346 396
347# --- Example: Streamable HTTP transport ---397# --- Example: Streamable HTTP transport ---
348# [mcp_servers.github]398# [mcp_servers.github]
355# startup_timeout_sec = 10.0 # optional405# startup_timeout_sec = 10.0 # optional
356# tool_timeout_sec = 60.0 # optional406# tool_timeout_sec = 60.0 # optional
357# enabled_tools = ["list_issues"] # optional allow-list407# enabled_tools = ["list_issues"] # optional allow-list
408# disabled_tools = ["delete_issue"] # optional deny-list
409# scopes = ["repo"] # optional OAuth scopes
358 410
359################################################################################411################################################################################
360# Model Providers412# Model Providers
361################################################################################413################################################################################
362 414
363# Built-ins include:415# Built-ins include:
364416# - openai (Responses API; requires login or OPENAI_API_KEY via auth flow)# - openai
365417# - oss (Chat Completions API; defaults to http://localhost:11434/v1)# - ollama
418# - lmstudio
366 419
367[model_providers]420[model_providers]
368 421
370# [model_providers.openaidr]423# [model_providers.openaidr]
371# name = "OpenAI Data Residency"424# name = "OpenAI Data Residency"
372# base_url = "https://us.api.openai.com/v1" # example with 'us' domain prefix425# base_url = "https://us.api.openai.com/v1" # example with 'us' domain prefix
373426# wire_api = "responses" # "responses" | "chat" (default varies)# wire_api = "responses" # only supported value
374# # requires_openai_auth = true # built-in OpenAI defaults to true427# # requires_openai_auth = true # built-in OpenAI defaults to true
375# # request_max_retries = 4 # default 4; max 100428# # request_max_retries = 4 # default 4; max 100
376# # stream_max_retries = 5 # default 5; max 100429# # stream_max_retries = 5 # default 5; max 100
377# # stream_idle_timeout_ms = 300000 # default 300_000 (5m)430# # stream_idle_timeout_ms = 300000 # default 300_000 (5m)
431# # supports_websockets = true # optional
378# # experimental_bearer_token = "sk-example" # optional dev-only direct bearer token432# # experimental_bearer_token = "sk-example" # optional dev-only direct bearer token
379# # http_headers = { "X-Example" = "value" }433# # http_headers = { "X-Example" = "value" }
380# # env_http_headers = { "OpenAI-Organization" = "OPENAI_ORGANIZATION", "OpenAI-Project" = "OPENAI_PROJECT" }434# # env_http_headers = { "OpenAI-Organization" = "OPENAI_ORGANIZATION", "OpenAI-Project" = "OPENAI_PROJECT" }
381 435
382436# --- Example: Azure (Chat/Responses depending on endpoint) ---# --- Example: Azure/OpenAI-compatible provider ---
383# [model_providers.azure]437# [model_providers.azure]
384# name = "Azure"438# name = "Azure"
385# base_url = "https://YOUR_PROJECT_NAME.openai.azure.com/openai"439# base_url = "https://YOUR_PROJECT_NAME.openai.azure.com/openai"
386440# wire_api = "responses" # or "chat" per endpoint# wire_api = "responses"
387# query_params = { api-version = "2025-04-01-preview" }441# query_params = { api-version = "2025-04-01-preview" }
388# env_key = "AZURE_OPENAI_API_KEY"442# env_key = "AZURE_OPENAI_API_KEY"
389443# # env_key_instructions = "Set AZURE_OPENAI_API_KEY in your environment"# env_key_instructions = "Set AZURE_OPENAI_API_KEY in your environment"
444# # supports_websockets = false
390 445
391# --- Example: Local OSS (e.g., Ollama-compatible) ---446# --- Example: Local OSS (e.g., Ollama-compatible) ---
392# [model_providers.ollama]447# [model_providers.ollama]
393# name = "Ollama"448# name = "Ollama"
394# base_url = "http://localhost:11434/v1"449# base_url = "http://localhost:11434/v1"
395450# wire_api = "chat"# wire_api = "responses"
451
452################################################################################
453# Apps / Connectors
454################################################################################
455
456# Optional per-app controls.
457[apps]
458# [_default] applies to all apps unless overridden per app.
459# [apps._default]
460# enabled = true
461# destructive_enabled = true
462# open_world_enabled = true
463#
464# [apps.google_drive]
465# enabled = false
466# destructive_enabled = false # block destructive-hint tools for this app
467# default_tools_enabled = true
468# default_tools_approval_mode = "prompt" # auto | prompt | approve
469#
470# [apps.google_drive.tools."files/delete"]
471# enabled = false
472# approval_mode = "approve"
396 473
397################################################################################474################################################################################
398# Profiles (named presets)475# Profiles (named presets)
401[profiles]478[profiles]
402 479
403# [profiles.default]480# [profiles.default]
404481# model = "gpt-5.2-codex"# model = "gpt-5.4"
405# model_provider = "openai"482# model_provider = "openai"
406# approval_policy = "on-request"483# approval_policy = "on-request"
407# sandbox_mode = "read-only"484# sandbox_mode = "read-only"
485# service_tier = "flex"
408# oss_provider = "ollama"486# oss_provider = "ollama"
409# model_reasoning_effort = "medium"487# model_reasoning_effort = "medium"
488# plan_mode_reasoning_effort = "high"
410# model_reasoning_summary = "auto"489# model_reasoning_summary = "auto"
411# model_verbosity = "medium"490# model_verbosity = "medium"
412491# personality = "friendly" # or "pragmatic" or "none"# personality = "pragmatic" # or "friendly" or "none"
413# chatgpt_base_url = "https://chatgpt.com/backend-api/"492# chatgpt_base_url = "https://chatgpt.com/backend-api/"
493# model_catalog_json = "./models.json"
494# model_instructions_file = "/absolute/or/relative/path/to/instructions.txt"
414# experimental_compact_prompt_file = "./compact_prompt.txt"495# experimental_compact_prompt_file = "./compact_prompt.txt"
415496# include_apply_patch_tool = false# tools_view_image = true
416# experimental_use_unified_exec_tool = false
417# experimental_use_freeform_apply_patch = false
418# tools.web_search = false # deprecated legacy alias; prefer top-level `web_search`
419# features = { unified_exec = false }497# features = { unified_exec = false }
420 498
421################################################################################
422# Apps / Connectors
423################################################################################
424
425# Optional per-app controls.
426[apps]
427# [apps.google_drive]
428# enabled = false
429# disabled_reason = "user" # or "unknown"
430
431################################################################################499################################################################################
432# Projects (trust levels)500# Projects (trust levels)
433################################################################################501################################################################################
434 502
435# Mark specific worktrees as trusted or untrusted.
436[projects]503[projects]
504# Mark specific worktrees as trusted or untrusted.
437# [projects."/absolute/path/to/project"]505# [projects."/absolute/path/to/project"]
438# trust_level = "trusted" # or "untrusted"506# trust_level = "trusted" # or "untrusted"
439 507
508################################################################################
509# Tools
510################################################################################
511
512[tools]
513# view_image = true
514
440################################################################################515################################################################################
441# OpenTelemetry (OTEL) - disabled by default516# OpenTelemetry (OTEL) - disabled by default
442################################################################################517################################################################################
450exporter = "none"525exporter = "none"
451# Trace exporter: none (default) | otlp-http | otlp-grpc526# Trace exporter: none (default) | otlp-http | otlp-grpc
452trace_exporter = "none"527trace_exporter = "none"
528# Metrics exporter: none | statsig | otlp-http | otlp-grpc
529metrics_exporter = "statsig"
453 530
454# Example OTLP/HTTP exporter configuration531# Example OTLP/HTTP exporter configuration
455# [otel.exporter."otlp-http"]532# [otel.exporter."otlp-http"]
459# [otel.exporter."otlp-http".headers]536# [otel.exporter."otlp-http".headers]
460# "x-otlp-api-key" = "${OTLP_TOKEN}"537# "x-otlp-api-key" = "${OTLP_TOKEN}"
461 538
462# Example OTLP/gRPC exporter configuration
463# [otel.exporter."otlp-grpc"]
464# endpoint = "https://otel.example.com:4317",
465# headers = { "x-otlp-meta" = "abc123" }
466
467# Example OTLP exporter with mutual TLS
468# [otel.exporter."otlp-http"]
469# endpoint = "https://otel.example.com/v1/logs"
470# protocol = "binary"
471
472# [otel.exporter."otlp-http".headers]
473# "x-otlp-api-key" = "${OTLP_TOKEN}"
474
475# [otel.exporter."otlp-http".tls]539# [otel.exporter."otlp-http".tls]
476# ca-certificate = "certs/otel-ca.pem"540# ca-certificate = "certs/otel-ca.pem"
477# client-certificate = "/etc/codex/certs/client.pem"541# client-certificate = "/etc/codex/certs/client.pem"
478# client-private-key = "/etc/codex/certs/client-key.pem"542# client-private-key = "/etc/codex/certs/client-key.pem"
543
544# Example OTLP/gRPC trace exporter configuration
545# [otel.trace_exporter."otlp-grpc"]
546# endpoint = "https://otel.example.com:4317"
547# headers = { "x-otlp-meta" = "abc123" }
548
549################################################################################
550# Windows
551################################################################################
552
553[windows]
554# Native Windows sandbox mode (Windows only): unelevated | elevated
555sandbox = "unelevated"
479```556```