Protocol: Anthropic Messages
- Base URL:
https://api.orcarouter.ai— without/v1 - Claude Code appends
/v1/messagesitself; adding/v1would produce/v1/v1/messagesand fail
Install
CLAUDE_CODE_GIT_BASH_PATH to your bash.exe
(e.g. C:\Program Files\Git\bin\bash.exe).
Configure
Run
OK. Then run claude for an interactive session and use
/model to switch models.
Notes
ANTHROPIC_BASE_URLmust not include/v1.- Model names use the
vendor/modelformat;orcarouter/autois the simplest choice. - On Windows, set
CLAUDE_CODE_GIT_BASH_PATHto your Git Bashbash.exe.
VS Code extension: Anthropic’s official Claude Code extension just runs the
CLI inside the editor — it shares the same configuration. Set the environment
variables above (or your
~/.claude/settings.json) and the extension picks them
up; there’s no separate in-editor endpoint setting.Enable thinking / reasoning
Extended thinking is on by default (adaptive) — a reasoning model thinks automatically, no extra config needed. To tune it, lower the effort level with the/effort command or via /model, disable thinking in /config, or set
MAX_THINKING_TOKENS to cap the budget on fixed-budget models (adaptive models
ignore a nonzero budget — use effort levels there).