Codex
Use Whiskers from Codex.
There are two ways to set up Codex:
Automatic (setup script)
RecommendedThe setup script does the manual steps for you: it checks your key, writes Codex's config, keeping what's already in the file, and saves the key in your environment. Run it again to pick up new models, change the key, or undo the setup.
curl -fsSL https://whiskers.nyuu.dev/setup.sh | sh -s -- --agents codex
& ([scriptblock]::Create((irm https://whiskers.nyuu.dev/setup.ps1))) -Agents codex
Faster still: create a key on the Keys page and choose Codex there. You get this command with everything filled in, key included, so there's nothing to answer.
- 1
Put your API key in an environment variable
Add this to your shell profile (~/.zshrc, ~/.bashrc), with your key from the Keys page.
~/.zshrcexport WHISKERS_API_KEY=sk-...
- 2
Add Whiskers as a provider
In ~/.codex/config.toml. If the file exists, merge these settings into it. Codex can't look up a model it doesn't ship with, so the config gives it the model's context window; pick the model to start on.
More models
Each of these is a setting Codex already has, shown by its own name. Leave one as it is and it keeps its default.
~/.codex/config.tomlmodel_provider = "whiskers" model = "deepseek-v4.1-flash" model_context_window = 1000000 show_raw_agent_reasoning = true web_search = "disabled" [model_providers.whiskers] name = "Whiskers" base_url = "https://whiskers.nyuu.dev/v1" env_key = "WHISKERS_API_KEY" wire_api = "responses"
- 3
Start it
Run codex. It warns that it has no metadata for the model; that's expected, and the config covers what it needs. To switch models, pick another one above and copy the config again.
shellcodex
The config lists today's models. When new ones appear on Models and pricing, copy it again.