Loading page
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.
Set four environment variables and start Claude Code:
export ANTHROPIC_BASE_URL=https://api.gondola-ai.com
export ANTHROPIC_API_KEY=gnd_xxxx
export ANTHROPIC_MODEL=claude-sonnet-5
export ANTHROPIC_DEFAULT_HAIKU_MODEL=claude-haiku-5-5
claude$env:ANTHROPIC_BASE_URL = "https://api.gondola-ai.com"
$env:ANTHROPIC_API_KEY = "gnd_xxxx"
$env:ANTHROPIC_MODEL = "claude-sonnet-5"
$env:ANTHROPIC_DEFAULT_HAIKU_MODEL = "claude-haiku-5-5"
claudeThe 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:
curl https://api.gondola-ai.com/v1/modelsAnthropic-style dated ids like claude-sonnet-5-20260101 are accepted and resolve to the base id.
The endpoint also works with the Anthropic SDK directly:
import Anthropic from "@anthropic-ai/sdk";
const client = new Anthropic({
baseURL: "https://api.gondola-ai.com",
apiKey: "gnd_xxxx",
});
const msg = await client.messages.create({
model: "claude-sonnet-5",
max_tokens: 1024,
messages: [{ role: "user", content: "Hello from Gondola" }],
});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.