Direct to `api.anthropic.com` with full tool_use block support. When Helm runs in auto mode, this path gives you the cleanest streaming experience because the Anthropic SSE protocol is the adapter we support natively. Swap with `cf-ai-gateway` if you prefer BYOK through Cloudflare.
Install
1 · Config
Append to ENABLED_PLUGINS in wrangler.toml:
anthropic
Append to ALLOWED_HOSTS:
api.anthropic.com
2 · Secrets
Run each from your Worker project:
-
wrangler secret put ANTHROPIC_API_KEYconsole.anthropic.com/settings/keys · must match^sk-ant-
Copy-paste .dev.vars template
ANTHROPIC_API_KEY=console.anthropic.com/settings/keys