Guide

Use Codex with OpenKodo

Codex talks to the OpenAI Responses API. OpenKodo implements it, including streaming, tool calls and usage reporting, so the only change is the provider block in your Codex config.

  1. 1

    Create an API key

    Go to Console → API keys and copy the key.
  2. 2

    Export the key

    shell
    export OPENKODO_API_KEY="ok_live_..."
  3. 3

    Add the provider to ~/.codex/config.toml

    shell
    model = "gpt-6.2-astra"
    model_provider = "openkodo"
    
    [model_providers.openkodo]
    name = "OpenKodo"
    base_url = "https://api.openkodo.dev/v1"
    env_key = "OPENKODO_API_KEY"
    wire_api = "responses"

    Swap model for any ID in the catalog. deepseek-v4.1-flash-1017 is the cheapest for long agent loops; gpt-6.2-astra is the strongest for hard reviews.

  4. 4

    Run it

    shell
    codex

Why wire_api = "responses" matters

Codex uses the Responses event stream, including function-call items and reasoning items. Pointing it at a Chat Completions-only gateway is the usual cause of tools silently not running. OpenKodo bridges the two formats and preserves tool calls, reasoning and usage.

Try it with $10 of usage

Create an account with Google or GitHub, get $10 of welcome usage, and point your client at api.openkodo.dev. No card required.