Skip to main content
ChatGPT(Codex) is OpenAI’s official command-line and desktop client. This page shows how to point it at Global AI instead of the official API. Desktop download: openai.com/codex.
Codex requires a token in the Codex group. Tokens for other model vendors will not work. Choose the codex group when you create the key at globalai.vip/keys.
Pick one of the two methods below: CC Switch is best on the desktop with a GUI. Manual setup suits users comfortable with command line and config files.
CC Switch is a desktop tool for switching providers with one click. It supports both Claude Code and ChatGPT(Codex). Download: github.com/farion1231/cc-switch/releases. Global AI supports one-click import into CC Switch. Steps:
1

Create a Codex-group key

Sign in to Global AI, open API keys in the left menu (or go directly to globalai.vip/keys), and create a key in the codex group.
2

Open the CC Switch import menu

On the row of the new key, click the button on the far right and choose CC Switch from the dropdown.Choose CC Switch from the key menu
3

Fill in the import details

In the dialog:
  • App: choose Codex
  • Name: customize as needed
  • Main model: choose gpt-5.6-sol
Confirm and click Open CC Switch at the bottom.Fill in CC Switch import details
4

Confirm opening CC Switch

Confirm in the browser prompt to open the CC Switch application.Confirm opening CC Switch
5

Import the configuration

In CC Switch, click Import and wait for the success message.Click the Import button
6

Send a test message

Open the ChatGPT(Codex) client and send a test message.Send a test message in Codex
7

Verify the integration

Open Usage logs. If a call appears at the same time as your test, the integration works.Verify integration in Usage logs

Option 2: Manual setup

1

Install ChatGPT(Codex)

Download and install the desktop client from openai.com/codex.
2

Edit config.toml

Locate the config file for your OS:
  • Windows: C:\Users\<your username>\.codex\config.toml
  • macOS / Linux: ~/.codex/config.toml
Write:
config.toml
3

Edit auth.json

Locate the file for your OS (create it if missing):
  • Windows: C:\Users\<your username>\.codex\auth.json
  • macOS / Linux: ~/.codex/auth.json
Write your codex-group key:
auth.json
4

Restart and verify

Restart the ChatGPT(Codex) client, send a test message, and confirm the call in Usage logs.

Use inside VS Code

After either method is in place, install the official Codex extension from the VS Code marketplace to call Global AI directly from the IDE.

Troubleshooting

Confirm the token is in the codex group, not another vendor group. Edit the token at globalai.vip/keys to check its group.
Model IDs change over time. Use the current Codex model IDs shown on globalai.vip/pricing.

References