Borrowing it
Nothing to install: this file belongs to techysy/10router. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/techysy/10router/main/CLAUDE.mdgit 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/instructions/techysy/10router/claude-md)<a href="https://agentmods.dev/instructions/techysy/10router/claude-md"><img src="https://agentmods.dev/badge/instructions/techysy/10router/claude-md/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/instructions/techysy/10router/claude-md"><img src="https://agentmods.dev/badge/instructions/techysy/10router/claude-md.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.02997 | $0.02997 |
| Opus 5.5 | $0.01199 | $0.01199 |
| Sonnet 5.5 | $0.00599 | $0.00599 |
| Haiku 4.5 | $0.00300 | $0.00300 |
Grade A, and why
10router CLAUDE.md scanned grade A 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 28d 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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
- **Upstream features are re-implemented, never merged.** This fork's git history is deliberately rewritten (only techysy/ShiYanG Yu commits) and the contributor set is clean — that property is load-bearing. When upstrea How it starts
The opening of the file, as written. The whole thing — 120 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
What this is
10Router (10router-app) — a local AI routing gateway + Next.js dashboard. It exposes one OpenAI-compatible endpoint (/v1/*) and routes traffic across 40+ upstream providers with format translation, model-combo fallback, multi-account fallback, OAuth/API-key credential management, token refresh, quota/usage tracking, and optional cloud sync.
Two published artifacts live in this one repo:
- The dashboard + gateway (root
package.json,10router-app) — the Next.js server that does the actual routing. - The CLI launcher (
cli/, published to npm as@techysy/10router) — a separate package that installs/starts the server and manages the tray. It has its ownpackage.json, version, and build.
The code lives in src/ (Next.js app + dashboard/compat APIs), open-sse/ (the provider-agnostic routing/translation engine), cli/ (the launcher package), and tests/.
Commands
Dashboard/gateway (run from repo root):
cp .env.example .env
npm install
PORT=20128 NEXT_PUBLIC_BASE_URL=http://localhost:20128 npm run dev # dev (webpack, port 20127 by default via next dev)
npm run build && PORT=20128 HOSTNAME=0.0.0.0 npm run start # production
- Bun variants:
npm run dev:bun/build:bun/start:bun. - Default runtime port is 20128 (dashboard at
/dashboard, API at/v1). - Lint:
npx eslint .(configeslint.config.mjs, extendseslint-config-next).
CLI package (cli/):
npm run cli:pack # build + npm pack from root
cd cli && npm run dev # nodemon watch
Local test build (stamp a throwaway version, build, replace in place, verify):
npm run test-version 1.1.0-test.1 # 三处 package.json + fnos manifest 同号, uncommitted
npm run test-version -- --check # 看当前状态; --revert 回退 (refuses if those files carry other changes)
Never rebuild with a released version number — that is how 1.0.8 ended up with three different payloads
under one version. Full flow (Windows desktop / fnOS fpk), verification method and traps:
docs/zh-CN/local-build-and-verify.md. Note ELECTRON_RUN_AS_NODE=1 in your shell makes 10Router.exe
run as plain Node (no tray, no logs, silent exit) — looks exactly like a broken build.
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.
- 28d ago Changed · +11 lines · +227 tokens per session 1fb30bdcc62e
- 1mo ago Changed · +23 tokens per session 87fe4c2bcdab
- 1mo ago Changed · +10 lines · +183 tokens per session fd0bd42d978a
- 1mo ago Changed · +1 lines · +156 tokens per session 0086581b2028
- 1mo ago Changed · +17 tokens per session 91eff1a24f24
- 1mo ago First seen · 98 lines · 2,391 tokens per session scan A 987edd47f43b
10router CLAUDE.md is an instructions file published in the GitHub repository techysy/10router (93 stars, last pushed today), licensed MIT. It adds 2,997 tokens to every session, about $0.0120 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other instructions, from other repositories
vscode buildNext.instructions.md
Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).
next.js AGENTS.md
AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.
vscode oss-third-party-notices.instructions.md
Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).
langchain AGENTS.md
AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.
vscode copilot-instructions.md
Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).
deepseek-harness AGENTS.md
AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.