Claude Code is Anthropic’s official CLI. By pointing it at GMI Cloud viaDocumentation Index
Fetch the complete documentation index at: https://docs.gmicloud.ai/llms.txt
Use this file to discover all available pages before exploring further.
ANTHROPIC_BASE_URL, you get the same Sonnet/Opus/Haiku models on a pay-as-you-go basis: no subscription, no session caps, no rate-limit walls on long sessions.
Prerequisites
- A GMI Cloud account at console.gmicloud.ai
- Claude Code installed
- A terminal running zsh or bash
- About 5 minutes
Step 1. Get your GMI API key
- Sign in to console.gmicloud.ai.
- Open Organization Settings → API Keys.
- Create a new key and copy it immediately.
Step 2. Open your terminal
On macOS, open Terminal (or iTerm). On Linux, use your default shell.Step 3. Edit your shell config
~/.bashrc instead.
Step 4. Append the GMI environment variables
Scroll to the end of the file and paste these lines, replacingyour_gmi_api_key_here with the key you copied:
Step 5. Save and reload
In nano:Ctrl + X, then Y, then Enter.
Reload the shell so the variables take effect:
Step 6. Log out of any prior Claude session
Step 7. Launch Claude Code
Tips
- Want a different default? Change
ANTHROPIC_MODELto any model in the catalog. API_TIMEOUT_MS=600000(10 minutes) helps for long tool-use sessions; lower it if you prefer faster fail-fast behaviour.- The env vars only apply to shells started after
source ~/.zshrc. Open a fresh terminal ifclaudestill asks you to log in.
Next steps
- Try Codex or Cursor with the same GMI account.
- Browse models in the Text catalog.
- Stuck? Email support@gmicloud.ai.