Coding Tools

Codex CLI

Codex reads custom providers from ~/.codex/config.toml. Add a model_providers entry with wire_api = "chat" (Draven AI speaks the Chat Completions shape, not OpenAI's newer Responses API), point model_provider at it, and set model to the Draven AI model id directly.

Installation

npm (macOS / Linux / Windows)
npm install -g @openai/codex
Homebrew (macOS)
brew install --cask codex

Or download a prebuilt binary for your platform from the latest GitHub release. Verify the install with codex --version, then run codex.

Configuration

~/.codex/config.toml
model = "your-model-id"
model_provider = "dravenai"

[model_providers.dravenai]
name = "Draven AI"
base_url = "https://api.dravenai.lat/v1"
env_key = "DRAVEN_API_KEY"
wire_api = "chat"
shell
export DRAVEN_API_KEY=sk-drv-your-api-key
Reusing the built-in openai provider id doesn't work for overrides — give your entry a different name, like dravenai above.