# Adopting UniFi Devices

This article will guide you through the process of adopting your Unifi devices such as Access Points, Switches and USG to your new Cloud Unifi hosted controller. Note: UXG-Pro and Flex Mini Unifi devices have different adoption instructions.



# SSH

If you can SSH into the device, it's possible to do L3 adoption via CLI command:

  1. Make sure the device is running fairly recent firmware.

  2. Make sure the device is in the factory default state. If it's not, you run the following command or complete a physical factory reset of the device:

sudo syswrapper.sh restore-default
  1. SSH into the device and type the following and hit enter, substituting "example.cloudunifi.com" with the domain name of your hosted UniFi Network Controller:
set-inform http://example.cloudunifi.com:8080/inform
  1. After issuing the set-inform, the UniFi device will show up for adoption in the Devices section of the controller. Once you click Adopt, the device will appear to go offline or have the status of "Adopting" then proceed to "Provisioning" and "Connected".

# Mobile App

  1. After installing the UniFi Mobile App (Available in iOS App Store & Android PlayStore), launch the app.
  1. Select your Controller from the list, or tap the "Add Controller" to log in and add your controller.

iOS Add Controller
iOS Add Controller

Android Add Controller
Android Add Controller

  1. For iOS: Once logged in to the Controller, tap More. There will be a Layer 3 Adoption option under Utilities. For Android: Once logged in to the Controller, tap More, then click on Remote Adoption from the menu.

iOS More
iOS More

Android More
Android More

  1. Devices will be displayed on this screen. Tap on the device that is to be adopted and select Adopt.

iOS Adopt
iOS Adopt

Android Adopt
Android Adopt

  1. After a few seconds (15-30 seconds, times will vary) the device will appear under the Devices section, which will be accessible by clicking on the Devices icon on the bottom menu bar.

# UniFi Toolkit

The UniFi Toolkit is a free tool that scans your local network for factory-default UniFi devices and adopts them to your Cloud UniFi controller. It is available for Windows, macOS, and Linux.

Download: UniFi Toolkit

# Desktop App (macOS)

A desktop application with a graphical interface is available for macOS. Download the DMG installer from the releases page, open it, and drag the app to your Applications folder.

# Interactive Mode

  1. Open a terminal and run the toolkit:
./unifi-toolkit
  1. Select Adoption Mode when prompted. The toolkit will automatically detect your local subnet and scan for factory-default UniFi devices on the network.

  2. Enter your controller inform URL when prompted: http://example.cloudunifi.com:8080/inform (replace "example" with your hosted controller id).

  3. Select the devices you want to adopt. The toolkit will connect to each device via SSH using default credentials and set the inform URL automatically.

  4. Open your hosted UniFi Network Controller and go to the Devices section. Your devices will appear with a status of "Pending Adoption" — click Adopt for each device.

  5. The device status will change from "Pending" to "Adopting" to "Provisioning", then finally to "Connected".

# Non-Interactive Mode

For adopting devices without the interactive interface, run:

./unifi-toolkit --run -c example.cloudunifi.com -s 192.168.1.0/24

Replace example.cloudunifi.com with your controller hostname and 192.168.1.0/24 with your local subnet.