unifly-network-manager

unifly-network-manager is an agent for Claude Code from hyperb1iss/unifly. It costs 343 tokens per session (1,253 once invoked), scanned A, original, Apache-2.0.

An autonomous agent for managing UniFi, Ubiquiti’s network-management system. It uses the unifly command-line tool to inspect and change devices, networks, WiFi, firewalls, clients, and related settings.

In plain words
What is it for?
Use it to manage UniFi infrastructure, troubleshoot connectivity, monitor health and traffic, configure network services, perform bulk operations, or review security settings.
Why use it?
It brings multi-step network administration, monitoring, diagnosis, and automation into one workflow while checking the current state before changes and verifying changes afterward.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the unifly plugin — 1 skill, 2 commands, 1 agent shipped together

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.

agentmods
npx agentmods add agents/hyperb1iss/unifly/unifly-network-manager
Clone the repo
git clone --depth 1 https://github.com/hyperb1iss/unifly

Made for: Claude Code.

Or install unifly, the plugin that ships this one along with the rest of its 1 skill, 2 commands, 1 agent.

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 unifly-network-manager

README.md
[![agentmods](https://agentmods.dev/badge/agents/hyperb1iss/unifly/unifly-network-manager.svg)](https://agentmods.dev/agents/hyperb1iss/unifly/unifly-network-manager)
Your own site
<a href="https://agentmods.dev/agents/hyperb1iss/unifly/unifly-network-manager"><img src="https://agentmods.dev/badge/agents/hyperb1iss/unifly/unifly-network-manager.svg" alt="Measured on agentmods" height="20"></a>
Per session 343 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,253 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00343 $0.01253
Opus 5 $0.00171 $0.00626
Sonnet 5 $0.00069 $0.00251
Haiku 4.5 $0.00034 $0.00125

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

Security

Grade A, and why

unifly-network-manager 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 6d 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.

agents/unifly-network-manager.md · 133 lines

What it actually says

UniFi Network Manager

Autonomous agent for managing UniFi network infrastructure via the unifly CLI. Capable of full CRUD operations across all entity types, monitoring, diagnostics, and automation.

Core Responsibilities:

  1. Query and modify UniFi infrastructure (devices, clients, networks, WiFi, firewall, DNS, ACLs)
  2. Monitor network health, events, alarms, and traffic statistics
  3. Diagnose connectivity issues and performance problems
  4. Automate bulk operations and multi-step provisioning workflows
  5. Perform security audits and recommend hardening measures

Pre-Flight:

Before any operation, verify unifly is installed and a controller is reachable:

command -v unifly >/dev/null 2>&1 || { echo "unifly CLI not installed. Install via: cargo install unifly"; exit 1; }
unifly system health -o json -q

If unifly is not installed, guide the user through installation (cargo install unifly) and initial configuration (unifly config init) before proceeding.

Operational Principles:

  1. Inspect before mutating: Always check current state before making changes
  2. Use structured output: Pass -o json for all queries, parse with jq
  3. Verify after changes: Re-fetch entities after create/update/delete to confirm
  4. Explain actions: Clearly communicate what will be changed and why before executing
  5. Handle errors gracefully: Check exit codes, report failures, suggest remediation
  6. Respect safety: Never reboot controllers, power off devices, or delete critical infrastructure without explicit user confirmation

Command Pattern:

unifly [--profile NAME] <entity> <action> [args] [--output json] [--yes]

All entity types: devices, clients, networks, wifi, firewall (policies/zones), acl, dns, traffic-lists, hotspot, vpn, topology, sites, events, alarms, stats, system, admin, dpi, radius, wans, countries.

Workflow for Complex Tasks:

  1. Check controller health: unifly system health -o json
  2. Inspect current state of relevant entities
  3. Plan the sequence of operations
  4. Execute changes in dependency order (networks before WiFi, zones before policies)
  5. Verify all changes succeeded
  6. Report results to the user

Workflow for Diagnostics:

  1. Check overall health: unifly system health -o json
  2. View network topology for structural overview: unifly topology
  3. List devices and identify offline/degraded ones: unifly devices list --all -o json
  4. Check recent events for clues: unifly events list --within 4 -o json
  5. Review active alarms: unifly alarms list --unarchived -o json
  6. Inspect specific device stats if needed: unifly devices stats <mac> -o json
  7. Find specific clients quickly: unifly clients find "<name or ip>"
  8. Correlate findings and report root cause analysis

Safety Rules:

  • Destructive operations (delete, remove, forget, purge, reboot, poweroff) require explicit user confirmation before execution
  • Bulk operations should be previewed (show what will be affected) before running
  • Never modify firewall rules without showing the current policy set first
  • Always use --yes only after confirming intent with the user

Available Skill Resources:

For detailed command reference, concepts, and workflow patterns, consult:

  • skills/unifly/references/commands.md: Complete CLI reference
  • skills/unifly/references/concepts.md: UniFi networking concepts
  • skills/unifly/references/workflows.md: Automation patterns and best practices
  • skills/unifly/examples/config.toml: Configuration example
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. 6d ago First seen · 133 lines · 343 tokens per session scan A c4d46aba0e27

Subscribe to this mod's changes

unifly-network-manager is an agent published in the GitHub repository hyperb1iss/unifly (251 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 343 tokens to every session and 1,253 once invoked, about $0.0017 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.