Compare
OpenLLM vs Claude Code Router

OpenLLM vs Claude Code Router

Claude Code Router is an open-source local gateway for coding agents (Claude Code, Codex, OpenCode and more) with a desktop app. It routes to the API-key providers and local servers you add, can import the logins of Claude Code, Codex and Kimi CLI, and has conditional routing, retries and ordered fallback models. Claude Code Router for a fully local gateway on any OS; OpenLLM when you want your plans, keys and chains shared across machines.

$curl -fsSL https://www.openllm.sh/install | bash
$openllm claude

OpenLLM vs Claude Code Router

FeatureOpenLLMClaude Code Router
Model accessSubscriptions, API keys, model servers on your machine and any OpenAI-compatible endpointAPI keys, local servers such as llama.cpp, and imported agent logins
SubscriptionsClaude, ChatGPT, Kimi Code, Grok and Cursor plans, served by a daemon on your machine that runs the vendor's own loginImports a Claude Code, Codex or Kimi CLI login and reuses its token in its own requests
RunsLocal daemon for subscriptions; hosted gateway for API keys and the dashboardFully local: desktop app, CLI or Docker
FallbackPer-alias chains shared by every client; a rate-limited entry is cooled and the chain continues before any outputRetry, or ordered fallback targets on any 4xx or 5xx, globally or per rule
Long conversationsFusion hands a conversation to the next model by its length, each step within its model's window; past a window it moves to a bigger-window model or compacts in place, your choiceNo built-in long-context route; a script rule can switch models on its estimated input token count, and fallback targets catch a context-length error
Clientsopenllm claude, openllm codex, openllm opencode: a per-session overlay that leaves the client's config untouchedClaude Code, Codex, OpenCode, Grok CLI, Kimi CLI, Kilo Code, Pi and more, through agent profiles
ConfigChains and aliases in one dashboard, shared by every deviceA desktop or browser UI over a local database, one per machine
PlatformsmacOS and LinuxmacOS, Linux and Windows
PriceFree plan with a monthly token allowance, no card; no markup on provider tokensFree and open source

Pick Claude Code Router when

  • You want everything on one machine with no hosted component
  • You are on Windows
  • You want a desktop app with request logs and routing scripts

Pick OpenLLM when

  • You want subscriptions served by the vendor's own CLI and login
  • You work on more than one machine and want one key and one usage view
  • You want chains managed in one place, not per machine

Your subscriptions stay on your machine

Subscription providers run through the local OpenLLM daemon, which delegates to the vendor's official CLI and its own login. The hosted gateway never holds a subscription credential.

Provider keys encrypted at rest

API keys are encrypted in your browser with AES-256-GCM under a key derived from your recovery phrase, and stored as ciphertext. They are decrypted in memory only while a request is being served, then discarded. Subscription credentials never reach the hosted service.

Fallback chains when a model is rate-limited

Define an ordered chain per model alias. When a hop returns a rate limit, an overload or a provider error, the request moves to the next hop instead of failing your session.

  • Chains are configured once and shared by every client and device
  • Each hop resolves its own model settings, so a fallback never inherits the wrong parameters
  • Every hop that ran is visible in your request history

Fusion: hand long conversations to the next model

Set a model alias to Fusion and, optionally, give each model a length. The conversation starts on the first model and moves to the next once it grows past that point, and no step runs past its own model's context window.

  • Fusion mode is on every plan, with the models you already have
  • It picks the model by how long the conversation is, never by the task
  • OpenLLM Fusion, included with Trial and Pro, is the same idea ready-made: Opus first, Sonnet as the chat grows, DeepSeek V4.1 for long chats.

Memory over MCP

The same binary ships one MCP server: your gateway's native API as tools, plus memory that persists across sessions and clients.

Questions

Something else? Contact us