Skip to main content
Claude Code is Anthropic’s official CLI. By pointing it at GMI Cloud via 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

  1. Sign in to console.gmicloud.ai.
  2. Open Organization Settings → API Keys.
  3. 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

If you’re on bash, use ~/.bashrc instead.

Step 4. Append the GMI environment variables

Scroll to the end of the file and paste these lines, replacing your_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

Claude Code skips the auth prompt and connects straight to GMI Cloud. No subscription, no rate limits.

Tips

  • Want a different default? Change ANTHROPIC_MODEL to 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 if claude still asks you to log in.

Next steps