unifi-drive-setup

unifi-drive-setup is a skill for Claude Code from sirkirby/unifi-mcp. It costs 64 tokens per session (1,576 once invoked), scanned A, original, MIT.

A setup workflow for connecting UniFi Drive to Claude Code, Codex, or OpenClaw. It configures the NAS address, local account, password provider, certificate pinning, and write permissions.

In plain words
What is it for?
Use it when installing or configuring the UniFi Drive connection, checking prerequisites, setting the NAS host, or fixing setup-mode and login problems.
Why use it?
It helps resolve missing configuration or login failures without putting passwords in chat, commands, or tool calls.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions Claude Code; mentions Codex; built for openclaw.

Part of the unifi-drive plugin — 2 skills shipped together

Good fit Use it when installing or configuring the UniFi Drive connection, checking prerequisites, setting the NAS host, or fixing setup-mode and login problems.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sirkirby/unifi-mcp/unifi-drive-setup
About the project

UniFi MCP is a set of MCP servers and a Graph API that let AI agents and other software manage UniFi Network, Protect, and Access systems; an MCP server exposes tools that a compatible client can call. It is for UniFi administrators building assistants, automations, custom applications, or remote integrations. The catalogue plugins package these servers with agent skills and setup guidance, while the listed skills support workflows across the UniFi products.

sirkirby/unifi-mcp · 1,150 stars · on GitHub · unifimcp.com

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 sirkirby/unifi-mcp --skill unifi-drive-setup
Clone the repo
git clone --depth 1 https://github.com/sirkirby/unifi-mcp

Made for: Claude Code.

Or install unifi-drive, the plugin that ships this one along with the rest of its 2 skills.

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-drive-setup

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/sirkirby/unifi-mcp/unifi-drive-setup"><img src="https://agentmods.dev/badge/skills/sirkirby/unifi-mcp/unifi-drive-setup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 64 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,576 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.00064 $0.01576
Opus 5.5 $0.00026 $0.00630
Sonnet 5.5 $0.00013 $0.00315
Haiku 4.5 $0.00006 $0.00158

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

Security

Grade A, and why

unifi-drive-setup 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 4d 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.

plugins/unifi-drive/skills/unifi-drive-setup/SKILL.md · 103 lines

How it starts

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

Set up UniFi Drive

