This is How i use Claude Code & Codex for Free

How to Install Claude Code

  • Download and install Node.js and verify it via node –version
  • Install Claude Code using CMD using this Command: npm install -g @anthropic-ai/claude-code@latest and verify it via claude –version
  • Configure AgentRouter environment variables via Windows PowerShell:

$env:ANTHROPIC_AUTH_TOKEN=”AgentRouter API Key”
$env:ANTHROPIC_BASE_URL=”https://agentrouter.org”
$env:ANTHROPIC_MODEL=”claude-opus-4-6″

  • Now, replace this code in the Settings.json file

{
“env”: {
“ANTHROPIC_API_KEY”: “YOUR API KEY”,
“ANTHROPIC_BASE_URL”: “https://agentrouter.org”,
“CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC”: “1”
},
“permissions”: {
“allow”: [],
“deny”: [],
“defaultMode”: “auto”
},
“model”: “opus[1m]”,
“skipDangerousModePermissionPrompt”: true
}

Sharing Is Caring:

I'm a creative and enthusiastic blogger who enjoys exploring and writing about the potential of artificial intelligence.

Leave a Comment