Codex config.toml: locations, precedence, and a minimal setup
Find the configuration Codex actually loads, separate user and project settings, and verify changes with a minimal TOML example.
Start with this guideCodexFree · Independent configuration notes
Configuration notes for the Client + CLI, from using your own API to project instructions, MCP, and troubleshooting. Each guide includes examples, steps, and sources.
Find the configuration Codex actually loads, separate user and project settings, and verify changes with a minimal TOML example.
Start with this guideMap your provider’s URL, model ID, and credential variable to user-level Codex configuration, then verify Responses compatibility.
Keep scenario-specific differences in separate profile files, understand precedence, and migrate the retired inline profile format.
Separate authentication from provider routing and credential storage, including why exporting a key is not the same as signing in.
Turn project structure, validation commands, and working agreements into reusable instructions, with a template and a loading check.
Distinguish HTTP from STDIO, configure authentication, discover tools, and validate one small call before expanding access.
Separate what commands can do from when approval is requested, with read-only and workspace-editing examples and a migration note.
Narrow down configuration, authentication, routing, and execution failures one layer at a time, with a redacted reproduction template.
Choose your operating system, install CC Switch, and follow the configuration steps.
CC Switch is an open-source app with a visual interface. It writes the Codex configuration for you; prepare only the Base URL, API key, and model name.
Claude, Codex, and Gemini store separate configurations, so choose the correct tab.
Enter the provider's Base URL, API key, and model. Turn on local routing if it only offers a Chat endpoint.
Wait until it shows active. A running Codex Client does not reload the new configuration automatically.
No ChatGPT sign-in · Model requests go to your API
You can use a compatible third-party API without signing in to ChatGPT or OpenAI, but you still need an API key from your provider. Cloud tasks and account sync may still require an official account.
Not yet. Email registration is a waitlist. Available models, quotas, rate limits, and timing will be explained when access opens. Signing up does not issue a key immediately.
This site covers the Codex Client + CLI. They generally share ~/.codex, but you should verify CODEX_HOME and credential sources, then restart the relevant process after changes.
Not necessarily. Codex requires the Responses API. Providers that only support Chat Completions need adaptation. Our guide and tools explain the protocol, URL, and model checks.
No. Configure the key on your own computer using CC Switch or Codex settings. Our config generator asks for an environment variable name, not your secret. The free API waitlist only asks for an email address.
Access is not open yet. Leave your email to receive a key, base URL, models, quota details, and setup instructions when available.
Used only for API access notices. See the privacy policy.