Get 6% back at Conifer with an ernd card

Gateway

Run Codex on Conifer Gateway

One provider table in Codex’s config sends it through the gateway, on the Responses wire.

Codex takes a custom provider in its config file. Add Conifer Gateway as one, and Codex runs on the catalog’s models through OpenAI’s Responses format.

Set it up

  1. Get a key

    Create one on the console’s API keys page, as the quickstart shows, and keep it in the variable Codex will read.

    terminal
    export CONIFER_API_KEY="sk-cg-…"
  2. Add the provider

    In ~/.codex/config.toml, name the provider and give it a table:

    ~/.codex/config.toml
    model_provider = "gateway"
    web_search = "disabled"
    
    [model_providers.gateway]
    name = "Conifer Gateway"
    base_url = "https://gateway-api.conifer.build/v1"
    env_key = "CONIFER_API_KEY"
    wire_api = "responses"

    base_url ends in /v1, as an OpenAI client’s does. env_key names the variable that holds the key, not the key itself. wire_api = "responses" sends Codex’s requests to /v1/responses.

  3. Start Codex on a model

    terminal
    codex --model claude-haiku-5-5

Codex offers OpenAI’s hosted web search on its own, and only OpenAI’s hosts run it. On a model that isn’t OpenAI’s, such as claude-haiku-5-5, keep web_search = "disabled" at the top of the config. On an OpenAI model you may leave that line out.

What to check

  • A 401 means Codex didn’t find the key: check that the variable env_key names is set in the shell you started it from.
  • A 404 model_not_found means the id isn’t in the catalog: check it in the console’s Models section, or in the catalog.
  • The errors page has every other code.