Skip to main content
Codex should use LinkModel’s Responses-compatible endpoint. Use GPT-series LinkModel models only.

Configure

Set your LinkModel API key:
Add a LinkModel provider to ~/.codex/config.toml:
Start Codex:
Use GPT-series models that are exposed on the Responses endpoint:

Verify

Open /status in Codex and confirm the active provider is linkmodel. If Codex does not pick up shell environment variables, put the key in ~/.codex/.env:
Restart Codex after changing ~/.codex/config.toml or ~/.codex/.env.

Official Reference