unifi
Query and monitor UniFi network via local gateway API (Cloud Gateway Max / UniFi OS). Use when the user asks to "check UniFi", "list UniFi devices", "show who's on the network", "UniFi clients", "UniFi health", "top apps", "network alerts", "UniFi DPI", or mentions UniFi monitoring/status/dashboard.
- License 许可
- MIT
- 最近更新
- 2026-08-23
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- unifi
- version
- 1.0.1
- metadata
- { "clawdbot": { "emoji": "?", "requires": { "bins": [ "curl", "jq" ] } } }
- description
- Query and monitor UniFi network via local gateway API (Cloud Gateway Max / UniFi OS). Use when the user asks to "check UniFi", "list UniFi devices", "show who's on the network", "UniFi clients", "UniFi health", "top apps", "network alerts", "UniFi DPI", or mentions UniFi monitoring/status/dashboard.
02 资源文件 10
- 参考文档_meta.json440 B
- 参考文档README.md2.5 KB
- 参考文档references/unifi-readonly-endpoints.md6.3 KB
- 脚本scripts/alerts.sh550 B
- 脚本scripts/clients.sh755 B
- 脚本scripts/dashboard.sh17.4 KB
- 脚本scripts/devices.sh712 B
- 脚本scripts/health.sh705 B
- 脚本scripts/top-apps.sh803 B
- 脚本scripts/unifi-api.sh2.5 KB
03 SKILL.md 正文
UniFi Network Monitoring Skill
Monitor and query your UniFi network via the local UniFi OS gateway API (tested on Cloud Gateway Max).
Purpose
This skill provides read-only access to your UniFi network's operational data:
- Devices (APs, switches, gateway) status and health
- Active clients (who's connected where)
- Network health overview
- Traffic insights (top applications via DPI)
- Recent alarms and events
All operations are GET-only and safe for monitoring/reporting.
Setup
Create the credentials file: ~/.clawdbot/credentials/unifi/config.json
{
"url": "https://10.1.0.1",
"username": "api",
"password": "YOUR_PASSWORD",
"site": "default"
}
url: Your UniFi OS gateway IP/hostname (HTTPS)username: Local UniFi OS admin usernamepassword: Local UniFi OS admin passwordsite: Site name (usuallydefault)
Commands
All commands support optional json argument for raw JSON output (default is human-readable table).
Network Dashboard
Comprehensive view of all network stats (Health, Devices, Clients, Networks, DPI, etc.):
bash scripts/dashboard.sh
bash scripts/dashboard.sh json # Raw JSON for all sections
Output: Full ASCII dashboard with all metrics.
List Devices
Shows all UniFi devices (APs, switches, gateway):
bash scripts/devices.sh
bash scripts/devices.sh json # Raw JSON
Output: Device name, model, IP, state, uptime, connected clients
List Active Clients
Shows who's currently connected:
bash scripts/clients.sh
bash scripts/clients.sh json # Raw JSON
Output: Hostname, IP, MAC, AP, signal strength, RX/TX rates
Health Summary
Site-wide health status:
bash scripts/health.sh
bash scripts/health.sh json # Raw JSON
Output: Subsystem status (WAN, LAN, WLAN), counts (up/adopted/disconnected)
Top Applications (DPI)
Top bandwidth consumers by application:
bash scripts/top-apps.sh
bash scripts/top-apps.sh 15 # Show top 15 (default: 10)
Output: App name, category, RX/TX/total traffic in GB
Recent Alerts
Recent alarms and events:
bash scripts/alerts.sh
bash scripts/alerts.sh 50 # Show last 50 (default: 20)
Output: Timestamp, alarm key, message, affected device
Workflow
When the user asks about UniFi:
- "What's on my network?" → Run
bash scripts/devices.sh+bash scripts/clients.sh - "Is everything healthy?" → Run
bash scripts/health.sh - "Any problems?" → Run
bash scripts/alerts.sh - "What's using bandwidth?" → Run
bash scripts/top-apps.sh - "Show me a dashboard" or general checkup → Run
bash scripts/dashboard.sh
Always confirm the output looks reasonable before presenting it to the user (check for auth failures, empty data, etc.).
Notes
- Requires network access to your UniFi gateway
- Uses UniFi OS login +
/proxy/networkAPI path - All calls are read-only GET requests
- Tested endpoints are documented in
references/unifi-readonly-endpoints.md
Reference
- Tested Endpoints — Full catalog of verified read-only API calls on your Cloud Gateway Max
04 同仓库更多 Skills
crowd-prompting
A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.
dilemm-ai
Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).
arxiv-paper-reviews
Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, or submitting paper reviews via API at http://150.158.152.82:8000.
arxiv-paper-reviews
Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, or submitting paper reviews via API at http://150.158.152.82:8000.
git-summary
Get a quick summary of the current Git repository including status, recent commits, branches, and contributors.
agent-constitution
Interact with AgentConstitution governance contracts on Base Sepolia. Check compliance, read rules, log actions, query governance state.