AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Model Router

skill-aiai-mastermind-aiai-mastermind-tools-and-skills-model-router · by AiAi-Mastermind

How to run Claude Code sessions, one-shot workers, and subagents on any model through the local proxy - model IDs, env config, and the three usage modes

No reviews yet
0 installs
13 views
0.0% view→install

Install

$ agentstack add skill-aiai-mastermind-aiai-mastermind-tools-and-skills-model-router

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access Used
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-aiai-mastermind-aiai-mastermind-tools-and-skills-model-router)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
1mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Model Router? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Model Router - routing knowledge

This skill teaches the three ways to run work on a routed model (any model your proxy serves), and how to switch models. The proxy is CLIProxyAPI running locally; it holds the user's OTHER subscription logins (ChatGPT/Codex, Gemini, Grok, Kimi). The main Claude session always stays on its normal direct login.

Configuration (shared by everything in this plugin)

| Env var | Default | Meaning | |---|---|---| | MODEL_ROUTER_URL | http://127.0.0.1:8317 | proxy address | | MODEL_ROUTER_KEY | my-proxy-key | an api-keys entry from the proxy's config.yaml | | MODEL_ROUTER_MODEL | gpt-5.6-sol | default routed model | | MODEL_ROUTER_EFFORT | low | default worker effort |

Mode 1 - orchestrator + worker (the flagship): /fabsol

Your main model plans and verifies; the routed model does 100% of the building via headless calls. Cheapest way to ship real builds - see the fabsol command.

Mode 2 - one-shot worker run (any model, one task)

ANTHROPIC_BASE_URL="${MODEL_ROUTER_URL:-http://127.0.0.1:8317}" \
ANTHROPIC_AUTH_TOKEN="${MODEL_ROUTER_KEY:-my-proxy-key}" \
claude -p "the task" \
  --model "${MODEL_ROUTER_MODEL:-gpt-5.6-sol}" \
  --effort "${MODEL_ROUTER_EFFORT:-low}" \
  --bare --max-turns 20 --permission-mode acceptEdits

Or use the wrapper: scripts/worker.sh "the task" [model] [effort] (scripts/worker.ps1 on Windows).

Mode 3 - full session on a routed model (terminal or VSCode)

scripts/session.sh [model] (or session.ps1) launches a whole Claude Code terminal session on the routed model. scripts/vscode.sh [folder] (or vscode.ps1) does the same for a VSCode window - it uses a separate VSCode profile dir because an already-running VSCode ignores new env vars. In such a session, the plugin's worker subagent also resolves, so subagents can run on routed models too.

Switching models

Any ID the proxy serves works everywhere a model is named. Discover what your proxy serves:

curl -s "${MODEL_ROUTER_URL:-http://127.0.0.1:8317}/v1/models" \
  -H "Authorization: Bearer ${MODEL_ROUTER_KEY:-my-proxy-key}"

Only logged-in providers appear. Set MODEL_ROUTER_MODEL to switch the default everywhere at once, or pass a model per call. See the README's model table for provider login commands.

Hard rule

NEVER set ANTHROPIC_BASE_URL / ANTHROPIC_AUTH_TOKEN on the main session's environment or route a Claude subscription login through the proxy - Anthropic's terms ban subscription OAuth in third-party tools. Routed env vars belong on individual headless calls (or a deliberate scripts/session launch for non-Claude models) only.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.