Skip to main content
Claude Code talks the Anthropic Messages API, so the resource you point it at needs an Anthropic-compatible provider attached - Anthropic itself, Bedrock, Vertex AI, or a custom Anthropic-compatible endpoint like Kimi K2. See AI Gateway Overview if you haven’t set that up yet. You’ll need the resource’s URL (its <endpoint>) and its API key (<key>). Both are on the resource’s Keys page.
Public vs. private resourcesWherever these instructions show <key>, what you put there depends on the resource type:
  • Public resource - reachable from anywhere, so the gateway checks a virtual API key. Copy it from the resource URL after login, the Resource Launcher more-info panel, or https://app.pangolin.net/<org-id>/keys (use your self-hosted dashboard URL in place of app.pangolin.net if you self-host).
  • Private resource - only reachable from devices connected to your Pangolin network, so no key is checked. You must have the Pangolin client installed and connected. Use the literal string none as the key.
Don’t delete the key field for private resources. Most clients refuse to start without some key set, so they need an inert placeholder rather than a missing one.

Fastest: Pangolin CLI

Install the Pangolin CLI if you don’t have it, then log in:
Configure Claude Code against a resource:
This prompts you to pick an organization and resource if you have more than one, fetches a key for you if the resource needs one, and writes ~/.claude/settings.json. To skip the prompts:
To undo it:

Manual setup

Pick the preset that matches your provider.

Default (Anthropic)

Write ~/.claude/settings.json:
Or, for a one-off shell session instead of a permanent settings file:
For a private resource, keep apiKeyHelper/ANTHROPIC_API_KEY in place and set the key to none. Claude Code only calls apiKeyHelper if it’s present, and falls back to whatever account you’re already signed into if it isn’t - so removing it sends your traffic to Anthropic instead of through the gateway.

Amazon Bedrock

Use this when the resource has a Bedrock provider attached. Write ~/.claude/settings.json:

Google Vertex AI

Use this when the resource has a Vertex AI provider attached. Write ~/.claude/settings.json:
Replace <your-gcp-project-id> with your actual GCP project ID.

Kimi K2 (Moonshot AI)

Use this when the resource has a custom provider pointed at Moonshot AI’s Anthropic-compatible endpoint. Write ~/.claude/settings.json: