Skip to content
TokenGauge
Menu

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.

Updated 9 Oct 2026

§ 01

Steps

  1. Step 1: Generate an API key in the SayGM dashboard.

  2. Step 2: Export ANTHROPIC_BASE_URL with the SayGM Anthropic endpoint from the docs.

  3. Step 3: Export ANTHROPIC_API_KEY with your SayGM key.

  4. Step 4: Run claude in your project. Check the model name in the status line.

Shell
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.

§ 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.