New GPT-6.2 Sol is live. Same key. View in catalog

Use Claude Code with Guts AI

Two environment variables point Claude Code at Guts AI. Your workflow, slash commands and MCP tools stay exactly as they are.

TL;DR

  • Set ANTHROPIC_BASE_URL to https://api.gutsai.id, without /v1.
  • Put your Guts AI key in ANTHROPIC_AUTH_TOKEN and leave ANTHROPIC_API_KEY empty.
  • Pick a Claude model from the catalog, for example claude-sonnet-5.5.

Configure Claude Code

Claude Code talks to Guts AI through the Anthropic-compatible /v1/messages endpoint, so nothing about how you use it changes: MCP tools and slash commands run in Claude Code itself, and Guts AI serves the model calls they make. Claude Code reads its endpoint and key from environment variables. Put them in ~/.claude/settings.json so every session picks them up, or export them in your shell.

1{
2 "env": {
3 "ANTHROPIC_BASE_URL": "https://api.gutsai.id",
4 "ANTHROPIC_AUTH_TOKEN": "sk-guts-your-api-key",
5 "ANTHROPIC_API_KEY": ""
6 },
7 "model": "claude-sonnet-5.5"
8}
1# For the current shell session
2export ANTHROPIC_BASE_URL="https://api.gutsai.id"
3export ANTHROPIC_AUTH_TOKEN="sk-guts-your-api-key"
4export ANTHROPIC_API_KEY=""
5
6# Start Claude Code with a model from the catalog
7claude --model claude-sonnet-5.5
No /v1 suffix Claude Code adds /v1/messages itself. Use https://api.gutsai.id as the base URL here, not https://api.gutsai.id/v1, the base URL for OpenAI SDKs.

Choose a model

Use a Claude model ID exactly as the catalog lists it, with no provider prefix. Set it once in settings.json, or switch inside a session with /model.

Each model is billed per token from your Guts AI balance at the prices shown on its model page.

Troubleshooting

404 Not Found
The base URL ends in /v1, so requests go to /v1/v1/messages. Claude Code adds /v1/messages itself, so use https://api.gutsai.id. If the error code is model_not_found, check the model ID against the catalog.
401 Unauthorized
The key is missing, mistyped, revoked, expired or disabled (invalid_api_key). Check that ANTHROPIC_AUTH_TOKEN holds the whole sk-guts-... key and that the key is active in the console.
429 Too Many Requests
Your account reached its requests-per-minute limit (rate_limit_exceeded). All keys of an account share one budget, and each request is also checked against its key's own limit. Wait for the number of seconds in the Retry-After header, then retry. The errors page lists every status code.

Run it on Guts AI

Create a key in the console, then follow the Claude Code page in the docs for project-level settings and non-interactive runs in scripts and CI.