Codex CLI API provider in 2026

Use APIsRouter as an OpenAI-compatible gateway for Codex CLI.

Base URLhttps://api.apisrouter.com/v1
Primary use caseCodex CLI API provider in 2026
Model switchingChange the model field, keep the SDK configuration stable
ConsoleUsage, cost, latency and error logs

Start with one Base URL

Most tools only need a Base URL, API key and model ID. Put https://api.apisrouter.com/v1 in the Base URL field.

FAQ

What Base URL should I use?

Use https://api.apisrouter.com/v1. Do not paste endpoint paths into the Base URL field.

Can one APIsRouter key call multiple models?

Yes. One key can route to available Claude, GPT, Gemini, DeepSeek, Kimi, Qwen, GLM, Grok and image models.