Use NeverMetered with Codex CLI

OpenAI's open-source terminal agent, using a custom Responses API provider.

OpenAI Responses
Model
qwen3.8-27b
8,192 max output tokens on the free planReplace YOUR_API_KEY with your key.
  1. 1

    Create an API key

    Create a key in API keys and name it after the tool, for example “Codex CLI”. A dedicated key per tool lets you see its usage separately and give it its own parallel-stream cap. The key is shown once; the snippets below use YOUR_API_KEY where it goes.

  2. 2

    Add a model provider

    Add this to your Codex config (create the file if it doesn't exist). Codex reads the key from the environment variable named in env_key.

    ~/.codex/config.toml
    model = "qwen3.8-27b"
    model_provider = "nevermetered"
    
    [model_providers.nevermetered]
    name = "NeverMetered"
    base_url = "https://api.nevermetered.com/v1"
    env_key = "NEVERMETERED_API_KEY"
    wire_api = "responses"
  3. 3

    Export your key and start Codex

    export NEVERMETERED_API_KEY="YOUR_API_KEY"
    codex
  4. 4

    Verify it works

    Run a non-interactive task. The request shows up in Requests within a few seconds, with its input, cached and output tokens.

    codex exec "Reply with the word ready"
Tips
  • Codex resends the conversation on every turn. Requests from one session stick to the same engine for a while, so the shared prefix is served from cache and shows up as cached input tokens.
  • Codex can run several tool calls and agents at once; each generation uses one of your parallel streams. Your plan allows up to 8,192 output tokens per request.

Troubleshooting

Codex says the environment variable is missing
Export NEVERMETERED_API_KEY in the shell that runs codex, or add it to your shell profile.
404 model_not_found
Use a model id exactly as GET /v1/models lists it, for example qwen3.8-27b. Plans can restrict which models a key may call.
429 concurrency_limit_exceeded
All your parallel streams are busy and your queue allowance is full. Lower the tool's parallelism (subagents, batch size), or get more streams on your plan.
Answers stop mid-sentence
The response hit your plan's output cap of 8,192 tokens (finish reason length or max_tokens). Ask for shorter steps, or upgrade for a higher cap.
403 email_verification_required
Free requests need a verified email. Click the link in your verification email (you can resend it from the dashboard), or upgrade.
429 daily_quota_exceeded
You've used today's free requests; agents send one request per step, so they go quickly. The allowance resets at 00:00 UTC, and paid plans have no daily limit.
503 / 504 request_queue_timeout
The service stayed busy longer than the queue timeout and nothing was generated. Retry with backoff, and give the tool a generous request timeout.