Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add techysy/10router --skill 10router-devgit clone --depth 1 https://github.com/techysy/10routerWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/techysy/10router/10router-dev)<a href="https://agentmods.dev/skills/techysy/10router/10router-dev"><img src="https://agentmods.dev/badge/skills/techysy/10router/10router-dev/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/techysy/10router/10router-dev"><img src="https://agentmods.dev/badge/skills/techysy/10router/10router-dev.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00077 | $0.02216 |
| Opus 5.5 | $0.00031 | $0.00886 |
| Sonnet 5.5 | $0.00015 | $0.00443 |
| Haiku 4.5 | $0.00008 | $0.00222 |
Grade B, and why
10router-dev scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Asks for rootmediumPrivilege escalation
A mod that escalates privileges can change anything on the machine, not only the project.
sudo mkdir -p /tmp/10router-new; sudo tar -xzf /tmp/*.tar.gz -C /tmp/10router-new How it starts
The opening of the file, as written. The whole thing — 134 lines — stays where its author put it; the contents beside it link to each section on GitHub.
10Router — Dev & Troubleshooting 开发排障
Gateway: local AI routing proxy. NAS 上是 Next.js standalone 编译产物(
server/.next/),不是源码。改逻辑必须 build + 部署 + 重启才生效。
部署循环(改源码 → 构建 → 部署 → 重启)
cd ~/projects/10router
npm run build # 2-4 分钟
S=.next/standalone
cp -r open-sse $S/ 2>/dev/null; cp -r src/mitm $S/src/ 2>/dev/null; cp -r node_modules/node-forge $S/node_modules/ 2>/dev/null
cat $S/.next/BUILD_ID
tar -czf /tmp/10router-standalone.tar.gz -C $S .; scp /tmp/10router-standalone.tar.gz [email protected]:/tmp/
NAS 上(走 fnOS 生命周期,不能手动 kill):
SERVER=/vol4/@appcenter/10router/server
sudo mkdir -p /tmp/10router-new; sudo tar -xzf /tmp/*.tar.gz -C /tmp/10router-new
sudo cp -a $SERVER/.env /tmp/10router-new/.env # 必须保留 .env
sudo cp -a $SERVER /vol4/@appcenter/10router/server.bak_vXXX # 备份可回滚
sudo find $SERVER -mindepth 1 -delete; sudo cp -a /tmp/10router-new/. $SERVER/
sudo chown -R 10router:10router $SERVER
sudo appcenter-cli stop 10router; sudo appcenter-cli start 10router
验证:sudo cat $SERVER/.next/BUILD_ID 确认新 ID。重启会短暂断开当前 Hermes 会话(本会话经 10router 代理)——重启前告知用户。
第三方客户端兼容问题排查方法论("XX 用不了")
适用于:用户报某个第三方客户端(mirasim/dsh/codex/Claude Code 等)经 10router 调某模型报错,但同一模型其他客户端可能正常。先定位责任环节(客户端 / 网关 / 上游),再决定是否适配。
第一步:跨环境对比定位责任环节(最重要)
让用户在不同环境 + 客户端测同一个模型,做对照矩阵:
| 环境 | 结果 → 结论 |
|---|---|
| NAS 直连客户端(独立安装,不经 mirasim) | 正常 → 10router + 上游都正常 |
| 经 mirasim 的同一客户端 | 异常 → 嫌疑在 mirasim |
| 经 mirasim 的另一个客户端(codex) | 正常 → mirasim 本身没大问题 |
| Claude Code → 10router | 正常 → 10router translator 正确 |
| 同一客户端 + 官方 DeepSeek | 报错更清晰 → 拿明确报错定位 |
多个"正常"锁定 10router 无责;一个"异常"锁定源头。
第二步:看网关日志确认请求到达 + 路由
sudo grep -nE "cbcn/deepseek|11133|ERROR" /vol4/@appdata/10router/10router.log | tail -20
请求行 POST <模型> → <provider/model> · FMT: <src>→<dst> · N MSG · N TOOL · ACC:<账号>:
- FMT 关键:
openai→openai= 原样透传(客户端发什么 10router 转发什么);claude→openai= 经 translator 转换(会重建 tool_calls)。 N TOOL是客户端特征(mirasim+dsh=25,Claude Code=53)。- 确认请求真的到了(有时用户以为触发了但没到网关,日志空白)。
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago First seen · 134 lines · 77 tokens per session scan B 64c38c364348
10router-dev is a skill published in the GitHub repository techysy/10router (85 stars, last pushed today), licensed MIT. It adds 77 tokens to every session and 2,216 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-04.
Other skills, from other repositories
keirouter
Entry point for KeiRouter — local/remote AI gateway with OpenAI-compatible REST for chat, image, TTS, embeddings, web search, web fetch. Use when the user mentions KeiRouter, KEIROUTERURL, or wants AI without writing provider boilerplate. This skill covers setup + indexes capability skills; fetch the relevant…
proxy6
Skill "proxy6" from VKirill/claude-lane-stack, covering 🎯 version requirements (august 2026), usage, use this skill when, do not use this skill when and purpose.
proxy-aiops
Use this skill whenever the user needs to operate a Traefik, Caddy or HAProxy reverse proxy / load balancer — a one-shot overview, routes (routers / caddy routes / frontends) with host/path matching, services and server-level upstream health, middlewares, TLS certificate inventory with an expiry sweep, traffic and 5xx…
k8s-service-connectivity
A troubleshooting guide for Kubernetes service connectivity, where services provide stable network access to groups of running containers. It focuses on missing endpoints, selector mismatches, network policies, and kube-proxy problems.
cloudflare-fullstack
Use when developing, testing or deploying anything on the Cloudflare Workers full stack — Bun (deps) + TypeScript + Hono (routing/streaming) + Zod (validation) + Wrangler (bundle/deploy), with D1, R2, KV, Durable Objects, Queues, Workers AI and Analytics Engine. Covers the toolchain division of labour (Bun installs…
stripe-projects
Provision SaaS services + sync creds via Stripe Projects.