TOOL INTEGRATION
Codex
OpenAI's coding agent for the terminal and VS Code. Register HashBid as a custom provider that speaks the Responses API.
Before you start
Setup
01Install Codex CLI
Requires Node.js 18 or later.
node --versionnpm install -g @openai/codex02Add HashBid as a provider
Create or edit config.toml in ~/.codex (Windows: %USERPROFILE%\.codex). model_provider must match the table name under model_providers.
model_provider = "hashbid"
model = "<MODEL_ID>"
[model_providers.hashbid]
name = "HashBid"
base_url = "https://hashbidx.ai/v1"
env_key = "HASHBID_API_KEY"
wire_api = "responses"03Set the API key
Codex reads the key from the environment variable named in env_key, so it never sits in the config file.
export HASHBID_API_KEY="<YOUR_API_KEY>"$env:HASHBID_API_KEY="<YOUR_API_KEY>"[System.Environment]::SetEnvironmentVariable("HASHBID_API_KEY", "<YOUR_API_KEY>", "User")After setting a permanent variable on Windows, close and reopen the terminal. The VS Code extension uses the same config.toml and environment variable — restart VS Code after changing them.
04Start Codex
Run it from a project directory.
cd your-project
codexVerify it works
- Ask a read-only question first, e.g.
Summarize the module structure of this repository. - The request shows up on the Logs page of this console.
FAQ
Authentication failed / 401
Check echo $HASHBID_API_KEY prints the key in the terminal that runs Codex.
Paste the raw key only — no Bearer prefix.
“Model provider not found”
model_provider = "hashbid" must match [model_providers.hashbid] exactly, including case.
Connects, but requests keep failing
Codex only speaks the Responses API. Keep wire_api = "responses" and pick a model that supports it.