Codex Configuration
Open Configuration Directory
# Press Win+R and enter the following
%userprofile%\.codex# Open Terminal and enter the following command
open ~/.codex
Your directory may contain the following files. There are two core files that need to be configured:

| File | Description |
|---|---|
| config.toml | Codex core configuration file, where proxy service and MCP settings are configured |
| auth.json | Configure your API Key obtained from the proxy service |
| AGENTS.md | Set global prompts for Codex (optional) |
Important
If these files don't exist, you need to manually create them and add the content.
1. Configure config.toml
Copy the following configuration to your config.toml file and save:
model_provider = "anc"
model = "gpt-5.2-codex"
model_reasoning_effort = "high"
network_access = "enabled"
disable_response_storage = true
windows_wsl_setup_acknowledged = true
model_verbosity = "high"
[model_providers.anc]
name = "anc"
base_url = "https://newapi.autoncode.com/v1"
wire_api = "responses"
requires_openai_auth = true2. Configure API Key
Use the configuration generator below to enter your API Key and copy the configuration with one click:
Or manually copy the following configuration to your auth.json file:
{
"OPENAI_API_KEY": "Your API Key"
}
Get API Key
Review the Token Management tutorial to create a Codex group token in ANC proxy, then click the copy button to get your Key.
3. Test Connection
Enter the following command in your terminal to start Codex:
codexIf you see the interface shown below and get responses to your questions, the configuration is successful!

Get Started
Once configured, you can start your Codex journey!
