OpenAI Codex
Add outerlane as a model provider in Codex CLI.
Codex CLI can send requests to a custom model provider in ~/.codex/config.toml.
Set the API key
Add your key to your shell profile, such as ~/.zshrc or ~/.bashrc.
export OUTERLANE_API_KEY="ol_live_..."Add the provider
Add the outerlane provider to ~/.codex/config.toml or $CODEX_HOME/config.toml.
model = "openai/gpt-6.1-sol"
model_provider = "outerlane"
[model_providers.outerlane]
name = "Outerlane"
base_url = "https://api.outerlane.app/v1"
env_key = "OUTERLANE_API_KEY"
wire_api = "responses"
requires_openai_auth = false- Include
/v1inbase_url. - The client reads the key from the environment variable named in
env_key. Keeprequires_openai_auth = falseto use that key instead of OpenAI sign-in. - Use a provider-prefixed ID such as
openai/gpt-6.1-solinmodel.
Start Codex
Run codex to send requests through outerlane. Open Request logs in the dashboard to confirm a request arrived.
The Responses API is stateless
outerlane does not store conversation state. Requests containing previous_response_id or store: true return 400 unsupported_feature. Check for these fields if Codex reports this error. See the Responses API reference for details.