bxff/claude-code-subagent-models
5 stars · Last commit 2026-08-21
README preview
# claude-code-subagent-models ```bash npm i -g claude-code-subagent-models ccr --ds-key sk-... # once: saves your DeepSeek key, then patches and runs; never needed again ccr # every time after ``` Adds third-party models to Claude Code as subagents. Model names matching a configured provider prefix are routed to that provider's Anthropic-compatible endpoint, per request. No proxy, no extra login: the subscription token stays in the official client. Zero config: `deepseek-*` routes to DeepSeek with the key from `CC_DEEPSEEK_API_KEY`. `ccr` finds your Claude Code binary, patches it, and starts it; re-run it after each Claude Code update. The patched bundle lands in `~/.cache/claude-code-subagent-models/claude-patched.js`, with the embedded native addons extracted next to it so it runs under plain Bun. Each run also makes sure telemetry is off in `~/.claude/settings.json` (skip with `--no-settings`). Other forms: `ccr --ds-key sk-...` (first-time setup: saves your DeepSeek key to `~/.claude/settings.json`, then patches and runs), `ccr --no-run` (patch only), `ccr /path/to/claude claude-patched.js` (explicit paths), `npx claude-code-subagent-models` (no install at all). Any flag `ccr` does not recognize is passed to the patched claude: `ccr --resume <uuid>`. Read more: [DeepSeek subagents in Claude Code on a Max plan, without a proxy](https://musaab.io/posts/2026/deepseek-subagents-claude-code) The task-list QoL additions (pinning, detaching, retention) are personal tooling in [my-cc-config](https://github.com/bxff/my-cc-config). ## Config