OpenAI’s Codex CLI lets you swap providers via a TOML config. Point it at GMI Cloud and you get the full GMI model catalog through Codex’s native interface, chat, tool use, and the OpenAI Responses API all work as-is.Documentation Index
Fetch the complete documentation index at: https://docs.gmicloud.ai/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
- A GMI Cloud account at console.gmicloud.ai
- Codex CLI installed
- A terminal running zsh or bash
- About 5 minutes
Step 1. Get your GMI API key
- Sign in to console.gmicloud.ai.
- Open API Keys and click Create API Key.
- Copy the key now, it won’t be shown again.
Step 2. Export the key
Add this to your shell config (~/.zshrc or ~/.bashrc):
Step 3. Configure Codex
Create or edit~/.codex/config.toml:
model: pick any model from the GMI catalog. Defaults toopenai/gpt-5.5here.[projects."/path"]: set this to the absolute path of the project directory you want Codex to trust without prompting.
wire_api = "responses" line tells Codex to use OpenAI’s Responses API, which GMI Cloud serves at /v1/responses.
Step 4. Run Codex
GMI_API_KEY from your environment, and talks to GMI Cloud directly.
Tips
- Edit the
modelline inconfig.tomlto switch defaults. You can also override per-session from inside the Codex UI. - Browse model IDs in the Text catalog, Image catalog, and Video catalog.
Troubleshooting
401 Unauthorized:GMI_API_KEYisn’t exported in the shell where you launched Codex. Runecho $GMI_API_KEYto confirm.Unknown model: themodelstring must include the provider prefix (e.g.openai/gpt-5.5, notgpt-5.5).- Trust prompts on every run: make sure the
[projects."..."]path matches the directory you’re running Codex from exactly.
Next steps
- Try Claude Code or Cursor with the same GMI account.
- Stuck? Email support@gmicloud.ai.