~/.codex folder, so one setup covers all of them.
One-command install
Replacesk-xxx with your key, open a terminal, paste and press Enter. The script verifies the key, lists every model the key may call and lets you pick (Enter = recommended: gpt-astra for Astra, gpt-5.6-sol for GPT, claude-opus-5 for Claude), installs Codex CLI and writes the config.
- macOS / Linux
- Windows
--lang en or --lang vi). Without --key it prompts for the key. To force a model add --model gpt-astra or --model gpt-5.6-sol.gpt.teamsoclo.site for verification.
What the script does
- Verifies the key with the gateway and picks the model for your package; a bad key stops here without touching your machine.
- Backs up your existing
config.toml, if any, asconfig.toml.bak.<timestamp>. - Writes
~/.codex/config.toml: modelgpt-5.6-sol, the TeamSocLo gateway, Responses API. - Stores the key in the environment variable
TEAMSOCLO_API_KEY(in~/.zshrc/~/.bashrc, or as a user variable on Windows). The key is not in the config file, so you can shareconfig.tomlwithout leaking it. - Installs or upgrades Codex CLI with
npm install -g @openai/codex.
After installing
1
Open a new terminal, run codex
2
VS Code: install the extension, quit fully, reopen
VS Code → Extensions → search Codex (OpenAI’s coding agent) → Install. Then quit VS Code completely: macOS
Cmd + Q, Windows close every window. Reload Window is not enough; the extension reads config only at process start.3
Codex app
Reopen the app after running the command. On macOS the command set the variable for GUI apps via
launchctl; on Windows setx applies to apps started afterwards.requires_openai_auth = false tells Codex to use the gateway key from the environment variable.
Manual configuration
If you prefer to edit yourself,~/.codex/config.toml (Windows: %USERPROFILE%\.codex\config.toml) must contain exactly:
TEAMSOCLO_API_KEY must hold your key.
Open the config folder quickly:
Changing the model
The GPT Astra package usesgpt-astra. Edit the first line of config.toml and restart Codex:
gpt-astra gets “no available channel”, and vice versa. The model follows the package you bought, see Models and packages.
Uninstall
- macOS / Linux
- Windows
config.toml.bak.<timestamp> back over config.toml.
If it does not work
- You opened a new terminal or quit VS Code fully after installing.
echo $TEAMSOCLO_API_KEY(Windows:echo %TEAMSOCLO_API_KEY%in cmd) prints the full key.base_urlends with/v1,wire_apiisresponses.- The key is still valid and has quota: check here.
- Otherwise see Troubleshooting, it has a Codex section.
