๐ŸŒ Unifi Toolkit

Unifi Toolkit is a third-party, unofficial web-based toolkit for managing Ubiquiti Unifi networks. It is not affiliated with or endorsed by Ubiquiti Inc. It provides an alternative interface for configuring Unifi devices via the Unifi Controller API.

โš ๏ธ This is NOT official Ubiquiti software. It is a community tool created by Crosstalk Solutions that connects to your existing Unifi Controller via API.

Perfect for Unifi network administrators who want a simplified management interface alongside or instead of the standard Unifi Controller.

๐Ÿท๏ธ Category: Network

๐Ÿณ Image: crosstalksolutions/unifi-toolkit:latest


ย  ย 
๐Ÿ“ฆ Project github.com/Crosstalk-Solutions/unifi-toolkit
๐Ÿ› Support GitHub Issues
๐Ÿ’› Crosstalk Solutions crosstalksolutions.com

๐ŸŒ Ports

Port Protocol Description
8000 TCP Unifi Toolkit web interface

๐Ÿ’พ Volumes

Host Path Container Path Mode Description
/mnt/cache/appdata/unifi-toolkit /app/config RW Configuration and settings

โš™๏ธ Environment Variables

๐Ÿ‘ค Permissions

Variable Default Masked Description
PUID 500 โŒ User ID for file permissions
PGID 500 โŒ Group ID for file permissions
TZ Europe/Vienna โŒ Timezone for the container

๏ฟฝ Required Settings

Variable Default Masked Description
ENCRYPTION_KEY `` โœ… Required! Encryption key for stored credentials. Generate with: openssl rand -base64 32

๏ฟฝ Deployment Settings

Variable Default Masked Description
DEPLOYMENT_TYPE local โŒ Deployment mode: local for homelab, production for public access

๐Ÿ”— Unifi Controller Connection

Variable Default Masked Description
UNIFI_CONTROLLER_URL https://192.168.1.1 โŒ Required. Local controller IP/hostname (e.g., https://192.168.1.1). Note: Cloud access via unifi.ui.com is NOT supported.
UNIFI_API_KEY `` โœ… Recommended. API key from Unifi OS Settings โ†’ Admins. Generate in your Unifi Controller.
UNIFI_USERNAME `` โŒ Fallback username if not using API key (optional)
UNIFI_PASSWORD `` โœ… Fallback password if not using API key (optional)
UNIFI_SITE_ID default โŒ Site ID from URL, not friendly name. Use ID from /manage/site/{id}/...
UNIFI_VERIFY_SSL false โŒ SSL verification. Set to true only with valid SSL certificates
STALKER_REFRESH_INTERVAL 60 โŒ Device refresh interval in seconds

๐Ÿš€ Quick Start

Prerequisites

You need an existing Unifi Controller (self-hosted or cloud key). This tool connects to it via API.

Step 1: Generate Encryption Key

Required: Generate a strong encryption key:

openssl rand -base64 32

Copy the output and save it for the ENCRYPTION_KEY variable.

  1. Login to your Unifi Controller web interface
  2. Go to Settings (gear icon) โ†’ Admins
  3. Click on your admin user
  4. Click Create API Key
  5. Copy the API key (you wonโ€™t see it again!)

