Codex
To use TokenDock with the Codex CLI, you can configure it via environment variables or the config.toml file.
Configuration
Set the OPENAI_BASE_URL and OPENAI_API_KEY environment variables:
BASH
export OPENAI_BASE_URL="https://tokendock.ai/v1" export OPENAI_API_KEY="your-tokendock-api-key"
Alternatively, you can edit your ~/.codex/config.toml file:
TOML
[model_providers.openai] baseURL = "https://tokendock.ai/v1" apiKey = "your-tokendock-api-key"
Restart your Codex session or run a new command for the settings to apply. Codex will now use TokenDock as its backend.