llm-swarm-router: Command for Claude Code

.claude/commands/netllm-swarm.md

netllm-swarm is a command for Claude Code from matthewdcage/llm-swarm-router. It costs 17 tokens per session (143 once invoked), scanned A, original, MIT.

A command for configuring a netllm swarm, which is a group of computers on the same local network sharing language-model capacity. It guides agents through starting the service, finding peers, optionally setting a gateway, and checking available models.

In plain words
What is it for?
Use it to enable LAN peer discovery, start netllm on each machine, verify connected peers and models, and configure an optional gateway without hard-coding machine-specific addresses.
Why use it?
It makes the multi-computer setup repeatable and highlights the security implications of exposing the service to the network.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths.

This is matthewdcage/llm-swarm-router's own configuration. It tells Claude Code how to work on llm-swarm-router itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything llm-swarm-router configures →

Reuse

Borrowing it

Nothing to install: this file belongs to matthewdcage/llm-swarm-router. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/matthewdcage/llm-swarm-router/main/.claude/commands/netllm-swarm.md
Clone the repo
git clone --depth 1 https://github.com/matthewdcage/llm-swarm-router

Made for: Claude Code.

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 netllm-swarm

README.md
[![agentmods](https://agentmods.dev/badge/commands/matthewdcage/llm-swarm-router/netllm-swarm/github.svg)](https://agentmods.dev/commands/matthewdcage/llm-swarm-router/netllm-swarm)
Your own site
<a href="https://agentmods.dev/commands/matthewdcage/llm-swarm-router/netllm-swarm"><img src="https://agentmods.dev/badge/commands/matthewdcage/llm-swarm-router/netllm-swarm/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 netllm-swarm

Your own site · 80×15
<a href="https://agentmods.dev/commands/matthewdcage/llm-swarm-router/netllm-swarm"><img src="https://agentmods.dev/badge/commands/matthewdcage/llm-swarm-router/netllm-swarm.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 17 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 143 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00017 $0.00143
Opus 5 $0.00009 $0.00072
Sonnet 5 $0.00003 $0.00029
Haiku 4.5 $0.00002 $0.00014

Measured 12d ago against content hash e5a3ab3c3275, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

netllm-swarm 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 12d 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.

.claude/commands/netllm-swarm.md · 12 lines

What it actually says

Load and follow the skill at .claude/skills/netllm-swarm/SKILL.md (fallback: .agents/skills/netllm-swarm/SKILL.md).

Walk the user through LAN swarm setup: serve --host 0.0.0.0 on each machine, peer discovery, optional gateway, and models --lan verification.

  • Warn about swarm.cluster_token when listening on 0.0.0.0.
  • Do not commit machine-specific IPs unless the user asks.
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. 12d ago First seen · 12 lines · 17 tokens per session scan A e5a3ab3c3275

Subscribe to this mod's changes

netllm-swarm is a command published in the GitHub repository matthewdcage/llm-swarm-router (25 stars, last pushed 10d ago), licensed MIT. It adds 17 tokens to every session and 143 once invoked, about $0.0001 per session on Opus 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-08-30.

Related

Other commands, from other repositories

boss:ship

A command that builds, deploys, and health-checks a project that has already passed testing, then records the release details in a deployment report.

echoVic/boss-skill · 50 tokens

secrets

Provides tools for managing environment variables and secrets for your Supabase project.

fcakyon/claude-codex-settings · 0 tokens

wa-guardrails

Generate preventive Well-Architected guardrails — AWS Config rules, Service Control Policies, permission boundaries, CloudWatch alarms, and IaC policy checks (CDK Aspects, cfn-guard, OPA/Sentinel) — so a workload stays aligned with Well-Architected best practices over time instead of being assessed once.

aws-samples/sample-well-architected-skills-and-steering · 0 tokens

cost-optimization-review

Run a pillar-scoped Well-Architected review focused on the Cost Optimization pillar.

aws-samples/sample-well-architected-skills-and-steering · 0 tokens

react-router-client-loader

Do this in a clientLoader and use loaderData to render the component. DO NOT create mock data, new interfaces, or mock data loader functions. Instead, assume loaderData has all of the data you need to render the component.

iloveitaly/llm-ide-rules · 0 tokens

setup-bigquery.es

Command "setup-bigquery.es" from minicoohei/ai-agent-camp, covering configuración de autenticación bigquery / gcp, step 0: verificar el progreso de configuración, lo que hará en esta sesión, verificación de preparación and step 1: instalación de gcloud cli.

minicoohei/ai-agent-camp · 2 tokens