Codex Gateway is a Windows desktop app for managing Codex accounts and model channels in one place.
- Add ChatGPT subscription accounts and view their five-hour and seven-day quotas.
- Add Responses API model channels such as DeepSeek-compatible services.
- Use bundled Codex models and third-party models from the Codex model picker.
- Set input, cached-input, and output prices for each model.
- Start and stop Codex Gateway and MCP Gateway.
- Review requests, token usage, latency, estimated cost, and runtime errors.
- Switch between light and dark themes.
- Open
Codex Gateway.exe. - Add a subscription account from Subscription Accounts.
- Add any third-party service from Model Channels.
- Open Access Mode and apply Gateway mode.
- Start Codex Gateway from Services.
- Select the model you want in Codex.
Gateway mode lets Codex use both subscription accounts and configured model channels. Account mode connects Codex directly to one selected subscription account.
You can sign in through the browser or import the account currently used by Codex. The account list shows availability, quota windows, refresh time, and reset credits.
Accounts can be enabled, disabled, refreshed, or removed. Automatic quota refresh is configured under Settings > Accounts and Quotas.
Each third-party channel requires:
- A name, API address, and API key.
- The channel's Codex
models.jsoncontent. - Whether the channel supports Responses WebSocket.
- Optional custom headers, balance lookup, and per-model prices.
Model IDs must be unique across all channels. Codex uses the selected model ID to choose its channel.
The model JSON also tells Codex which tools, MCP features, input types, and reasoning levels the model supports. Use the metadata supplied by the model provider.
If a channel does not support WebSocket, leave Supports WS disabled. Codex requests for that channel will use HTTP.
Codex Gateway can manage a local mcp-gateway-service. Configure its file path and address under Settings > MCP Integration, then start it from Services.
Application data is stored beside the packaged app in data/. The Settings > Storage and Maintenance page shows the exact location and provides controls for clearing request and runtime logs.
Back up the data/ directory before moving the app or making major changes. Do not share it because it contains account and channel configuration.
Node.js 24 is required.
npm install
npm run dev
npm run verifyCreate the Windows unpacked build with:
npm run pack:unpackedThe output is release/win-unpacked/Codex Gateway.exe. The app is not code-signed and no installer is included.
This project is intended for personal local development. Use your own accounts and API keys, and follow the terms of each service provider. Do not use it for account sharing, resale, or bypassing service restrictions.
MIT. See LICENSE.
