Setup note · 4 steps
SayGM in Claude Code
Claude Code talks the Anthropic API. SayGM exposes that API natively, so the CLI works unchanged. Only two environment variables change.
§ 01
Steps
Step 1: Generate an API key in the SayGM dashboard.
Step 2: Export ANTHROPIC_BASE_URL with the SayGM Anthropic endpoint from the docs.
Step 3: Export ANTHROPIC_API_KEY with your SayGM key.
Step 4: Run claude in your project. Check the model name in the status line.
export ANTHROPIC_BASE_URL="<SayGM Anthropic endpoint>"export ANTHROPIC_API_KEY="sk-saygm-..."claude§ 02
Why route Claude Code through a gateway
- 01
Pay per token instead of a fixed plan. Cost tracks usage.
- 02
Opus 5 and Sonnet 5 at or below Anthropic list price.
- 03
Requests are decrypted only inside the gateway enclave before going to the provider.
§ 03
Models worth trying in Claude Code
Snapshot SayGM prices per million tokens, input then output.
- Claude Fable 5.1The hardest reasoning and agent tasks, where cost matters least$8.89 / $44.45
- Claude Opus 5.5Agentic coding, long multi-step tasks, hard reasoning$3.56 / $17.78
- Claude Sonnet 5.5Daily coding in Cursor, Cline and Claude Code$1.78 / $8.89
- Claude Opus 5Agentic coding, long multi-step tasks, hard reasoning$4.45 / $22.23
- Claude Sonnet 5Daily coding in Cursor, Cline and Claude Code$1.78 / $8.89
- Claude Haiku 4.5Classification, extraction, high-volume pipelines$0.89 / $4.45
Other notes: Cursor · Cline · Vercel AI SDK · OpenAI SDK · Anthropic SDK
§ 04
Claude Code questions
Does Claude Code work with SayGM?
Yes. Claude Code talks the Anthropic API. SayGM exposes that API natively, so the CLI works unchanged. Only two environment variables change.
Which models can I use in Claude Code through SayGM?
Any model in the SayGM catalogue, including Claude Fable 5.1, Claude Opus 5.5, Claude Sonnet 5.5, Claude Opus 5 and confidential open-weight models.
Where do I find the SayGM base URL?
The endpoints for the OpenAI, Anthropic and Gemini compatible APIs are listed in the SayGM developer docs, linked from the SayGM website after sign-up.