Docs / Codex CLI (OpenAI)
Codex CLI (OpenAI)
OpenAI-compatible (with /v1)
OpenAI's command-line coding tool.
Base URL
https://api.llmapi.pro:99/v1API Key
sk-... (create in Console → API Keys)Recommended
claude-opus-4-8 · claude-sonnet-4-6 · claude-haiku-4-5Setup steps
- Configure a custom provider in
~/.codex/config.toml(mind thewire_apiline — the #1 reason Codex fails to connect):
model = "claude-opus-4-8"
model_provider = "llmapi"
[model_providers.llmapi]
name = "llmapi"
base_url = "https://api.llmapi.pro:99/v1"
wire_api = "responses"
env_key = "LLMAPI_API_KEY"- Set the key env var, then run
codex:export LLMAPI_API_KEY=sk-YOUR_KEY
Notes
- Recent Codex uses the Responses API (
/v1/responses), so setwire_apito"responses"(the old"chat"value was removed). We support both, so the config above just works. - Base URL includes
/v1; Codex appends/responsesitself.
Client not listed? Any "OpenAI-compatible" app works: Base URL =
https://api.llmapi.pro:99/v1, key = your sk-..., type the model name. Or email [email protected].Need help? Email [email protected] · Home