Skip to content

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.

~/.claude/settings.json
{
"env": {
"ANTHROPIC_BASE_URL": "https://api.milgram.dev/v1/proxy/anthropic",
"ANTHROPIC_CUSTOM_HEADERS": "x-milgram-api-key: mlg_YOUR_KEY"
}
}

Start claude and send any prompt. The conversation appears in the console under Sessions within seconds, turn by turn, with its tool calls.