Codex relay API: connect Codex to your own endpoint from a GUI
The Codex command line supports custom providers, but you have to hand-write the config and remember where the URL and key go. AnBoWork turns that into a form: enter the relay URL and key, pick a model, and run Codex on your projects in one desktop window. You can also sign in with a ChatGPT account, or use AnBoWork’s Codex subscription package.
Your own relay or compatible API, a ChatGPT account, or the platform models and subscription packages of an AnBoWork account. Whichever you pick is the one whose quota is used.
The key reaches Codex through an environment variable and the config only holds the variable name. Command-line arguments are visible to other processes, so the key is never put there.
Sessions are grouped by project, plan mode hands you a plan before acting, and permission requests are cards in the conversation.
What a Codex relay is, and when you need one
A “relay” means Codex sends its requests to an OpenAI-compatible endpoint instead of the official address. Common reasons are unified billing and usage control, one shared entry point for a team, or having a relay service of your own already.
In AnBoWork, Codex posts to the address you enter plus /responses, so enter the address down to the /v1 level (for example https://example.com/v1), and the relay must support the Responses API. A relay that only supports chat/completions cannot be used for Codex sessions.
- The address is used as typed: nothing is added or stripped, so a wrong /v1 means a 404
- The protocol is detected by the client and shown read-only
- No relay at hand is fine: use an official account or a platform model instead

Four steps to put a relay behind Codex
Open Model settings, switch to the relay models tab and click “Add provider”. Enter a name, the relay URL (down to /v1) and the API key; the client detects the protocol and lists the available models.
After saving, pick a model from that provider on the welcome page or in a session’s input box and start a session. A provider can be switched off at any time, and a disabled provider can no longer send messages from the welcome page or inside sessions.
- 1. Model settings → relay models → Add provider
- 2. Enter the URL (down to /v1) and the API key
- 3. Check the detected protocol and model list
- 4. Start a session and pick a model from this provider
Official accounts and subscription packages live in the same window
If you have a ChatGPT account, sign in under “Model settings → Own accounts”. AnBoWork runs the official Codex command line on your computer, and the login stays on your machine and does not pass through AnBoWork. Connect an AI acceleration node before signing in.
If you would rather not bring your own account, look at subscription packages: official-account quota bundled with a dedicated static residential IP, bought directly and activated after payment. Available specs and prices are whatever the plans page shows.

Which option fits
- 1You already have a relay
Add a provider with the URL (down to /v1) and key. Billing follows the relay’s own rules.
- 2You have a ChatGPT account
Sign in natively under “Own accounts” and use that account’s own quota.
- 3You want platform models
Sign in with an AnBoWork account and pay by actual usage for the platform’s models, or buy a subscription package.
Limits worth knowing
- AnBoWork is a desktop workspace, not the guarantor of any relay: the stability, pricing and compliance of third-party relays are the provider’s responsibility.
- The relay must support the Responses API (POST {address}/responses) for Codex sessions; chat/completions-only relays do not work.
- “Codex” here means OpenAI’s Codex command line. AnBoWork only calls the official program on your machine and has no official partnership.
- Please follow OpenAI’s terms, the terms of the relay you use, and the official list of supported regions.
Frequently asked questions
Related pages
Replace hand-written Codex config with a form
The client is free to download. Add your relay under Model settings once it is installed, or just use an official account.
AnBoWork is an independently built desktop client and has no official partnership with or authorization from OpenAI or Anthropic; Codex, ChatGPT and OpenAI are trademarks of their respective owners. The availability, pricing and compliance of third-party relay services are the responsibility of their providers. Please follow each service’s terms of use and its official list of supported regions.