Use Agent Router Balance with Claude Code in VS Code
Model used: claude-opus-4-6
Base URL: You do not have permission to view the full content of this post. Log in or register now.
Step 1: Get your Agent Router API key (make sure you sign up with github account to get the 150$)
Go to Agent Router, open the API Token page, and copy your key.
It should start with:
sk-...
Step 2: Open Claude Code settings
Run this in PowerShell:
notepad $HOME.claude\settings.json
Step 3: Paste this config
Replace the whole file with this:
{
"env": {
"ANTHROPIC_BASE_URL": "You do not have permission to view the full content of this post. Log in or register now.",
"ANTHROPIC_AUTH_TOKEN": "sk-your-agentrouter-key",
"ANTHROPIC_MODEL": "claude-opus-4-6"
},
"alwaysThinkingEnabled": true,
"model": "claude-opus-4-6",
"effortLevel": "high"
}
Replace this:
sk-your-agentrouter-key
with your real Agent Router API key.
Step 4: Start Claude Code
Go to your project folder:
cd C:\path\to\your\project
Then run:
claude --model claude-opus-4-6
Step 5: CHECK IF IT WORKS
Claude Code should show:
Opus 4.6 with high effort · API Usage Billing
Then type:
hello
If Claude replies, it is working and using your Agent Router balance.