offrouter-adapter-claude
v0.7.0
Published
Claude Code adapter for OffRouter. Installs into a Claude Code profile as a `UserPromptSubmit` hook with automatic rollback support.
Downloads
2,120
Readme
offrouter-adapter-claude
Claude Code adapter for OffRouter. Installs into a Claude Code profile as a UserPromptSubmit hook with automatic rollback support.
Install
npm install offrouter-adapter-claudeThen register with the CLI:
offrouter install claude --profile claude-personalThis writes the hook config into the profile's ~/.claude/claude-personal.json and creates a rollback backup.
How it works
OffRouter intercepts every UserPromptSubmit event, evaluates routing policy, and either routes to the selected provider or lets the Claude Code primary model handle it. The primary model is unchanged in V1 — OffRouter only routes delegated sub-tasks.
