10router-dev

10router-dev is a skill for Claude Code, Codex from techysy/10router. It costs 77 tokens per session (2,216 once invoked), scanned B, original, MIT.

A development and troubleshooting guide for 10Router, a local AI routing gateway that sends client requests to models. It covers its Next.js deployment on a network-attached storage device (NAS).

In plain words
What is it for?
Use it to troubleshoot third-party client compatibility, build and deploy 10Router to a NAS, or decide whether to fix or work around an upstream bug.
Why use it?
It explains how to diagnose client and model failures, apply source changes correctly, and deploy updates through the required build and restart process.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code; mentions Codex.

Good fit Use it to troubleshoot third-party client compatibility, build and deploy 10Router to a NAS, or decide whether to fix or work around an upstream bug.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/techysy/10router/10router-dev
Install

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.

Any agent
npx skills add techysy/10router --skill 10router-dev
Clone the repo
git clone --depth 1 https://github.com/techysy/10router

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for 10router-dev

README.md
[![agentmods](https://agentmods.dev/badge/skills/techysy/10router/10router-dev/github.svg)](https://agentmods.dev/skills/techysy/10router/10router-dev)
Your own site
<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.

agentmods 80×15 button for 10router-dev

Your own site · 80×15
<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>
Per session 77 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,216 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 1mo ago against content hash 64c38c364348, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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
skills/10router-dev/SKILL.md · 134 lines

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)。
  • 确认请求真的到了(有时用户以为触发了但没到网关,日志空白)。

Read the full file on GitHub · 134 lines

Changes

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.

  1. 1mo ago First seen · 134 lines · 77 tokens per session scan B 64c38c364348

Subscribe to this mod's changes

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.

Related

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…

mydisha/keirouter · 82 tokens

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.

VKirill/claude-lane-stack · 221 tokens

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…

AIops-tools/Proxy-AIops · 351 tokens

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.

kudig-io/kudig-database · 0 tokens

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…

lianluo-esign/ferrogate · 208 tokens

stripe-projects

Provision SaaS services + sync creds via Stripe Projects.

NousResearch/hermes-agent · 15 tokens