Docs / Codex CLI (OpenAI)

Codex CLI (OpenAI)

OpenAI-compatible (with /v1)

OpenAI's command-line coding tool.

Base URL
https://llmapi.pro/v1
API Key
sk-... (create in Console → API Keys)
Choose a model
Copy the exact model ID from the subscription model list or pay-as-you-go channels, and check that your client protocol supports it. The model catalogue labels each model’s billing mode.
A monthly subscription uses a subscription key, with supported models sharing the plan quota. Pay-as-you-go API billing uses a separate key and balance. Select the matching key type in the Console, then configure your client protocol. Topping up API credit does not increase subscription quota.

Setup steps

  1. Configure a custom provider in ~/.codex/config.toml (mind the wire_api line — the #1 reason Codex fails to connect):
model = "claude-opus-4-8"
model_provider = "llmapi"

[model_providers.llmapi]
name = "llmapi"
base_url = "https://llmapi.pro/v1"
wire_api = "responses"
env_key = "LLMAPI_API_KEY"
  1. Set the key env var, then run codex: export LLMAPI_API_KEY=sk-YOUR_KEY

Notes

Client not listed? Any "OpenAI-compatible" app works: Base URL = https://llmapi.pro/v1, key = your sk-..., type the model name. Or email support@llmapi.pro.
Need help? Email support@llmapi.pro · Home