Point Claude Code at your gateway
Claude Code talks the native Anthropic protocol. Unyform's gateway exposes the same protocol at your gateway URL, so routing through it is one environment variable.
Per shell
export ANTHROPIC_BASE_URL=https://gateway.unyform.ai/gw/<gateway-id>
claude
Per project
Add to the project's .claude/settings.json:
{
"env": {
"ANTHROPIC_BASE_URL": "https://gateway.unyform.ai/gw/<gateway-id>"
}
}
What changes — and what doesn't
- Your API key stays yours (BYOK): the gateway forwards your
ANTHROPIC_API_KEY/ OAuth credentials upstream and never stores them. - Streaming, count_tokens preflight, and model selection work unchanged — the gateway passes Anthropic SSE through verbatim.
- Each request gains blueprint context and retrieved code context injected as a system prefix, plus policy checks and an audit entry.
Warning
The gateway id in the URL identifies your org's gateway — treat it like configuration, not a secret. Authentication is your own provider key.