CLI Integration
Codex CLI with Meridian
Route OpenAI Codex CLI through Meridian for unified billing, rate limiting, and request logging. Two environment variables is all it takes.
Quick Setup
Export these variables in your shell profile or .env file. Codex CLI reads them automatically.
CODEX_BASE_URL=https://api.getnimbus.net/v1
CODEX_API_KEY=mnb_sk_your_key_hereCODEX_BASE_URL
Meridian API endpoint that proxies requests to OpenAI. All models available through your Meridian plan — no separate OpenAI key needed.
CODEX_API_KEY
Your Meridian API key. Generate one from the API Keys dashboard. Prefix is always mnb_sk_.
Verify It Works
Run a quick test to confirm Codex CLI is routing through Meridian:
codex exec "Say hello and confirm you are running through Meridian"Check your request logs — you should see the completion appear within seconds.