#:schema https://developers.openai.com/codex/config-schema.json # Everything Claude Code (ECC) — Codex Reference Configuration # # Copy this file to ~/.codex/config.toml for global defaults, or keep it in # the project root as .codex/config.toml for project-local settings. # # Official docs: # - https://developers.openai.com/codex/config-reference # - https://developers.openai.com/codex/multi-agent # Model selection model = "o4-mini" model_provider = "openai" # Top-level runtime settings (current Codex schema) approval_policy = "on-request" sandbox_mode = "workspace-write" web_search = "live" # External notifications receive a JSON payload on stdin. notify = [ "terminal-notifier", "-title", "Codex ECC", "-message", "Task completed!", "-sound", "default", ] # Prefer AGENTS.md and project-local .codex/AGENTS.md for instructions. # model_instructions_file replaces built-in instructions instead of AGENTS.md, # so leave it unset unless you intentionally want a single override file. # model_instructions_file = "/absolute/path/to/instructions.md" # MCP servers [mcp_servers.github] command = "npx" args = ["-y", "@modelcontextprotocol/server-github"] [mcp_servers.context7] command = "npx" args = ["-y", "@upstash/context7-mcp@latest"] [mcp_servers.memory] command = "npx" args = ["-y", "@modelcontextprotocol/server-memory"] [mcp_servers.sequential-thinking] command = "npx" args = ["-y", "@modelcontextprotocol/server-sequential-thinking"] # Additional MCP servers (uncomment as needed): # [mcp_servers.supabase] # command = "npx" # args = ["-y", "supabase-mcp-server@latest", "--read-only"] # # [mcp_servers.firecrawl] # command = "npx" # args = ["-y", "firecrawl-mcp"] # # [mcp_servers.cloudflare] # command = "npx" # args = ["-y", "@cloudflare/mcp-server-cloudflare"] [features] # Codex multi-agent support is experimental as of March 2026. multi_agent = true # Profiles — switch with `codex -p ` [profiles.strict] approval_policy = "on-request" sandbox_mode = "read-only" web_search = "cached" [profiles.yolo] approval_policy = "never" sandbox_mode = "workspace-write" web_search = "live" # Optional project-local multi-agent roles. # Keep these commented in global config, because config_file paths are resolved # relative to the config.toml file and must exist at load time. # # [agents] # max_threads = 6 # max_depth = 1 # # [agents.explorer] # description = "Read-only codebase explorer for gathering evidence before changes are proposed." # config_file = "agents/explorer.toml" # # [agents.reviewer] # description = "PR reviewer focused on correctness, security, and missing tests." # config_file = "agents/reviewer.toml" # # [agents.docs_researcher] # description = "Documentation specialist that verifies APIs, framework behavior, and release notes." # config_file = "agents/docs-researcher.toml"