SDKs & Libraries
Claude Code
Wire Anthropic's terminal coding agent to Prismma with three env vars.
Connect
Claude Code reads ANTHROPIC_BASE_URL and ANTHROPIC_AUTH_TOKEN on startup. Point the base URL at Prismma's root and the token at your sk-eu-... key.
# Connect Claude Code → Prismma unset ANTHROPIC_API_KEY # Claude Code v2.x prefers this over ANTHROPIC_AUTH_TOKEN export ANTHROPIC_BASE_URL="https://api.prismma.ai" export ANTHROPIC_AUTH_TOKEN="sk-eu-YOUR-KEY" export ANTHROPIC_MODEL="claude-opus-4-7" claude
Alternative: ~/.claude/settings.json
// ~/.claude/settings.json
{
"env": {
"ANTHROPIC_BASE_URL": "https://api.prismma.ai",
"ANTHROPIC_AUTH_TOKEN": "sk-eu-YOUR-KEY",
"ANTHROPIC_MODEL": "claude-opus-4-7",
"ANTHROPIC_API_KEY": ""
}
}The API-key gotcha
Claude Code v2.x prefers ANTHROPIC_API_KEY over ANTHROPIC_AUTH_TOKEN when both are set. If a stale ANTHROPIC_API_KEY is exported in your shell, your Prismma key is ignored and requests go directly to api.anthropic.com, failing with "Invalid API key." Always unset ANTHROPIC_API_KEY (or set it to an empty string in settings.json) before using ANTHROPIC_AUTH_TOKEN.
For real 1M-token context on Claude models, also set ANTHROPIC_BETAS=context-1m-2025-08-07 — see 1M Context (Claude).