Skip to content

Codex Configuration


Open Configuration Directory

bash
# Press Win+R and enter the following
%userprofile%\.codex
bash
# Open Terminal and enter the following command
open ~/.codex

Open config directory

Your directory may contain the following files. There are two core files that need to be configured:

Config file list

FileDescription
config.tomlCodex core configuration file, where proxy service and MCP settings are configured
auth.jsonConfigure your API Key obtained from the proxy service
AGENTS.mdSet 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:

toml
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 = true

2. 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:

json
{
  "OPENAI_API_KEY": "Your API Key"
}

Configure 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:

bash
codex

If you see the interface shown below and get responses to your questions, the configuration is successful!

Test successful

Get Started

Once configured, you can start your Codex journey!