Connect clientsTutorial

Connect with Codex

Configure the Codex CLI against the Responses API.

By the end: Codex runs with a GPT model served by RouteForge.

Codex uses the OpenAI Responses API, which the gateway serves for GPT models.

Environment

export OPENAI_BASE_URL="https://www.ary4n73.com/v1"
export OPENAI_API_KEY="$ROUTEFORGE_API_KEY"

Verify

Responses

curl https://www.ary4n73.com/v1/responses \
  -H "Authorization: Bearer $ROUTEFORGE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"gpt-5.6-sol","input":"Say hello"}'
Use a GPT model. A Claude or Gemini model on this route has a different wire format, so the response will not parse even though the request succeeded upstream.