Getting started
Anthropic SDK & Claude Code
Use the Anthropic Messages API, or point Claude Code at spillway.
spillway also speaks the Anthropic Messages format, including streaming, tools and count_tokens. Authenticate with x-api-key or a Bearer token.
Claude Code
Set two environment variables
export ANTHROPIC_BASE_URL=https://api.spillway.now
export ANTHROPIC_API_KEY=sk-spill-...Run claude
Claude Code now sends every request through spillway, at the best live price.
Anthropic SDK
import anthropic
client = anthropic.Anthropic(base_url="https://api.spillway.now", api_key="sk-spill-...")
message = client.messages.create(
model="claude-opus-5-5",
max_tokens=512,
messages=[{"role": "user", "content": "Hello!"}],
)