Skip to main content
Home/Tools/Developer/Codex CLI Config Generator

Codex CLI Config Generator

Generate a working OpenAI Codex CLI setup: config.toml with model, reasoning effort, approval policy, sandbox mode, and MCP servers, plus an AGENTS.md project context file.

100% Private - Runs Entirely in Your Browser
No data is sent to any server. All processing happens locally on your device.

Generate a working Codex CLI config.toml

OpenAI’s Codex CLI is configured with a TOML file at ~/.codex/config.toml plus an AGENTS.md instructions file. This tool builds both from a short form, with copy and download for each — no TOML syntax to memorize.

Install Codex CLI

npm install -g @openai/codex

Or via Homebrew: brew install --cask codex.

What the config controls

  • model — the Codex model, e.g. gpt-5.2-codex or the cheaper gpt-5.1-codex-mini.
  • model_reasoning_effort — minimal, low, medium, high, or xhigh (xhigh on codex-max / 5.2 only).
  • approval_policy — untrusted, on-failure, on-request, or never; controls when Codex asks before acting.
  • sandbox_mode — read-only, workspace-write, or danger-full-access.
  • [mcp_servers.*] — Model Context Protocol servers (Filesystem, GitHub, Context7, Playwright, Postgres) configured in the same file.

AGENTS.md

Codex reads AGENTS.md from your project root (and ~/.codex/AGENTS.md globally). The optional in-browser AI writes a tailored one from a plain-English description of your project — it runs entirely in your browser via WebGPU and never uploads your description.

FAQ

Where does config.toml go?

Global config lives at ~/.codex/config.toml; a project can override it at <project>/.codex/config.toml.

Does it send my data anywhere?

No — the config is generated locally in your browser, and the optional AGENTS.md writer also runs locally.

Loading interactive tool...

Generate a working Codex CLI config.toml

OpenAI’s Codex CLI is configured with a TOML file at ~/.codex/config.toml plus an AGENTS.md instructions file. This tool builds both from a short form, with copy and download for each — no TOML syntax to memorize.

Install Codex CLI

npm install -g @openai/codex

Or via Homebrew: brew install --cask codex.

What the config controls

  • model — the Codex model, e.g. gpt-5.2-codex or the cheaper gpt-5.1-codex-mini.
  • model_reasoning_effort — minimal, low, medium, high, or xhigh (xhigh on codex-max / 5.2 only).
  • approval_policy — untrusted, on-failure, on-request, or never; controls when Codex asks before acting.
  • sandbox_mode — read-only, workspace-write, or danger-full-access.
  • [mcp_servers.*] — Model Context Protocol servers (Filesystem, GitHub, Context7, Playwright, Postgres) configured in the same file.

AGENTS.md

Codex reads AGENTS.md from your project root (and ~/.codex/AGENTS.md globally). The optional in-browser AI writes a tailored one from a plain-English description of your project — it runs entirely in your browser via WebGPU and never uploads your description.

FAQ

Where does config.toml go?

Global config lives at ~/.codex/config.toml; a project can override it at <project>/.codex/config.toml.

Does it send my data anywhere?

No — the config is generated locally in your browser, and the optional AGENTS.md writer also runs locally.

You build the idea. I'll ship the product.

Productized MVP development for founders. 9 SaaS apps shipped — yours could be next, in 6 weeks. Secure by default.

ℹ️ Disclaimer

This tool is provided for informational and educational purposes only. All processing happens entirely in your browser - no data is sent to or stored on our servers. While we strive for accuracy, we make no warranties about the completeness or reliability of results. Use at your own discretion.