Codex relay setup

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.

01Three ways, side by side

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.

02Key never on disk or in arguments

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.

03Sessions and plans you can see

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
AnBoWork “Model settings → relay models” page: platform models grouped by vendor, listing several Claude and OpenAI models (Chinese interface)

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.

AnBoWork “Model settings → Own accounts” page: Claude Code, ChatGPT, Antigravity and other official tools sign in with your own account inside a fixed login environment, with the connected exit in the top bar (Chinese interface)

Which option fits

  1. 1You already have a relay

    Add a provider with the URL (down to /v1) and key. Billing follows the relay’s own rules.

  2. 2You have a ChatGPT account

    Sign in natively under “Own accounts” and use that account’s own quota.

  3. 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

Enter it down to the /v1 level, for example https://example.com/v1. Codex appends /responses itself and AnBoWork neither adds nor strips /v1, so one level too many or too few returns a 404.

The Responses API, that is POST {your address}/responses, accepting an Authorization: Bearer key. A relay that only supports chat/completions cannot be used directly for Codex sessions.

The key is handed to Codex through an environment variable; the Codex config holds only the variable name, and the key is not placed in command-line arguments. Provider settings are stored on your computer. If cloud sync is on, provider API keys are synced encrypted, and you can turn that off in settings.

Yes. Sign in under “Model settings → Own accounts”; the login stays on your computer. Connect an AI acceleration node before signing in.

A relay API mostly solves the model interface and access channel. AnBoWork is a full AI agent workspace that unifies models, accounts, tools, task environments and long-term memory, and the platform models it provides can also serve as a unified model service for compatible clients and dev tools.

The client is free to download. Your own relay is billed by that relay, platform models on an AnBoWork account are billed by actual usage, and subscription packages follow the specs on the plans page. Actual prices are whatever the page shows.

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.