TD TokenDesk Get a quote
← Docs

Codex CLI setup

Wire Codex-style CLIs to a prepaid GPT channel using the key and base URL from your quote. TokenDesk is not affiliated with OpenAI. Exact flags and env names vary by CLI fork — follow your binary's help text.

Prerequisites

  • Prepaid GPT channel (Azure or OpenAI official relay, official key, or OpenAI pool) on your quote.
  • YOUR_API_KEY and https://BASE_URL/v1.

Configure

Typical pattern for OpenAI-compatible CLIs:

export OPENAI_API_KEY="YOUR_API_KEY"
export OPENAI_BASE_URL="https://BASE_URL/v1"
# Then run your Codex CLI pointing at MODEL_ID_FROM_QUOTE

Verify

Run a trivial prompt, assert the model id, then use /docs/verify-model. Family hub: /gpt-api.

Get a written quote

Tell us your models, supply type, monthly volume and peak TPM/RPM. We reply with the channel, rate, contracted capacity and minimum top-up.