Codex

Connect the Codex CLI through the OpenAI Responses API.

/v1/responses
  1. Install Codex

    If Codex is already installed, skip to the provider configuration.

    Terminal
    npm install -g @openai/codex
  2. Configure the Zokasta provider

    Merge these settings into ~/.codex/config.toml. On Windows, use %USERPROFILE%\.codex\config.toml. Place model and model_provider above any section headers, then add the Zokasta provider section.

    config.toml
    # ~/.codex/config.toml
    model_provider = "zokasta"
    model = "gpt-6.1-sol"
    
    [model_providers.zokasta]
    name = "Zokasta"
    base_url = "https://api.zokasta.com/v1"
    model_catalog_url = "https://api.zokasta.com/codex/models"
    env_key = "ZOKASTA_API_KEY"
    wire_api = "responses"
    requires_openai_auth = false
  3. Set your key and run Codex

    From your project directory, set the key in your terminal and launch Codex.

    Bash or Zsh
    export ZOKASTA_API_KEY="sk_live_..."
    codex
    PowerShell
    $env:ZOKASTA_API_KEY = "sk_live_..."
    codex