Cheaper tokens for Codex & the OpenAI SDK
Whether you use the Codex CLI, the OpenAI SDK, or any OpenAI-compatible framework, you're paying list price per token unless you change one setting.
The one-line change
Set OPENAI_BASE_URL to the endpoint Token Supply gives you and OPENAI_API_KEY to your new key. Everything else in your code stays identical.
Good fits
- Codex CLI sessions on large repos
- Background agents and cron jobs
- High-volume embedding, classification, and summarization pipelines
- Prototypes you don't want to put a corporate card behind
What to verify
- Exact model names and versions available
- Rate limits for your workload
- How unused balance is handled
Codex and OpenAI are trademarks of OpenAI. Mentioned as a compatible use case only — no affiliation or partnership implied.