⌁ Guides
Claude Code
Gondola serves an Anthropic-compatible endpoint, so Claude Code and the Anthropic SDK work with a base URL change: same tools, same streaming, paid per request in USDC on Base.
1
Create an API key
2
Point Claude Code at Gondola
Set four environment variables and start Claude Code:
This base URL is different
Use api.gondola-ai.com with no path at all. The Anthropic SDK appends /v1/messages itself. This is the one Gondola integration where you do not add /v1 yourself.
Set the small, fast model
Claude Code uses a second, cheaper model for background tasks and defaults it to a Haiku model that Gondola does not serve. Always set ANTHROPIC_SMALL_FAST_MODEL to a cheap model id from the catalog, or background calls will fail with model not found.
3
Pick your models
The catalog includes Claude models (for example claude-sonnet-5 and claude-opus-4-8) alongside open models, all priced by the marketplace. Ids must match exactly, so pull the live list:
Anthropic-style dated ids like claude-sonnet-5-20260101 are accepted and resolve to the base id.
4
Notes and troubleshooting
Interrupts bill fairly
Pressing Esc mid-answer aborts the upstream request. You are billed only for the tokens generated before the stop, not the full answer.
What is not supported
PDF document blocks, Anthropic server tools (their hosted web search and code execution), and extended thinking output are not available through Gondola. Regular client-side tools (file edits, shell commands, the full Claude Code toolset) work, including images in tool results on vision models.
The endpoint also works with the Anthropic SDK directly:
If a request fails with a billing error, top up at /wallet. Model not found means the id is not in the live catalog: check /v1/models and remember the small, fast model override.