Local-first router for coding agents — use your subscriptions first, API keys as fallback.
V1 Honesty: OffRouter routes delegated work and adds
routing guidance through supported hooks. It does not replace your
harness's primary model call.
What is OffRouter?
OffRouter is a local routing layer for coding agents such as
Claude Code, Codex CLI, Gemini CLI, and Grok Build. It lets you keep
using your preferred harness while OffRouter chooses the best configured
model or agent runtime for each task.
Routing Priority
Subscription-first: use allowed subscription capacity before spending through API keys.
Local/private capacity: run models on your own hardware when policy or sensitivity requires it.
API-key fallback: explicit, audited fallback when subscription routes are unavailable.
Install
npm install -g @offrouter/cli
Requires Node.js 22 or later. See the quickstart guide for setup.
Quick Start
offrouter init # detect harnesses, check readiness
offrouter doctor # diagnostics
offrouter login # sign in to providers
offrouter install claude --profile claude-personal
offrouter mcp serve # start delegation server