Skip to content
Integration · Anthropic's official terminal coding agent

Use g0i in Claude Code

Anthropic's native CLI agent that lives in your terminal — runs Claude Opus, Sonnet, Fable and Haiku against your local codebase.

Why pair Claude Code with g0i

  • Full Claude Opus 5.5, Sonnet 5, Fable 5.1 and Haiku 4.5 access without an Anthropic enterprise contract
  • Current model IDs and token rates are published in the live catalog
  • Use pay-as-you-go access for the Claude catalog; check current access requirements
  • Works with /v1/messages native Anthropic format, no translation overhead
One-command setup

Set up Claude Code automatically

Paste one command, paste your API key, pick Claude Code — the script installs it if it's missing and writes the config for you. No files to edit; your old config is backed up.

Open a terminal and paste:

curl -fsSL https://g0i.ai/install.sh.txt | bash
  1. 1. Paste the command
  2. 2. Paste your key from API keys
  3. 3. Choose your tool and model

Re-run it any time to switch key or model. Prefer doing it by hand? The manual steps are below.

Manual setup

Set environment variables before launching claude-code. Works on macOS, Linux, and Windows (via WSL).

Base URL
https://api.g0i.ai
API key
sk-... (from g0i.ai/api-keys)
export ANTHROPIC_BASE_URL=https://api.g0i.ai
export ANTHROPIC_API_KEY=sk-...your-key...

# Optional: pick the models Claude Code uses
export ANTHROPIC_MODEL=claude-sonnet-5
export ANTHROPIC_DEFAULT_HAIKU_MODEL=claude-haiku-4-5

# Then launch claude-code as usual
claude
Don't have a key yet? Sign up at g0i.ai/register — redeem a voucher or buy a plan to start.

Recommended models

Any of these can be used in Claude Code. Pick by task — see the full catalog at Models & Pricing.

Sonnet 5
Daily-driver — fast, capable, about half the price of Opus
claude-sonnet-5
Opus 5.5
Newest Opus — complex reasoning, large refactors
claude-opus-5-5
Fable 5.1
Strong reasoning and writing
claude-fable-5-1
Haiku 4.5
Quick edits, cheap, instant
claude-haiku-4-5

Troubleshooting

Getting 401 Unauthorized
Check that your key starts with sk- and was set in the same shell where you launched claude-code. The shell needs to be restarted after adding the export to .bashrc/.zshrc.
Long Opus responses time out at 60s
Already handled — our edge keeps the connection alive past 60s with whitespace heartbeats. If you still see timeouts, your client may have its own timeout setting (API_TIMEOUT_MS).
Want to try a different model
Set ANTHROPIC_MODEL to an Anthropic-format model ID listed in the live Models & Pricing catalog.

Ready to ship in Claude Code?

Choose a subscription, add pay-as-you-go credits, or redeem a community voucher.