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_URLtohttps://api.gutsai.id, without/v1. - Put your Guts AI key in
ANTHROPIC_AUTH_TOKENand leaveANTHROPIC_API_KEYempty. - 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.
/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/messagesitself, so usehttps://api.gutsai.id. If the error code ismodel_not_found, check the model ID against the catalog. 401 Unauthorized- The key is missing, mistyped, revoked, expired or disabled (
invalid_api_key). Check thatANTHROPIC_AUTH_TOKENholds the wholesk-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 theRetry-Afterheader, 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.