LLMsRelay/Docs
Back to dashboard

Codex CLI API — Run the OpenAI API in OpenAI Codex CLI

Connect OpenAI Codex CLI and the Codex extension to the OpenAI API through LLMsRelay's Responses API with a Codex-group key.

Endpoint: POST /v1/responses. Base URL: https://api.llmsrelay.com/v1. wire_api: responses. Models: gpt-5.5, gpt-5.4.

TL;DR

OpenAI Codex CLI and the Codex extension use the Responses API. LLMsRelay Codex serves /v1/responses directly, so a single config block points Codex at the OpenAI API.

Config

~/.codex/config.tomltoml
model = "gpt-5.5"
model_provider = "llmsrelay"

[model_providers.llmsrelay]
name = "LLMsRelay Codex"
base_url = "https://api.llmsrelay.com/v1"
env_key = "LLMSRELAY_API_KEY"
wire_api = "responses"
shellbash
export LLMSRELAY_API_KEY="sk-cs4-your-key"
codex

Full guide

For the complete walkthrough — creating a Codex-group key, configuring the VS Code extension, and testing — see the Codex CLI & Extension guide and the Codex API Reference.

Ready to start?

Create a key and configure a compatible API route in under 2 minutes.

View Plans