Integrations · Claude Code
Claude Code, anywhere. Anthropic protocol preserved.
Routify ships a native Anthropic Messages endpoint. cache_control, anthropic-version, anthropic-beta — every header passes through unchanged. Optionally route under the hood to DeepSeek / Kimi / GLM for 5-10× cheaper runs without changing a single line of your CLAUDE.md.
Setup in 30 seconds
Claude Code uses an OpenAI-compatible base URL. Override ANTHROPIC_BASE_URL and you’re done — no plugin, no extension, no proxy.
💡 Set ANTHROPIC_MODEL_OVERRIDE=deepseek-chat for autocomplete-style work and unset it (= back to Claude) when running long tasks. Saves ~80% across a typical week without any code change.
# Anthropic-protocol passthrough (recommended)
export ANTHROPIC_BASE_URL=https://routify.bytedance.city/v1/anthropic
export ANTHROPIC_API_KEY=rtf_xxx_your_routify_key
claude
# Optional: route Claude Code under-the-hood to DeepSeek
export ANTHROPIC_MODEL_OVERRIDE=deepseek-chat
claude
# Or use the OpenAI-compatible endpoint with the routify-anthropic shim:
export OPENAI_BASE_URL=https://routify.bytedance.city/v1
export OPENAI_API_KEY=rtf_xxx_your_routify_keyANTHROPIC_MODEL_OVERRIDE is a Routify extension — Anthropic does not understand it. Setting it tells Routify to translate the Messages payload into the chosen upstream model and translate back.
Profiles
Picked for Claude Code.
Three battle-tested model combos. Pick the profile that matches your priority and copy the model id straight in.
Cheap
You opt in to swap Claude for DeepSeek V3.2 by setting ANTHROPIC_MODEL_OVERRIDE=deepseek-chat. Claude Code talks the Anthropic protocol; under the hood, every request hits DeepSeek. Tool calls, JSON mode, streaming — all translated. Best for boilerplate-heavy projects you write often.
Cost note
~95% cost reduction vs Opus. Quality drop is real on hard refactors — keep the "Frontier" profile for those.
Primary model
Fallback chain
Smart router auto-fails over to the next id if the primary is over budget or down.
FAQ
Does prompt caching still work?
Yes. cache_control headers are forwarded verbatim. Cache hit ratio matches direct Anthropic. (Substitute mode disables caching since the upstream isn't Anthropic.)
Will Claude Code's tool calls work?
Yes for Pure / Cost Hybrid. For Aggressive Substitute, we translate Anthropic tool_use blocks → OpenAI tool_calls and back. Tool definitions stay identical.
Does anthropic-beta still pass through?
Pass-through mode forwards every Anthropic header. Substitute mode strips Anthropic-only headers since the upstream wouldn't recognise them.
What about Computer Use / Bash tool?
Computer Use is Anthropic-only — passes through in Pure mode, blocked in Substitute mode. Bash tool works in both.
Does this work with Claude Code on Mac, Linux, Windows?
All three. ANTHROPIC_BASE_URL is read by the Claude Code CLI directly.
Can I use my own Anthropic key for the Pure profile?
Yes — coming Q3 2026 (BYOK). You'll get pure pass-through with no Routify markup, only a 0-5% routing fee.
Ship with Claude Code in 30 seconds.
$5 free credit. No credit card required.