Codex setup

Codex, powered by one API

Point Codex at unlimitedai.sh and switch between 29 frontier models without juggling separate provider accounts. Codex talks to /v1/responses.

Copy-ready setup

One-liner
UAI_API_KEY='sk-xx' codex -m 'openai/gpt-6-luna' -c 'model_provider="uai"' -c 'model_providers.uai={name="unlimitedai.sh",base_url="https://api.unlimitedai.sh/v1",env_key="UAI_API_KEY",wire_api="responses"}'

Step by step

  • →Install Codex: npm i -g @openai/codex
  • →Buy a plan and copy your key
  • →Run the one-liner with any model ID

Which model to pick

  • →Heavy refactors and planning: anthropic/claude-opus-5 or openai/gpt-6-luna
  • →Fast everyday edits: deepseek/deepseek-v4.1-flash or z-ai/glm-5.3-flash
  • →Long context reading: moonshotai/kimi-k3 or qwen/qwen3.8-max
  • →All 29 Models plan only: anthropic/claude-opus-5.5, openai/gpt-6.1-sol, openai/gpt-6-astra and more

Questions

Does Codex need a special plugin?
No. Codex supports custom API endpoints natively; you only change the base URL, key and model ID.
Where do I get my API key?
Your key is delivered after you buy any plan — 28 days or a 24-hour pass.