Manual CLI Setup
Codex CLI Manual Configuration
Edit config.toml and auth.json to connect Codex to GETMODEL
Make sure you have completed the environment check before continuing with the steps below.
1. Open the configuration directory
Press Win + R and enter:
%userprofile%\.codexopen ~/.codex # macOS
xdg-open ~/.codex # LinuxCodex uses three main files:
| File | Purpose |
|---|---|
config.toml | Main configuration: model, reasoning effort, custom base URL |
auth.json | Stores your API Key |
AGENTS.md | (Optional) global system prompt |
If these files don't exist in the directory, create them manually.
2. Write config.toml
disable_response_storage = true
model = "gpt-5.3-codex"
model_provider = "getmodel"
model_reasoning_effort = "xhigh"
model_verbosity = "high"
[features]
web_search_request = true
[model_providers.getmodel]
name = "getmodel"
base_url = "https://getmodel.ai/v1"
requires_openai_auth = true
wire_api = "responses"Key points:
- The
model_providername (heregetmodel) must match the[model_providers.xxx]block name - The
base_urlshould follow the actual address shown in the Console - Change
modelto the specific model name you want to use by default
3. Write auth.json
{
"OPENAI_API_KEY": "你的-API-令牌"
}Replace "你的-API-令牌" with the string you obtained in Create a token.
4. Verify
Run in the terminal:
codexOnce you're in the chat interface, send a message to test. If you get a normal reply, the configuration was successful.