3 ms·
Is there a way to do this directly by using claudecode CLI (which I already have installed) and openrouter??
by orliesaurus 5mo ago
Is there a way to do this directly by using claudecode CLI (which I already have installed) and openrouter??
- theanonymousone 5mo agoYes, from Claude Code themselves: https://code.claude.com/docs/en/llm-gateway https://code.claude.com/docs/en/llm-gateway
- gnat 5mo agoThis repo's README explains how it works and you can do it yourself. claude looks for environment variables that say which API endpoint to talk to, which key to pass, which model name to use for haiku/sonnet/opus-level workloads, etc.
- vitaflo 5mo agoYes, Deepseek even documents how: https://api-docs.deepseek.com/quick_start/agent_integrations/claude_code https://api-docs.deepseek.com/quick_start/agent_integrations...
- deleted 5mo ago[deleted]
- deleted 5mo ago[deleted]
- jubilanti 5mo agoHere's a oneliner: ANTHROPIC_BASE_URL="https://openrouter.ai/api" ANTHROPIC_AUTH_TOKEN="$OPENROUTER_API_KEY" ANTHROPIC_DEFAULT_SONNET_MODEL="deepseek/deepseek-v4-flash" CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1 claude
- deleted 5mo ago[deleted]
- mobeigi 5mo agoBeen using Claude as a harness to OpenRouter for a while now. It's a nice setup if you don't mind API based billing.