Claude Code
Claude Code talks to the Anthropic API. Point it at the proxy’s anthropic path and add your Milgram API
key as a custom header. Your Anthropic login keeps working unchanged: it is forwarded to Anthropic as
before.
Merge this env object into ~/.claude/settings.json. It applies to Claude Code in every project.
{ "env": { "ANTHROPIC_BASE_URL": "https://api.milgram.dev/v1/proxy/anthropic", "ANTHROPIC_CUSTOM_HEADERS": "x-milgram-api-key: mlg_YOUR_KEY" }}Export the same values in the shell that launches claude. They last as long as that shell and leave
your settings file untouched.
export ANTHROPIC_BASE_URL=https://api.milgram.dev/v1/proxy/anthropicexport ANTHROPIC_CUSTOM_HEADERS="x-milgram-api-key: mlg_YOUR_KEY"Check it
Section titled “Check it”Start claude and send any prompt. The conversation appears in the console under Sessions within
seconds, turn by turn, with its tool calls.