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 zcode-usage-syncgit 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/zcode-usage-sync)<a href="https://agentmods.dev/skills/techysy/10router/zcode-usage-sync"><img src="https://agentmods.dev/badge/skills/techysy/10router/zcode-usage-sync/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/zcode-usage-sync"><img src="https://agentmods.dev/badge/skills/techysy/10router/zcode-usage-sync.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector warn
SkillSpector: 1 finding, up to medium
These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →
- medium Excessive Agency · line 17 Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
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.00186 | $0.03040 |
| Opus 5.5 | $0.00074 | $0.01216 |
| Sonnet 5.5 | $0.00037 | $0.00608 |
| Haiku 4.5 | $0.00019 | $0.00304 |
Grade A, and why
zcode-usage-sync scanned grade A with 0 findings 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.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 210 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Usage Sync → 10Router
Export this machine's ZCode or OpenCode or mirasim or Xiaomi MiMo model-usage ledger — or another 10Router/9Router instance's own database — into 10Router's usage statistics.
Preconditions (check before running)
- 10Router endpoint — default
http://127.0.0.1:20127. If the user runs 10Router elsewhere (NAS, LAN), ask or infer from context. For a NAS/remote instance use its address, e.g.http://192.168.31.101:20127. (Online modes only —--exportneeds neither endpoint nor credentials.) - Source —
--source zcode(default),--source opencode(opencode.ai desktop app),--source mirasim(mirasim desktop insights ledger),--source mimo(Xiaomi MiMo desktop / mimocode), or--source 10r(another 10Router/9Router instance'sdata.sqlite; aliases10router/9r/9router). None but zcode is auto-detected — pass the flag explicitly. - Credential (one of) —
- Virtual key (recommended): created in 10Router dashboard → API Keys, format
sk-…. Pass via--key. - Dashboard password: pass via
--password. - The script also reads env vars
TENROUTER_ENDPOINT/TENROUTER_KEY/TENROUTER_PASSWORD.
- Virtual key (recommended): created in 10Router dashboard → API Keys, format
- Never ask the user to paste credentials into chat if they already configured them; prefer env/config over interactive prompts.
Run
Choose the mode first: if this machine can reach the 10Router endpoint (same LAN / localhost / tunnel), sync online. If it cannot (different network, no route to the instance), export offline instead — write a JSON file here, the user carries it to any machine that can reach 10Router, and imports there.
Online (direct)
Dry-run first (shows row counts per provider, imports nothing):
node "$ZCODE_PLUGIN_ROOT/scripts/export-usage.mjs" --endpoint <URL> --key <sk-…> --dry-run
Then import:
node "$ZCODE_PLUGIN_ROOT/scripts/export-usage.mjs" --endpoint <URL> --key <sk-…>
OpenCode (opencode.ai desktop)
OpenCode stores usage in ~/.local/share/opencode/opencode.db (Linux/macOS)
or %LOCALAPPDATA%\opencode\opencode.db (Windows). Use --source opencode:
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 Changed · +4 lines 7bf2a4611a63
- 1mo ago Changed · +2 lines 4845e3ad4737
- 1mo ago Changed · +94 lines · +73 tokens per session a74c27d12047
- 1mo ago Changed · +20 lines · +17 tokens per session 018ab4a0cbd8
- 1mo ago Changed · +17 lines · +16 tokens per session 210e714f68db
- 2mo ago Changed · +24 lines 20cf842332f0
- 2mo ago First seen · 49 lines · 80 tokens per session scan A d40b5cccd743
zcode-usage-sync is a skill published in the GitHub repository techysy/10router (98 stars, last pushed today), licensed MIT. It adds 186 tokens to every session and 3,040 once invoked, about $0.0007 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-06.
zcode-usage-sync compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| zcode-usage-synctechysy/10router | Skill | 98 | today | MIT | A | 186 | Claude Code, Codex |
| keiroutermydisha/keirouter | Skill | 160 | yesterday | MIT | A | 82 | Claude Code, Codex |
| keirouter-chatmydisha/keirouter | Skill | 160 | yesterday | MIT | A | 62 | Claude Code, Codex |
| keirouter-imagemydisha/keirouter | Skill | 160 | yesterday | MIT | A | 74 | Claude Code, Codex |
| keirouter-sttmydisha/keirouter | Skill | 160 | yesterday | MIT | A | 58 | Claude Code, Codex |
| keirouter-embeddingsmydisha/keirouter | Skill | 160 | yesterday | MIT | A | 70 | Claude Code, Codex |
| keirouter-ttsmydisha/keirouter | Skill | 160 | yesterday | MIT | A | 62 | Claude Code, Codex |