Skip to content
Operations
Skill

/unifi-sitemanager-setup

Configure the UniFi Site Manager plugin for Claude Code, Codex or OpenClaw, including keyless startup, credential providers, setup errors and reconnecting after a key change.

From plugin
unifi-mcp
1.1k18 skills

Claude Code

$ npx -y skills add sirkirby/unifi-mcp --skill unifi-sitemanager-setup --agent claude-code

SKILL.md

unifi-sitemanager-setup.SKILL.md
name: unifi-sitemanager-setup
description: Configure the UniFi Site Manager plugin for Claude Code, Codex or OpenClaw, including keyless startup, credential providers, setup errors and reconnecting after a key change.

Set up UniFi Site Manager

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. Internet access to Ubiquiti's `https://api.ui.com` is required. 3. **Explain the scope.** A Site Manager API key grants visibility across the whole UniFi account. Ask the user to create a cloud key in Site Manager and choose exactly one source below. Never ask for the value in chat. This server has no console host, username, password, port, site or TLS setting and no permission or policy options. Never reuse or migrate `UNIFI_API_KEY` or a console credential. 4. **Save the one credential.** Accept only `UNIFI_SITEMANAGER_API_KEY`, `UNIFI_SITEMANAGER_API_KEY_FILE` or `UNIFI_SITEMANAGER_API_KEY_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. Setup validates references without running a command provider or reading the key file's contents.

Claude Code's plugin options offer a sensitive masked API key field, stored in its system keychain, and file/command fields. Prefer a provider. For Codex and OpenClaw, use a provider reference with the bundled settings script:

   bash <plugin-root>/scripts/set-env.sh --target codex UNIFI_SITEMANAGER_API_KEY_FILE=/absolute/path/to/key
   & <plugin-root>/scripts/set-env.ps1 -Target codex UNIFI_SITEMANAGER_API_KEY_FILE=C:\private\key

Choose `claude` or `openclaw` instead when appropriate. The raw key must travel only as a JSON patch on stdin (`--input-json` / `-InputJson`) from a local masked prompt or secret manager. Never place it in a command argument, shell history, output, logs, or a conversation. If a masked input mechanism is unavailable, use a provider. Claude Code setup calls `claude plugin configure` with values on stdin, using the existing keychain mechanism. Switching from a keychain value may require clearing it in a newer Claude Code or reinstalling; follow the helper's value-free guidance rather than saving two forms.

Codex and OpenClaw save only the key source in the private per-user file `~/.config/unifi-mcp/sitemanager.env` (Windows: `%USERPROFILE%\.config\unifi-mcp\sitemanager.env`). Their bundled `.mcp.codex.json` points there through `UNIFI_SETTINGS_FILE`; setup creates no MCP client entry. If a manual entry shadows the bundle, remove it with the client editor and rerun; Site Manager never migrates console settings. 5. **Reconnect.** Claude Code: `/reload-plugins` or start a new session to load new options; use `/mcp reconnect plugin:unifi-sitemanager:unifi-sitemanager` only if `/mcp` shows the server as failed. Codex: start a new session. OpenClaw: start a new session or restart the Gateway when an open session keeps the unconfigured server. Plugin upgrades take effect from the next agent turn. Codex setup warms the pinned package without a settings file or credential; it performs no authenticated read. With no key the server starts in keyless setup mode instead of connecting. Once the user agrees to an account-wide read, discover a bounded inventory read through the main `unifi-sitemanager` skill. Report only status and counts, never credential values. All domain tools read; there are no writes or support-bundle tool.

Read more
@sirkirby
Ships withunifi-mcp

Leverage agents and agentic AI workflows to manage your UniFi deployment.

Stars on GitHub

Momentum

stars in total
1.1k
Star history of sirkirby/unifi-mcp on GitHub, a chart by star-history.com

Other skills on unifi-mcp.

unifi-access-setup

unifi-access-setup

Configure the UniFi Access MCP server for a supported MCP client — set controller host, credentials, API key, and permissions.…

@sirkirby@sirkirbyInstall Skill
unifi-access-support

unifi-access-support

Generate a sanitized UniFi Access support bundle, help the user review it locally, and prepare it for a bug report without…

@sirkirby@sirkirbyInstall Skill
unifi-access

unifi-access

How to manage UniFi Access door control — locks, credentials, visitors, access policies, and events. Use this skill when the user…

@sirkirby@sirkirbyInstall Skill
incident-investigation

incident-investigation

Investigate one UniFi Network device incident (a switch, AP or gateway going offline, disconnecting or misbehaving) over an…

@sirkirby@sirkirbyInstall Skill
security-patrol

security-patrol

Review retrieved activity at one area in a given time window from the cloud worker's merged Network and Protect timeline, with…

@sirkirby@sirkirbyInstall Skill
visitor-audit

visitor-audit

Audit visitor activity by reading Access door events and setting them beside Network evidence from the cloud worker's timeline…

@sirkirby@sirkirbyInstall Skill

More skills from other plugins.

diagnose-crash

diagnose-crash

Diagnose why a program crashed on this machine, from a systemd-coredump core dump. Use when a process has segfaulted, aborted, or…

omarchy5d47k
@basecamp@basecampInstall Skill
add-custom-domain

add-custom-domain

Add a custom domain to a Temps project and provision an automatic SSL/TLS certificate via Let's Encrypt, driven entirely from the…

temps13d887
@gotempsh@gotempshInstall Skill

Questions about unifi-sitemanager-setup.

Which coding agents can use unifi-sitemanager-setup?
unifi-sitemanager-setup installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.