unifi-cli

unifi-cli is a skill for Claude Code from baileywickham/unifi-cli. It costs 49 tokens per session (1,292 once invoked), scanned B, original, MIT.

A command-line tool for querying a local UniFi network, including its gateway, access points, switches, and connected devices.

In plain words
What is it for?
Use it to list UniFi hardware, inspect a device's status and resource use, find wired or wireless clients, view sites, or check the network application version.
Why use it?
It provides network information from the local UniFi gateway without manually searching through its web interface.

Skill for Claude Code

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

Part of the unifi-cli plugin — 1 skill shipped together

Good fit Use it to list UniFi hardware, inspect a device's status and resource use, find wired or wireless clients, view sites, or check the network application version.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/baileywickham/unifi-cli/unifi-cli
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 baileywickham/unifi-cli --skill unifi-cli
Clone the repo
git clone --depth 1 https://github.com/baileywickham/unifi-cli

Made for: Claude Code.

Or install unifi-cli, the plugin that ships this one along with the rest of its 1 skill.

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 unifi-cli

README.md
[![agentmods](https://agentmods.dev/badge/skills/baileywickham/unifi-cli/unifi-cli/github.svg)](https://agentmods.dev/skills/baileywickham/unifi-cli/unifi-cli)
Your own site
<a href="https://agentmods.dev/skills/baileywickham/unifi-cli/unifi-cli"><img src="https://agentmods.dev/badge/skills/baileywickham/unifi-cli/unifi-cli/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 unifi-cli

Your own site · 80×15
<a href="https://agentmods.dev/skills/baileywickham/unifi-cli/unifi-cli"><img src="https://agentmods.dev/badge/skills/baileywickham/unifi-cli/unifi-cli.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,292 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.00049 $0.01292
Opus 5.5 $0.00020 $0.00517
Sonnet 5.5 $0.00010 $0.00258
Haiku 4.5 $0.00005 $0.00129

Measured 13d ago against content hash 8c4766a1e349, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

unifi-cli 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 13d 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.

(applies at the client's next DHCP renewal; on a Mac `sudo ipconfig set en0 DHCP`
skills/unifi-cli/SKILL.md · 78 lines

How it starts

The opening of the file, as written. The whole thing — 78 lines — stays where its author put it; the contents beside it link to each section on GitHub.

unifi-cli

CLI for the UniFi Network Integrations API on a local UniFi gateway (Cloud Gateway Ultra, UDM, UDR, etc.).

Prerequisites

  • unifi is on PATH. bun link installs it to ~/.bun/bin, which is not on PATH when Bun came from Homebrew — try ~/.bun/bin/unifi before assuming it's missing. If it isn't installed, install it (requires Bun):

    git clone https://github.com/baileywickham/unifi-cli
    cd unifi-cli && bun install && bun link
    
  • API key in UNIFI_API_KEY or ~/.config/unifi-cli/config.json. If missing, the CLI prints setup instructions — relay them to the user instead of guessing. (Keys must be created in the gateway's local web UI, not unifi.ui.com — the CLI's error output and the repo README explain this.)

Commands

Prefer --json when you need to parse the output.

unifi devices --json                 # all UniFi hardware: model, IP, state
unifi device <name|id>               # one device: detail + uptime/cpu/memory
unifi clients [--wired|--wireless] [--all]   # connected clients (--all: plus known offline ones)
unifi client <name|ip|mac>           # one client + its DHCP reservation; falls back to
                                     # known offline clients with first/last seen
unifi client fixed-ip <client> <ip|off> [--name label]   # DHCP reservation (write action)
unifi radios [<device>]              # AP radios: band, channel/width (configured vs now), tx power
unifi radio set <device> <2.4|5|6> [--width N] [--channel N|auto] [--tx-power low|medium|high|auto]   # (write action)
unifi neighbors [--band 5] [--hours 24]  # neighboring networks per channel, as the APs hear them
unifi smartq                         # Smart Queues (SQM) on/off and rates per WAN
unifi smartq set <down Mbps> <up Mbps> | off [--wan name]   # (write action)
unifi portforwards                   # port-forward rules: enabled, proto, port, target, source
unifi portforward enable|disable <name|id>   # (write action)
unifi upnp                           # UPnP / NAT-PMP on or off
unifi networks                       # networks: VLAN, subnet, isolated
unifi network create <name> --vlan N --subnet 192.168.20.1/24 [--isolate]   # (write action)
unifi wifis                          # SSIDs and the network each is on
unifi wifi create <ssid> --network <name> [--band 2.4|5|6|both] [--passphrase P]   # (write action)
unifi wifi passphrase <ssid> [--passphrase P]   # (write action)
unifi sites                          # sites (usually just "default")
unifi info                           # network application version

Read the full file on GitHub · 78 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. 13d ago Changed · +5 lines 8c4766a1e349
  2. 14d ago Changed · +9 lines c9f722b5e27b
  3. 20d ago Changed · +8 lines d19fb00478ec
  4. 22d ago Changed · +5 lines 2c3eae869b43
  5. 1mo ago Changed · +5 lines scan A → B 7e6fa9c88487
  6. 1mo ago First seen · 46 lines · 49 tokens per session scan A 440184a066c8

Subscribe to this mod's changes

unifi-cli is a skill published in the GitHub repository baileywickham/unifi-cli (3 stars, last pushed 14d ago), licensed MIT. It adds 49 tokens to every session and 1,292 once invoked, about $0.0002 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-08-31.

Related

Other skills, from other repositories

telephony-and-conferencing

Runs voice and meeting infrastructure — phone systems and numbers, emergency calling obligations, conference rooms and their AV, call recording and its retention consequences, and the porting that makes provider changes go badly. Use this to replace a phone system, fix rooms nobody can start a meeting in, meet…

cbrock84/headcount · 85 tokens

endpoint-management

Manages laptops, desktops and mobile devices — enrollment, configuration, patching, software distribution, and lost or compromised devices. Use this to set up device management, standardize builds, roll out software or an OS upgrade, handle a lost device, or bring an unmanaged fleet under control.

cbrock84/headcount · 61 tokens

addin-operations

TIA Portal Add-In development in Visual Studio Code: creating Add-In C# projects, adding Add-In templates, compiling and debugging Add-Ins, converting Add-Ins from older TIA Portal versions and configuring Add-In project parameters.

Czarnak/totally-integrated-claude · 50 tokens

tia-plc-operations

C# Openness implementation of PLC software engineering.

Czarnak/totally-integrated-claude · 16 tokens

tia-sivarc

C# TIA Portal Openness V21 automation for SIMATIC Visualization Architect (SiVArc): rule tables, rules and groups, library instances, tag/text definitions, tag member settings, expression resolution, layout exchange, definition upgrade, and generation.

Czarnak/totally-integrated-claude · 55 tokens

tia-testsuite

TIA Portal V21 Test Suite operations. Use for Application Tests with PLCSIM, Style Guide rules, System Tests through OPC UA, import/scope management, execution, and recursive result evaluation.

Czarnak/totally-integrated-claude · 43 tokens