Ask one question at a time and wait for the answer. Never ask for a password in chat, and never put one in a command argument, tool call or output.

  1. Choose the client. Use Claude Code, Codex or OpenClaw. Other clients use the repository's native/manual server installation instructions; do not invent plugin configuration for them. Real-client acceptance of this bundle is not yet measured. Locate this installed plugin's root from the skill path.

  2. Check prerequisites. Run bash <plugin-root>/scripts/check-prereqs.sh --target <client> or & <plugin-root>/scripts/check-prereqs.ps1 -Target <client> on Windows. Install uv/uvx and the chosen client CLI when missing. The server needs Python 3.13 or newer (uv can supply it); setup needs Python 3.11 or newer and falls back to uv. Stop on a non-zero exit and report it.

  3. Point at the NAS. Ask for the IP address or hostname of the UniFi NAS itself (UNIFI_DRIVE_HOST), not the gateway: the NAS is a separate UniFi OS console. Ask for a local UniFi OS username on the NAS (UNIFI_DRIVE_USERNAME); a UI.com account with MFA cannot log in. A dedicated local account is best. Drive never uses the shared UNIFI_HOST, UNIFI_USERNAME, UNIFI_PASSWORD, UNIFI_PORT or UNIFI_SSL_FINGERPRINT and has no API key; setup refuses them. Never copy another plugin's credentials here.

  4. Save one password source. Accept only UNIFI_DRIVE_PASSWORD, UNIFI_DRIVE_PASSWORD_FILE or UNIFI_DRIVE_PASSWORD_COMMAND; two nonempty forms are refused. Provider files must be nonempty readable absolute paths; command providers name an available executable and argv, run without a shell by the server and never prompting. Setup checks references without running a command provider or reading the file. Prefer a provider. In Claude Code the plugin's options dialog (/plugin, then unifi-drive, then Configure options) also offers a masked password field stored in the system keychain. A raw password otherwise travels only as a JSON patch on stdin (--input-json / -InputJson) from a local masked prompt or secret manager. Switching away from a keychain-held password may need a newer Claude Code or a reinstall; follow the helper's value-free guidance rather than saving two forms.

  5. Optional settings. Defaults: port 443, SSL verification off, lazy tool loading. To customize, set UNIFI_DRIVE_PORT, UNIFI_DRIVE_VERIFY_SSL or UNIFI_TOOL_REGISTRATION_MODE. A certificate pin checks the NAS even on its factory self-signed certificate. Get it with the host and port, show it to the user to confirm, and save it as UNIFI_DRIVE_SSL_FINGERPRINT:

    openssl s_client -connect <host>:<port> </dev/null 2>/dev/null \
      | openssl x509 -noout -fingerprint -sha256
    

    A pin overrides SSL verification and fails once the NAS certificate changes, until it is updated.

  6. Write permissions. Every write stays off unless the user opts in, and keep UNIFI_DRIVE_TOOL_PERMISSION_MODE=confirm so each one is previewed. Turning SMB, NFS or Time Machine on or off and changing an NFS client are updates; adding a client is a create; removing one is a delete. Tell the user that turning SMB off also stops Time Machine. Claude Code's options hold only the server-level gates UNIFI_POLICY_DRIVE_CREATE, UNIFI_POLICY_DRIVE_UPDATE and UNIFI_POLICY_DRIVE_DELETE. Codex and OpenClaw also take category gates that override them: UNIFI_POLICY_DRIVE_FILE_SERVICES_UPDATE and UNIFI_POLICY_DRIVE_NFS_CONNECTIONS_<CREATE|UPDATE|DELETE>. For read-only setup, set all three server-level gates to false.

  7. Write the configuration. Pass only values the user gave or chose:

    bash <plugin-root>/scripts/set-env.sh --target <claude|codex|openclaw> \
      UNIFI_DRIVE_HOST=<nas-host> \
      UNIFI_DRIVE_USERNAME=<local-user> \
      'UNIFI_DRIVE_PASSWORD_FILE=<absolute-path>' \
      UNIFI_DRIVE_TOOL_PERMISSION_MODE=confirm \
      UNIFI_POLICY_DRIVE_CREATE=false \
      UNIFI_POLICY_DRIVE_UPDATE=false \
      UNIFI_POLICY_DRIVE_DELETE=false
    

Read the full file on GitHub · 103 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. 4d ago First seen · 103 lines · 64 tokens per session scan A cb59837e7389

Subscribe to this mod's changes

unifi-drive-setup is a skill published in the GitHub repository sirkirby/unifi-mcp (1,150 stars, last pushed today), licensed MIT. It adds 64 tokens to every session and 1,576 once invoked, about $0.0003 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-11-26.

Related

unifi-drive-setup compared with skills from other repositories

unifi-drive-setup next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
unifi-drive-setupsirkirby/unifi-mcpSkill1.1ktodayMITA64Claude Code
streamdeck-designerverygoodplugins/streamdeck-mcpSkill556d agoMITA167Claude Code, Codex
streamdeck-profileverygoodplugins/streamdeck-mcpSkill556d agoMITA0Claude Code, Codex
unifi-udm-pro-mcprodolfoconcepcion/unifi-udm-pro-mcpSkill514d agoMITA35Claude Code, Codex
unifi-networkgordcurrie/unifi-mcpSkill21mo agoMITA111Claude Code, Codex
audit-erc-drc-and-safetyw1ne/labwired-coreSkill210todayMITA49Claude Code
export-kicad-and-bomw1ne/labwired-coreSkill210todayMITA51Claude Code