CLI Integration
1
2
Configure Codex config file
Update your Use the same exact route in
$CODEX_HOME/config.toml file to include the Planck provider configuration:$CODEX_HOME is typically ~/.codex on Mac or Linux.config.toml
model and the catalog query. For example, openrouter/moonshotai/kimi-k3 becomes openrouter%2Fmoonshotai%2Fkimi-k3 in the URL. The route must be available to your organization’s Planck key. Remove a local model_catalog_json override to use the remote catalog, then restart Codex. The catalog request uses the provider’s configured authentication.For local gateway development, replace both URL origins with http://127.0.0.1:3100. Use HTTPS for deployed gateways.3
Set your Planck API key
Set the
PLANCK_API_KEY environment variable:4
Run Codex with Planck
Use Codex as normal. Your requests will automatically be logged to Planck:
5
SDK Integration
1
2
Install the Codex SDK
3
Configure the SDK with Planck
Initialize the Codex SDK with the AI Gateway base URL:
The SDK uses the Responses API. Configure matching model metadata through the provider configuration above when using a custom model route. Model behavior still depends on its tool-calling capabilities. See the Responses API documentation for transport and continuation limits.
4
VS Code extension and remote environments
In the Codex extension, select Settings → Open config.toml. The default is~/.codex/config.toml (%USERPROFILE%\.codex\config.toml on Windows); when
CODEX_HOME is set, use $CODEX_HOME/config.toml. Merge provider settings into
the existing file, keeping top-level model settings before TOML tables.
Make PLANCK_API_KEY available to the process running Codex. Fully exit VS Code
and launch it from the configured terminal for local setup; launching from the
Dock or Start menu does not inherit those exports. For WSL, SSH, or containers,
configure the environment and user config of the host running the extension.
Do not place keys in TOML or commit them to a repository.
Planck’s remote catalog supplies matching metadata for accessible tool-capable text
models, including provider-qualified routes. It conservatively advertises the
registry’s context limits and recorded reasoning settings. Keep web search disabled:
the mapped Responses route does not implement provider-hosted search tools.
Codex can replay conversation history and tool results over HTTP Responses requests.
Planck does not persist response IDs for previous_response_id or implement
WebSocket continuation. A successful model-list fetch alone does not verify tool
execution or answer quality; test a tool call and a follow-up turn with the chosen
model and installed client.
In Planck’s Connect your coding tools journey, copy the generated setup header
into http_headers under [model_providers.planck]. Send the displayed prompt
from a new Codex conversation and wait for the matching request in Planck. A
browser gateway test is separate from tool verification.
See official gateway setup
and compatibility requirements.