Claude Code
Use Claude Code with DirtCheapAI.
Recommended setup
Use the public installer scripts with your real API key.
Linux / macOS
bash
curl -fsSL https://dirtcheapai.com/install.sh | bash -s -- key_xxxWindows (PowerShell)
powershell
& ([scriptblock]::Create((irm "https://dirtcheapai.com/install.ps1"))) key_xxxWhat gets configured
ANTHROPIC_BASE_URLANTHROPIC_AUTH_TOKENANTHROPIC_DEFAULT_OPUS_MODELANTHROPIC_DEFAULT_SONNET_MODELANTHROPIC_DEFAULT_HAIKU_MODEL~/.claude/settings.json
Recommended model choices
claude-sonnet-4.6for most coding workclaude-opus-4.6for the hardest reasoning tasksclaude-haiku-4.5for cheap fast iterations