
- How to SSH into Unifi devices
- SSH commands
- Internet Threat Management
- 1 [23:24:43] 28.4 Mb/s (11.5s test time)
- 2 [23:24:55] 44.85 Mb/s (11.8s test time)
- 3 [23:25:06] 28.83 Mb/s (11.2s test time)
- 1 [23:38:45] 381.05 Mb/s (9.9s test time)
- 2 [23:38:54] 384.47 Mb/s (9.7s test time)
- 3 [23:39:04] 386.43 Mb/s (9.6s test time) .
- Python scripting for network management
- The official UniFi APIs
- UNAS Pro
- How I use it in NicAI
15 Aug 2025
How to SSH into Unifi devices
For router:
ssh ubnt@192.168.1.1
ubntis default, can be changed (I have)
For other devices, use its IP as:
ssh ubnt@192.168.237
Reminder: password is different than the one used for Controller login.
SSH commands
| Command | Example / Syntax |
|---|---|
| info | info |
| set-default | set-default |
| set-inform | set-inform http://192.168.1.1:8080/inform |
| upgrade | upgrade https://<firmware-url>.bin |
| fwupdate | fwupdate --url https://<firmware-url>.bin |
| reboot | reboot |
| poweroff | poweroff |
| uptime | uptime |
| ifconfig | ifconfig |
| ip address add | ip address add 192.168.1.143/24 dev br0 |
| ip route | ip route |
| ip route add default via | ip route add default via 192.168.1.1 |
| echo "nameserver ..." > /etc/resolv.conf | echo "nameserver 192.168.1.1" > /etc/resolv.conf |
| ping | ping 1.1.1.1 |
| arp | arp -a |
| ip neigh | ip neigh |
| cat /var/log/messages | cat /var/log/messages |
| tail -f /var/log/messages | tail -f /var/log/messages |
| cat /mnt/data/unifi-os/unifi-core/config/settings.yaml | cat /mnt/data/unifi-os/unifi-core/config/settings.yaml |
| cat /mnt/data/unifi-os/unifi-core/logs/discovery.log | cat /mnt/data/unifi-os/unifi-core/logs/discovery.log |
| cat /mnt/data/unifi-os/unifi-core/logs/system.log | cat /mnt/data/unifi-os/unifi-core/logs/system.log |
| cat /mnt/data/unifi-os/unifi/logs/server.log | cat /mnt/data/unifi-os/unifi/logs/server.log |
| cat /mnt/data/unifi-os/unifi-core/logs/errors.log | cat /mnt/data/unifi-os/unifi-core/logs/errors.log |
Source & full list:

Look into SSH via Python to automate full system reboot.
Using unificontrol:

Internet Threat Management
I'm connected via ethernet as follows:
Cable modem > USG-3P > US-8 > Netgear switch > Mac Studio
My bandwidth is dropping pretty massively when activating Internet Threat Management, even on "Maximum Performance":
with ITM on "Maximum Performance":
Starting speed test with 3 runs (threads=1)...
1 [23:24:43] 28.4 Mb/s (11.5s test time)
2 [23:24:55] 44.85 Mb/s (11.8s test time)
3 [23:25:06] 28.83 Mb/s (11.2s test time)
without ITM:
Starting speed test with 3 runs (threads=1)...
1 [23:38:45] 381.05 Mb/s (9.9s test time)
2 [23:38:54] 384.47 Mb/s (9.7s test time)
3 [23:39:04] 386.43 Mb/s (9.6s test time) .
Source: https://dl.ui.com/ds/udm-pro
Python scripting for network management
See Unifee
29 Nov 2026
The official UniFi APIs
Since 2025 Ubiquiti publishes official, documented APIs, all with the same X-API-KEY header. They replace the undocumented /proxy/network/api/s/<site>/... paths that libraries such as unificontrol reverse-engineered.
| API | Where it runs | Base path | Key from |
|---|---|---|---|
| Network Integration API | Locally, on the console | https://<console>/proxy/network/integration/v1 |
Network > Settings > Integrations |
| Protect Integration API | Locally, on the console | https://<console>/proxy/protect/integration/v1 |
The console's integration settings |
| Site Manager API | Cloud | https://api.ui.com/v1 |
unifi.ui.com |
- Network: sites, devices, clients, networks, Wi-Fi broadcasts, DNS policies, guest authorisation. Each Network version ships its own OpenAPI spec, so the version on your console decides which endpoints exist.
- Protect: cameras, smart-detect state, snapshots.
- Site Manager: the cloud overview across consoles (hosts, sites, devices, ISP metrics). Its Cloud Connector path
/v1/connector/consoles/<consoleId>/proxy/network/integration/...reaches a local API remotely without opening a port.
# list cameras straight from Protect, no integration needed (self-signed certificate)
curl -sk -H "X-API-KEY: $UNIFI_API_KEY" \
https://<console>/proxy/protect/integration/v1/cameras


UNAS Pro
My storage moved from the old Synology to a UNAS Pro in 2026: a 2U, 7-bay rack NAS (2.5" or 3.5" drives) with a 10G SFP+ uplink and a 1 GbE port, managed from the same UniFi console as the network. List price on the US store: 499 USD, diskless. It serves plain SMB shares, which is all the Mac needs. A synology-migrate.py script moved the old shares across with rsync and verification. 1 gotcha from that move: the UNAS SMB target doesn't keep file modification times, so rsync has to compare by size (--size-only), not by time.

How I use it in NicAI
UniFi is the floor that NicAI, my automation layer of Claude Code agents and Python scripts, stands on. Most of the time agents don't call it directly: they reach it through Home Assistant or through a mounted share.
- Camera alerts: Home Assistant runs the UniFi Protect integration (it needs a local console user, its password and an API key). When the carport camera sees a person, my app Sentree (!NicAI/sentree) shows the live feed and the latest clips on the Mac. Details in Home Assistant.
- Storage for agents: the UNAS shares hold my scanned documents (indexed by Scanee, Scanee: my own scan-to-archive pipeline), the music library, video archives and the backups. My backup tool runs a restic repository on a UNAS share, plus a cold copy on an external drive.
- Watching the shares: Pulsee (!NicAI/pulsee), my Mac watcher, checks every share is mounted and readable, and the UNAS free space. A share that the Mac can't read makes indexes look empty, so the check reads content, not just the mount point. That lesson came from a night when a Python upgrade lost permission to a share and an index job wiped 816 transcripts it thought were gone.
- Next: a Network Integration API check that lists new client devices on the LAN and waits for my go before it trusts them.
- The look: I measured the UniFi Network console's design (colours, type, spacing, components) into a small CSS kit,
ui-unifi, as an alternative skin to my own design system for personal tools. It uses Inter, not UniFi's own font.