Integrations
Claude Code
Configure Claude Code to call plaingateway.
sh
export ANTHROPIC_BASE_URL="https://api.plaingateway.com/api" export ANTHROPIC_AUTH_TOKEN="$PLAINGATEWAY_API_KEY" export ANTHROPIC_API_KEY="" export ANTHROPIC_MODEL="openai/gpt-5.6-luna" claude
Or put the same variables in the env object of ~/.claude/settings.json:
json
{
"env": {
"ANTHROPIC_BASE_URL": "https://api.plaingateway.com/api",
"ANTHROPIC_AUTH_TOKEN": "sk-pg-v1-...",
"ANTHROPIC_API_KEY": "",
"ANTHROPIC_MODEL": "openai/gpt-5.6-luna"
}
}ANTHROPIC_BASE_URL stops at /api because Claude Code appends /v1/messages.
ANTHROPIC_AUTH_TOKEN carries your key. ANTHROPIC_API_KEY stays empty so Claude Code does not send an Anthropic key.
ANTHROPIC_MODEL is a plaingateway model ID that an AI provider key serves. Today no key serves an anthropic/ model, so the example uses openai/gpt-5.6-luna; the gateway translates each request to chat completions.