# Connect OAK4 to Luxonis Hub

Use this guide when you want to adopt an OAK4 device into Luxonis Hub through the current OAK Viewer setup flow.

OAK Viewer is a desktop GUI application that allows you to visualize the camera's streams and interact with the device. It is the
main way to connect your OAK4 camera to Luxonis Hub.

![OAK Viewer with depth, point cloud and calibration details](https://docs.luxonis.com/static/images/software/depthai-viewer/viewer_pipeline_3.webp)

Download now:

#### Linux

> **Note**
> Debian packages are available for Ubuntu 24.04 and newer, supporting x86_64 (AMD64) and ARM64 (AArch64) architectures.

OAK Viewer 4.5.1 for Ubuntu 24.04 and newer

[Download for Ubuntu (x86_64)](https://oak-viewer-releases.luxonis.com/data/4.5.1/debian_x86_64/viewer.deb)[Download for Ubuntu
(ARM64)](https://oak-viewer-releases.luxonis.com/data/4.5.1/debian_arm_64/viewer.deb)> **ARM64 development build**
> The Ubuntu ARM64 (AArch64) package is a development build. Reach out to us at [support@luxonis.com](mailto:support@luxonis.com) if you encounter any issues.

#### macOS

> **Note**
> Viewer is available for macOS 12 and later, supporting both ARM (Apple Silicon) and x86_64 (Intel) architectures.

OAK Viewer 4.5.1 for macOS 12+

[Download for Apple Silicon (ARM64)](https://oak-viewer-releases.luxonis.com/data/4.5.1/macos_arm_64/Viewer.dmg)[Download for
Intel Mac (x86_64)](https://oak-viewer-releases.luxonis.com/data/4.5.1/macos_x86_64/Viewer.dmg)

#### Windows

> **Note**
> Please note that you can get warning from Microsoft Defender. Viewer is available for Windows 10/11, supporting the x86_64 (AMD64) architecture.

OAK Viewer 4.5.1 for Windows 10/11

[Download for Windows (x86_64)](https://oak-viewer-releases.luxonis.com/data/4.5.1/windows_x86_64/Viewer.msi)

More details can be found on the [OAK Viewer Documentation
page](https://docs.luxonis.com/software-v3/depthai/tools/oak-viewer.md).

If you want to connect the camera to Luxonis Hub and explore the ecosystem click on the "Adopt to Hub" button in the OAK Viewer,
confirm factory reset and select new password. Once setup is complete, a `Hub` tag will be shown on your device in OAK Viewer.

[Video: Connect OAK4 to Luxonis Hub](https://www.youtube.com/watch?v=C7JpRnhyQcE)

Step by step instructions:

If you want to connect the camera to Luxonis Hub and explore the ecosystem, click the Adopt to Hub button in OAK Viewer.

![OAK Viewer Adopt to Hub button](https://docs.luxonis.com/static/images/hardware/deploy/hub-setup-viewer-adopt.webp)

You will get a warning about on-device data deletion if you continue with the Hub setup. This deletes all user data, including
`/data/` and the user overlay. After this step, you will be redirected to a web browser.

![Luxonis Hub setup factory reset warning](https://docs.luxonis.com/static/images/hardware/deploy/hub-setup-data-deletion.webp)

Insert your password and adjust the advanced settings if necessary.

![Luxonis Hub setup camera password form](https://docs.luxonis.com/static/images/hardware/deploy/hub-setup-password.webp)

When you return to OAK Viewer, you should see a `Hub` tag next to your device, which indicates that the camera is successfully
connected to Luxonis Hub.

![OAK Viewer device card with Hub tag](https://docs.luxonis.com/static/images/hardware/deploy/hub-setup-finish-tag.webp)

> **Connecting to Hub enables SSH**
> Devices running OS 1.18 or newer ship with password-based SSH disabled; completing Luxonis Hub setup turns SSH back on and applies the password you configure in that flow.

While setting the new password, you can also configure advanced options. Details are below:

Use DHCPEnables your device to automatically obtain an IP address, subnet mask and gateway settings from a DHCP server in the
network.

Enable SSHAllows remote access to your device via the Secure Shell (SSH) protocol. Use this feature to securely configure or
monitor the device over an encrypted connection.

> **Note**
> For login, use the default username 'root' and the camera password you defined during setup.

Require Internet AccessDevice setup will not complete unless internet access can be established by the device.

Enable Error ReportingEnable detailed error reporting to enhance troubleshooting and system diagnostics. By selecting this option,
you allow the collection of the following data: Pipeline Schema, Device Platform, OS Platform, Connection Type and Crash Dump.
This information is crucial for identifying and resolving issues more efficiently.

DepthAI Peripheral ModeEnabling this option, exposes DepthAI server, giving access to the device from other hosts, using DepthAI
library. This makes the device act similar to the RVC2 (OAK) device.

HostnameThe unique name assigned to your device within the network. Use a descriptive and recognizable hostname for easier
identification, especially in environments with multiple devices.

## Next steps

### Manage devices

Inspect device state, OTA behavior, and remote access workflows after adoption.

[Manage devices](https://docs.luxonis.com/cloud/features/device-management.md)

### Manage applications

Install, run, and monitor OAK Apps on your newly connected device.

[Manage applications](https://docs.luxonis.com/cloud/features/application-management.md)