Step 3: Install via MOS Hub

  1. Open the MOS Hub and search for Unifi-Toolkit
  2. Set the Encryption Key - Paste the key from Step 1 into ENCRYPTION_KEY
  3. Configure the Unifi Controller connection:
    • Set UNIFI_CONTROLLER_URL to your controller (e.g., https://192.168.1.1)
    • Set UNIFI_API_KEY with the key from Step 2 (recommended)
    • OR set UNIFI_USERNAME and UNIFI_PASSWORD as fallback
  4. Click Install
  5. Access Unifi Toolkit at http://YOUR_SERVER_IP:8000

Step 4: Verify Connection

  1. Open the web interface
  2. The toolkit should automatically connect to your Unifi Controller
  3. You should see your network devices and configuration

๐Ÿ”ง Configuration

Unifi Controller URL Examples

Setup URL Example Notes
UDM/UDM-Pro https://192.168.1.1 Use IP address, port 443 is default
Cloud Key Gen2+ https://192.168.1.20 Local IP, not unifi.ui.com
Self-hosted Controller https://192.168.1.10:8443 Default port 8443
Docker Container https://unifi:8443 If on same Docker network

โš ๏ธ Important: Use your controllerโ€™s local IP address. Cloud access via unifi.ui.com is NOT supported by this toolkit.

SSL Certificate Verification

If your Unifi Controller uses a self-signed certificate (default), keep:

UNIFI_VERIFY_SSL=false

If you have a valid SSL certificate installed:

UNIFI_VERIFY_SSL=true

Multi-Site Setup

If you have multiple sites in your Unifi Controller, specify the site ID (not the friendly name):

UNIFI_SITE_ID=default    # Default site
UNIFI_SITE_ID=5f3a2b1c4d8e9f0a1b2c3d4e   # Site ID from URL

Finding your Site ID:

  1. In Unifi Controller, switch to the site you want
  2. Look at the URL: /manage/site/5f3a2b1c4d8e9f0a1b2c3d4e/dashboard
  3. The Site ID is the long string after /site/

๐Ÿ“Š Features

Device Management

  • View all Unifi devices on your network
  • See device status and connectivity
  • Manage device configurations
  • Restart or adopt devices

Network Configuration

  • Configure WiFi networks
  • Manage VLANs and subnets
  • Set up port forwarding
  • Configure firewall rules

Client Monitoring

  • View connected clients
  • See bandwidth usage
  • Manage client access
  • Block/unblock devices

Site Management

  • Switch between multiple sites
  • Site-specific configurations
  • Site statistics and health

๐Ÿ”’ Security Considerations

API Access

  • The toolkit requires admin access to your Unifi Controller
  • Credentials are stored in the container environment
  • Use a dedicated service account if possible

Network Access

  • Keep Unifi Toolkit on internal network
  • Use reverse proxy with authentication for external access
  • Consider VPN access instead of public exposure

SSL/TLS

  • Unifi Controllers typically use self-signed certificates
  • Set UNIFI_VERIFY_SSL=false for default setups
  • Install valid SSL certificates on your controller for production

๐ŸŒ Unifi Controller Setup

The API Key is the most secure way to connect:

  1. Login to your Unifi Controller web interface
  2. Go to Settings (gear icon in bottom left) โ†’ Admins
  3. Click on your admin user account
  4. Scroll down to API Keys section
  5. Click Create API Key
  6. Give it a name (e.g., โ€œMOS-Hub-Toolkitโ€)
  7. Copy the key immediately - you wonโ€™t see it again!
  8. Paste the key into UNIFI_API_KEY environment variable

Controller Requirements

  • Controller must be running and reachable via local IP
  • Network connectivity between MOS Hub and Controller
  • For UDM/UDM-Pro: Use https://192.168.1.1 (no port, uses 443)
  • For self-hosted: Use https://IP:8443 (or 443 if configured)

๐Ÿ› ๏ธ Troubleshooting

โ€œERROR: No .env file found and ENCRYPTION_KEY not set!โ€

This is the most common error! You must set the ENCRYPTION_KEY environment variable.

Solution:

  1. Generate a key: openssl rand -base64 32
  2. Copy the output (it looks like: aBcD1234...)
  3. Paste it into the ENCRYPTION_KEY field in MOS Hub
  4. Redeploy the container

Connection Failed

  1. Check URL - Verify UNIFI_CONTROLLER_URL is correct with https://
    • UDM/UDM-Pro: Use https://192.168.1.1 (no port needed, uses 443)
    • Self-hosted: Use https://IP:8443 if not using standard 443
    • DO NOT use unifi.ui.com - only local IPs work
  2. Network Access - Ensure MOS Hub can reach the Unifi Controller
    curl -k https://UNIFI_IP:8443
    

Authentication Failed

  1. API Key (Recommended) - Verify you generated the API key correctly in Unifi OS Settings โ†’ Admins
  2. Username/Password Fallback - Only used if API key is empty
  3. Local Account - Ensure youโ€™re using a local admin account, not a UI.com SSO account

SSL Certificate Errors

If you see SSL errors:

  1. Set UNIFI_VERIFY_SSL=false (default, works with self-signed certs)
  2. Or install valid certificates on your Unifi Controller and set to true

Site Not Found

  1. Check UNIFI_SITE_ID matches the ID from URL (not friendly name)
  2. Site ID is the long string in URL: /manage/site/{ID}/dashboard
  3. Example: 5f3a2b1c4d8e9f0a1b2c3d4e not Home Office

๐Ÿ’ก Tip: Keep your Unifi Controller updated for the best API compatibility and security.

๐Ÿ’ก Tip: Use Unifi Toolkit alongside the official Unifi Controller - they complement each other.

๐Ÿ’ก Tip: For UDM/UDM-Pro users, the controller runs on port 443, not 8443.

๐Ÿ“š For more information: Visit the Unifi Toolkit GitHub for detailed documentation and feature updates.


MOS Templates โ€“ maintained by J000K3R

This site uses Just the Docs, a documentation theme for Jekyll.