AI Gateway: Use Codex with Your ChatGPT Subscription

You can now route Codex CLI requests through AI Gateway while staying signed in with your ChatGPT subscription. The gateway forwards your login to OpenAI and meters usage against your app; your ChatGPT plan pays for the tokens.

Use an app configured for credential passthrough. Codex sends your ChatGPT login in the authorization header and authenticates to the gateway separately with the app’s API key. This setup uses an app, rather than a personal key on the User App.

Configure a custom zuplo model provider in your user-level Codex config, with wire_api = "responses" and requires_openai_auth = true. Select a model your ChatGPT plan supports, prefixed with your gateway provider’s name.

Getting started

Follow Use your ChatGPT subscription for the complete Codex configuration, authentication policy, and verification steps.