Raspberry Pi Connect
Introduction
Edit this on GitHub
Raspberry Pi Connect gives you secure access to your Raspberry Pi from anywhere in the world, using only a browser.
Connect has two parts:
| Part | What it is | How you use it |
|---|---|---|
Connect service |
The website at connect.raspberrypi.com, and the servers that set up connections between your browser and your devices. |
Sign in with your Raspberry Pi ID to see your linked devices, start remote sessions, and deploy updates. |
Connect client |
Software that runs on your Raspberry Pi and links it to your Connect account. |
Use the Connect icon in the system tray, or the |
The Connect client is installed by default on Raspberry Pi OS, but it’s turned off until you turn it on and link your device. There are two variants:
| Variant | Package | Screen sharing | Remote shell | Installed by default on |
|---|---|---|---|---|
Connect |
|
Yes |
Yes |
Raspberry Pi OS Desktop and Raspberry Pi OS Full |
Connect Lite |
|
No |
Yes |
Raspberry Pi OS Lite |
|
Note
|
To use Connect, your Raspberry Pi must run Raspberry Pi OS Bookworm or later. |
Features
-
Screen sharing. Use your Raspberry Pi’s desktop from a browser on your computer, tablet, or phone, with on-screen controls for keys that browsers intercept. For more information, see Screen sharing.
-
Remote shell. Open a terminal session on your Raspberry Pi from a browser, including on Raspberry Pi OS Lite. For more information, see Remote shell.
-
Remote update. Push scripts or complete operating system updates to devices that are behind a firewall or hard to reach, with automatic rollback for A/B boot updates. For more information, see Remotely update your devices.
-
Works across networks. Connect links your browser and your device directly where it can, and through an encrypted relay where it can’t, usually without any changes to your network or firewall. For more information, see Relay servers.
-
End-to-end encryption. Sessions are encrypted between your device and your browser. Raspberry Pi can’t see their contents and retains only the metadata needed to run the service. For more information, see Security and privacy.
Account types
| Account | Who can access devices | Includes | Cost |
|---|---|---|---|
Personal |
One user |
Screen sharing, remote shell, and remote update |
Free |
Organisation |
Multiple users, with roles |
Everything in a personal account, plus device tagging and search, an audit log, and a management API |
Billed monthly, after a free trial |
For more information about organisation accounts, see Connect for Organisations.
Get started
Edit this on GitHub
To start using Connect, turn on the Connect client on your Raspberry Pi and link the device to your Connect account. You can then access the device from a browser on any other computer, tablet, or phone.
Prerequisites
You need:
-
A Raspberry Pi ID. If you don’t have one, see Create a Raspberry Pi ID.
-
A Raspberry Pi running Raspberry Pi OS Bookworm or later, connected to the internet.
-
On the computer, tablet, or phone you want to connect from, a browser that supports ECMAScript 2022 (ES13). Most current browsers do.
Step 1: Turn on Connect
The Connect client is installed by default on Raspberry Pi OS, but it’s turned off until you turn it on. Turning on Connect starts the client on your device; it doesn’t link the device to an account.
-
Desktop
-
Command line
-
Power on your Raspberry Pi.
-
Select the Connect icon in the system tray, then select Turn On Raspberry Pi Connect.
The Connect menu in the system tray.If the device isn’t linked to an account yet, a browser opens so that you can sign in with your Raspberry Pi ID. Continue with Sign in with your Raspberry Pi ID.
Run the following command:
$ rpi-connect on
Step 2: Link your device
Linking a device adds it to a Connect account, so that you can access it remotely. Choose one of the following ways to link your device:
| Method | How it works | Account types |
|---|---|---|
You sign in with your Raspberry Pi ID, on the device or from another device. |
Personal and organisation |
|
You give the device a single-use token, so nobody has to sign in. Useful for devices without a display. |
Personal and organisation |
|
The device signs in with a private key stored in its one-time programmable (OTP) memory. Useful for preparing many devices. |
Organisation only |
|
Note
|
Connect identifies your device by its serial number. If you move your microSD card to a different Raspberry Pi, the Connect client signs out, and you must link the new device. |
Sign in with your Raspberry Pi ID
-
Desktop
-
Command line
When you turn on Connect from the desktop, a browser opens if the device isn’t linked to an account yet.
-
Enter your Raspberry Pi ID email address and password, then select Sign In.
-
Follow the on-screen prompts to give your device a name and choose which Connect account to link it to.
If the device’s serial number matches a device you already administer, Connect offers to sign that device in again, instead of asking for a name.
If you’re an administrator of an organisation, choose whether to add the device to your personal account or to an organisation.
-
Select Create device and sign in.
To sign in again later, select the Connect icon in the system tray, then select Sign In….
-
Start the sign-in process:
$ rpi-connect signinThe command outputs a verification URL, similar to the following:
Complete sign in by visiting https://connect.raspberrypi.com/verify/XXXX-XXXX
-
Visit the verification URL on any device, and sign in with your Raspberry Pi ID to link the device to your account.
Use an auth key
An auth key is a single-use, temporary token that links a device to a Connect account without anyone signing in. For more information, including how long auth keys last, see Auth keys.
The easiest way to use an auth key is to set one in the customisation options in Raspberry Pi Imager when you write Raspberry Pi OS to your storage device.
To use an auth key on a device that’s already running:
-
Make sure that Connect is turned on on the device, and that the device is connected to the internet. Connect must be running before it can use an auth key, and the device must use the key before it expires.
-
Give the auth key to the Connect client in one of the following ways:
-
Run the
rpi-connect signincommand with the auth key:$ rpi-connect signin --auth-key=rpuak_123456 -
Save the auth key to a file, then pass the file’s full path to the command, prefixed with
@:$ rpi-connect signin --auth-key=@/home/alice/auth.key -
Save the auth key to
.config/com.raspberrypi.connect/auth.keyin your home directory. Connect detects the file automatically, and deletes it after it tries to sign in, whether or not the sign-in succeeds.
-
Use a device identity
|
Note
|
Device identities are only available for organisations. |
A device identity links a device to an organisation using a private key stored in the device’s one-time programmable (OTP) memory, so nobody has to sign in on the device. Unlike an auth key, a device identity can be used more than once.
-
Create a device identity for the device with the management API, either directly or through
rpi-sb-provisioner. You can’t create device identities on the Connect website. For more information, see Device identities. -
Turn on Connect on the device. The device signs in to your organisation automatically.
To provision many devices with device identities, see Bulk provisioning.
When your device is linked
-
The Connect icon in the system tray turns blue to show that the client is signed in.
-
Connect sends a notification to your Raspberry Pi ID email address to tell you that a new device is linked to your account. Devices linked to an organisation with an auth key or a device identity don’t send an email; instead, the sign-in is recorded in the organisation’s audit log.
To check the link from the command line, run rpi-connect status. For more information, see Check the Connect client’s status.
|
Important
|
By default, the Connect client only runs while you’re signed in to your Raspberry Pi. If you reboot the device remotely, or it doesn’t sign in automatically (for example, a headless or Raspberry Pi OS Lite setup), keep Connect running when you’re signed out, or you won’t be able to reach the device after it restarts. |
|
Important
|
If you receive a notification email for a device that you don’t recognise, follow the steps in If you don’t recognise a linked device. |
Step 3: Access your device from a browser
-
On your computer, tablet, or phone, sign in to connect.raspberrypi.com with your Raspberry Pi ID.
-
Select the Devices tab. Connect lists all the devices linked to your account.
-
Select Connect via next to the device you want to access, then choose a connection method:
-
Screen sharing, to use your device’s desktop. For more information, see Screen sharing.
-
Remote shell, to use your device’s command line. For more information, see Remote shell.
Connect via only appears when the device offers both screen sharing and remote shell. A Connect Lite device has a single Connect button, which opens a remote shell.
-
Access your device
Edit this on GitHub
After you’ve linked your Raspberry Pi to your Connect account, you can access it from anywhere using a browser, with either of the following methods:
-
Screen sharing: use your device’s desktop.
-
Remote shell: use your device’s command line.
Both methods work whether your Raspberry Pi is on the same network as your browser or on a different network. However, a direct local connection is faster and more responsive than one that goes over the internet or through a relay server.
|
Note
|
When you sign in to the Connect website, your browser or operating system might ask for permission to find or connect to devices on your local network. Allow it. If you don’t, Connect still works, but sessions with devices on your local network can’t use the faster local route. |
Screen sharing
Screen sharing lets you use your Raspberry Pi’s desktop in a browser window, as if you were using a local display, keyboard, and mouse.
Screen sharing requires:
-
The full Connect client (
rpi-connect). Connect Lite doesn’t support screen sharing. -
The Wayland window server. Raspberry Pi OS Bookworm and later use Wayland by default. Screen sharing doesn’t work with systems that use the X window server.
-
A desktop session that’s already running on the device. Connect shares an existing desktop session; it doesn’t start a new one. Raspberry Pi OS with desktop signs in to the desktop automatically by default. If you’ve turned off auto login, someone must sign in on the device before you can share its screen. For more information, see Keep Connect running when you’re signed out.
Start screen sharing
-
Make sure your Raspberry Pi is linked to your Connect account, is powered on, and has finished booting Raspberry Pi OS.
-
On your computer, tablet, or phone, sign in to connect.raspberrypi.com.
-
Select the Devices tab.
Devices that are available for screen sharing show a grey Screen sharing badge below the device name.
-
Select Connect via next to the device you want to access, then select Screen sharing.
A new browser window opens and waits for the device to respond.
When the session starts, the window shows your device’s desktop.
While a screen-sharing session is in progress:
-
A green dot appears on the Screen sharing badge in the Devices tab. Move your cursor over the badge to see how many screen-sharing sessions are active.
-
On the device, a desktop notification appears when the session starts, and the Connect icon in the system tray rotates. To stop the icon rotating, see Turn off icon animation. Notifications are shown through the taskbar, so they only appear on Raspberry Pi OS Desktop while the taskbar is running.
Use the screen-sharing interface
The screen-sharing interface works on both desktop and mobile devices.
Browsers intercept some keys and key combinations, so you can’t enter them directly in the screen-sharing window. Instead, use the buttons at the bottom left of the interface:
-
Keyboard. Shows or hides the on-screen keyboard. Appears only on mobile devices.
-
Ctrl. Holds down the Ctrl key.
-
Super key. Holds down the Super key.
-
Alt. Holds down the Alt key.
-
Esc. Presses and releases the Esc key.
-
Tab. Presses and releases the Tab key.
Use the buttons at the top of the window for the following tasks:
-
Copy from remote. Copy text from your device’s clipboard to your local clipboard.
-
Paste to remote. Copy text from your local clipboard to your device’s clipboard.
-
Enter full screen. Expand the screen-sharing window to fill your screen.
-
Disconnect. End the screen-sharing session.
Screen resolution
Connect shows your device’s desktop at the resolution of its display, scaled to fit your browser window. Where that resolution comes from depends on whether a display is connected to your Raspberry Pi:
-
Display connected. The desktop runs at the resolution of the connected display. Resizing your browser window only scales the image; Connect never changes the resolution of a physical display. To use a different resolution, change it on the device, as described in Configure display settings. You can do this from within a screen-sharing session.
-
No display connected. Raspberry Pi OS creates a virtual display for the desktop. When a screen-sharing session starts, Connect resizes the virtual display to match your browser window, so the desktop fills the window with no scaling. Connect resizes it again whenever you resize the window or switch to full-screen mode, and replaces any resolution you set on the device the next time the window changes size. If you need the desktop to stay at a fixed resolution, for example for a kiosk, connect a display.
Connect only resizes the virtual display for one session at a time. The first session to connect controls the resolution for as long as it’s connected, and other sessions show the same desktop scaled to fit their windows. When the controlling session disconnects, the next session to change its window size takes over.
Stop screen sharing
To end a screen-sharing session, select Disconnect at the top of the screen-sharing window.
Allow and disallow screen sharing
Screen sharing is allowed by default. If you disallow screen sharing, your device stays linked and signed in to Connect, but nobody can start a screen-sharing session with it until you allow screen sharing again. Remote shell access isn’t affected.
|
Warning
|
If you disallow both screen sharing and remote shell access from within a Connect session, you can’t use Connect to reach the device again until you allow one of them from the device itself. To do that without being physically present, you need another remote access method, such as SSH. |
-
Desktop
-
Command line
On your Raspberry Pi, select the Connect icon in the system tray, then:
-
To disallow screen sharing, deselect Allow Screen Sharing.
-
To allow screen sharing, select Allow Screen Sharing.
On your Raspberry Pi, open a terminal, then:
-
To disallow screen sharing, run the following command:
$ rpi-connect vnc off -
To allow screen sharing, run the following command:
$ rpi-connect vnc on
To check the change, sign in to connect.raspberrypi.com and select the Devices tab. When screen sharing is disallowed, the Screen sharing badge and the Screen sharing option in the Connect via menu are crossed out.
Remote shell
Remote shell gives you access to your Raspberry Pi’s command line in a browser window. It works with both Connect and Connect Lite.
Start a remote shell session
-
On your computer, tablet, or phone, sign in to connect.raspberrypi.com.
-
Select the Devices tab.
Devices that are available for remote shell access show a grey Remote shell badge below the device name.
-
Select Connect via next to the device you want to access, then select Remote shell.
On a Connect Lite device, there’s a single Connect button instead of Connect via. Select Connect to open the remote shell.
A new browser window opens and waits for the device to respond.
When the session starts, the window shows a shell prompt on your device.
While a remote shell session is in progress:
-
A green dot appears on the Remote shell badge in the Devices tab. Move your cursor over the badge to see how many remote shell sessions are active.
-
On Raspberry Pi OS Desktop, a desktop notification appears when the session starts, as long as the taskbar is running.
Some things to know about remote shell sessions:
-
Each remote shell session is a new login session, like an SSH connection. To keep commands running or keep configuration across sessions, use
screenortmux. -
On some operating systems, the browser intercepts key combinations such as Ctrl+Shift+C and Ctrl+C. Use the right-click menu, or Ctrl+Insert to copy and Shift+Insert to paste.
-
Connect sets the
CONNECT_TTYenvironment variable in remote shell sessions, so that scripts can detect that they’re running in one.
End a remote shell session
To end a remote shell session, run the exit command, or close the browser window.
Allow and disallow remote shell access
Remote shell access is allowed by default. If you disallow remote shell access, your device stays linked and signed in to Connect, but nobody can start a remote shell session with it until you allow remote shell access again. Screen sharing isn’t affected.
|
Warning
|
If you disallow both screen sharing and remote shell access from within a Connect session, you can’t use Connect to reach the device again until you allow one of them from the device itself. To do that without being physically present, you need another remote access method, such as SSH. |
-
Desktop
-
Command line
On your Raspberry Pi, select the Connect icon in the system tray, then:
-
To disallow remote shell access, deselect Allow Remote Shell Access.
-
To allow remote shell access, select Allow Remote Shell Access.
On your Raspberry Pi, open a terminal, then:
-
To disallow remote shell access, run the following command:
$ rpi-connect shell off -
To allow remote shell access, run the following command:
$ rpi-connect shell on
To check the change, sign in to connect.raspberrypi.com and select the Devices tab. When remote shell access is disallowed, the Remote shell badge and the Remote shell option in the Connect via menu are crossed out.
Keep Connect running when you’re signed out
The Connect client runs as part of your user account, not as root. By default, it only runs while you’re signed in to your Raspberry Pi. If you reboot a device that doesn’t sign in automatically, the client doesn’t start and you can’t reach the device through Connect.
To keep the Connect client running even when you aren’t signed in, turn on user lingering for your account. Lingering is a systemd feature that keeps a user’s services running after they sign out. Run the following command from your user account:
$ loginctl enable-linger
This keeps remote shell access available at all times.
|
Tip
|
We recommend turning on lingering for all headless Raspberry Pi OS Lite setups, so that your device stays reachable after a remote reboot. |
Lingering doesn’t start a desktop session, so whether screen sharing is available after a restart depends on desktop auto login:
-
With auto login turned on, which is the default for Raspberry Pi OS with desktop, the device signs in to the desktop when it starts up, so screen sharing and remote shell are both available. Anyone with physical access to the device can also use it without a password.
-
With auto login turned off, screen sharing isn’t available after a restart until someone signs in on the device. Remote shell still works if you’ve turned on lingering.
If other people might have access to your Raspberry Pi, for example in a shared office, a classroom, or a public place, we recommend turning off auto login. For instructions, see Require a password from startup.
Remotely update your devices
Edit this on GitHub
Connect can update your Raspberry Pi devices by pushing updates to them remotely. Remote updates are useful for devices that are behind a firewall, physically remote, or hard to reach.
To update a device remotely:
-
Opt the device in to remote updates.
-
Build an update artefact: either a script artefact or an A/B boot update.
-
Deploy the artefact from the Connect website, then monitor and verify the deployment.
If your devices belong to a Connect for Organisations account, you have more options. An organisation keeps a library of artefacts that you can deploy more than once, and you can host an artefact yourself instead of uploading it, so that the artefact doesn’t expire while you wait for a device to come online. For more information, see Deploy remote updates in an organisation.
Choose an update type
Connect supports two types of update artefact:
| Script artefact | A/B boot update | |
|---|---|---|
What it does |
Runs a shell script as root on the device. |
Replaces the entire operating system. |
Suitable for |
Maintenance tasks, such as upgrading packages, changing configuration, or installing software. |
Complete, versioned operating system images. |
If the update fails |
No automatic recovery. Test your scripts carefully before you deploy them. |
The device automatically reverts to the previous working version. |
Device setup |
Works on a standard installation of Raspberry Pi OS. |
You must first image the device with an A/B boot layout, which needs physical access to the device. |
Supported devices |
Any Raspberry Pi that runs Connect. |
Raspberry Pi 4 and later. |
Build tool |
Opt a device in to or out of remote updates
A device can only receive remote updates if it’s opted in. In the Connect website, devices that are opted in show a Remote update badge, and a Deploy button in the Devices tab.
The device must be:
-
Connected to the internet.
-
Linked to your Connect account and signed in.
-
Running the latest version of Connect or Connect Lite, with the
rpi-connect-otapackage installed.
|
Note
|
If you’re setting up an A/B boot update, the example image that rpi-image-gen builds opts the device in for you, so you can skip this section.
|
To opt a device in:
-
Install or update Connect and the
rpi-connect-otapackage:$ sudo apt update $ sudo apt install rpi-connect rpi-connect-otaEnter your password if prompted. If you use Connect Lite, install
rpi-connect-liteinstead ofrpi-connect. -
Opt in to remote updates using the
ota(over-the-air) subcommand:$ rpi-connect ota onThe command needs superuser rights, so enter your password if prompted. It also restarts Connect, which ends any active screen-sharing or remote shell sessions, including a remote shell you run it from.
-
Refresh the Devices tab in the Connect website. The Deploy button appears next to the device.
To check from the device, run
rpi-connect status. The output includesRemote update: allowed.
To opt a device out of remote updates, run the following command:
$ rpi-connect ota off
Like ota on, this command asks for your password and restarts Connect, ending any active sessions.
Signing out of Connect doesn’t opt a device out. A device stays opted in until you run rpi-connect ota off.
Build a script artefact
Edit this on GitHub
A script artefact packages a shell script that Connect runs as root on the recipient device. Use script artefacts for maintenance tasks such as upgrading packages, changing configuration, or installing software.
A script artefact doesn’t need a special partition layout, so you can deploy one to any opted-in device that runs a standard installation of Raspberry Pi OS. However, there’s no automatic recovery if a script fails, so test your scripts carefully before you deploy them to remote devices.
Prerequisites
-
A recipient device that’s opted in to remote updates.
-
The
otamakerutility.otamakeris included in therpi-connect-otapackage. To build artefacts on a computer other than a Raspberry Pi, downloadotamakerfrom the utils repository on GitHub.
Step 1: Write the script
Write the shell script you want to run on the recipient device. The script runs as root, so it has full access to the device’s file system.
Use the script’s exit code to report the outcome of the update to Connect:
-
0: the update succeeded. -
2: the update succeeded, and the device must reboot to finish applying it. -
3: reserved. Don’t use this exit code. -
Any other non-zero exit code: the update failed.
Anything the script prints to standard output or standard error is recorded in the recipient device’s systemd journal. You can view it after deployment to verify the update or diagnose a failure.
For example, the following script, saved as aptupgradescript, upgrades all the packages installed on the recipient device, and reboots the device if any of the upgraded packages need a reboot:
#!/bin/sh
export DEBIAN_FRONTEND=noninteractive
if ! apt update; then
echo Package index update failed
exit 1 # EXIT_FAILURE
fi
if apt -y -o DPKG::Options::="--force-confnew" upgrade > output.txt 2>&1; then
if [ -r /var/run/reboot-required ]; then
echo Rebooting to finish the upgrade
exit 2 # EXIT_REBOOT
fi
else
echo Upgrade failed:
echo
cat output.txt
exit 1 # EXIT_FAILURE
fi
echo Upgrade complete
exit 0 # EXIT_SUCCESS
The script saves the output of apt to a file and prints it only if the upgrade fails, so a successful run records just Upgrade complete.
Step 2: Write the manifest
Next, write a YAML manifest that describes the artefact and the payloads it contains.
The following manifest, saved as aptupgrade.yaml, packages the script from Step 1:
# Run apt upgrade on a remote device
artefact:
name: aptupgrade
version: 1.0
device_type: rpi
payloads:
- name: aptupgradescript
type: script
The manifest has two sections:
-
artefact: the artefact’s name and version. -
payloads: the files to package. Atypeofscripttells the recipient device to run the file. By default, each payload’snameis the name of a file in the directory where you runotamaker.
To package a file from another location, add a source field with the file’s path:
payloads:
- name: aptupgradescript
type: script
source: scripts/aptupgradescript
Paths are relative to the directory where you run otamaker. To make them relative to a different directory, use the -C option:
$ otamaker -C /path/to/payloads aptupgrade.yaml
|
Note
|
otamaker still accepts an older form, where the path is a comment after the payload’s name, for example - name: aptupgradescript # scripts/aptupgradescript.
|
Step 3: Build the artefact
Pass the manifest to otamaker:
$ otamaker aptupgrade.yaml
otamaker creates a Zstandard-compressed update artefact (a .tar.zst file) that contains the manifest and the script, and outputs the artefact’s SHA-256 checksum.
Next, deploy the artefact.
Set up A/B boot updates
Edit this on GitHub
An A/B boot update replaces a device’s entire operating system, and prevents a failed or faulty update from leaving the device unusable.
A device configured for A/B boot has two independent slots, each made up of a boot partition and a system partition. One slot holds the current, working operating system; the update is written to the other slot. The device then boots from the updated slot, and if that fails, it reverts to booting from the known working slot. This repeats with each update.
Setting up A/B boot happens in two parts:
-
Prepare the device for A/B boot. You do this once for each device, and it needs physical access to the device, because you must write a new image with an A/B boot layout to its storage.
-
Build an A/B update artefact. You do this for each new version of your operating system. You then deploy the artefact remotely.
You use rpi-image-gen to build both the A/B boot image (an .img file) and the update artefacts (.tar.zst files), and Raspberry Pi Imager to write the image to the device’s storage.
|
Note
|
Raspberry Pi 5 and later devices that use EEPROM boot can also use A/B updates for the bootloader. See A/B bootloader updates. |
Prerequisites
To build the image and update artefacts, you need a Raspberry Pi running:
-
The latest 32-bit or 64-bit version of Raspberry Pi OS (Trixie).
-
The latest version of Connect or Connect Lite.
-
The latest version of Raspberry Pi Imager.
To prepare the recipient device, you need:
-
A Raspberry Pi 4 or later, with an internet connection.
-
A storage device (typically a microSD card) of at least 16 GB, and a way to connect it to the Raspberry Pi you build on.
Choose a size based on how much space you expect to need in future for the boot partition (firmware, kernel, device tree files, and possibly an initramfs) and the system partition (kernel modules and system software, such as the standard Linux command line utilities).
Prepare a device for A/B boot
Standard Raspberry Pi OS installations don’t use an A/B boot layout. In this procedure, you build an A/B boot image with rpi-image-gen, then write it to the recipient device’s storage with Raspberry Pi Imager. The image also opts the device in to remote updates and links it to your Connect account, so you can send it updates remotely from then on.
Step 1: Install rpi-image-gen
-
On the Raspberry Pi you’re building on, clone the
rpi-image-genrepository from GitHub:$ git clone https://github.com/raspberrypi/rpi-image-gen.git -
Go to the cloned directory and install the dependencies. Enter your password if prompted.
$ cd rpi-image-gen $ sudo ./install_deps.sh
Step 2: Configure the image
rpi-image-gen includes an example application, with layers and configuration, that builds an image compatible with remote updates. This procedure uses that example. For descriptions of the metadata in the .yaml files, see X-Env metadata and Layer.
-
Go to the
rpi-image-gendirectory. -
Open
examples/ota/layer/ota.yamland customise the following metadata:-
X-Env-Layer-Name -
X-Env-Layer-Category -
X-Env-Layer-Desc -
X-Env-Layer-Reqs
-
-
Open
examples/ota/config/ota.yamland set the following environment variables:-
Version. The version of the image. Set a starting version number now, and increase it each time you build an update artefact. If you don’t set a version, it defaults to
1.0.0. -
Device hostname. The device’s hostname, used in all images you build for this device. It must be unique. If you don’t set a hostname, each build uses the default,
ota-device-1.
-
-
(Optional) In
examples/ota/config/ota.yaml, you can also:-
Define additional packages to install at build time. For more information, see Packages.
-
Add wireless networking credentials. For more information, see Wireless Networking.
-
Step 3: Create an auth key
The image uses an auth key to link the recipient device to your Connect account. When the device first boots with the new image, it exchanges the auth key for an access token, which it saves in its user data partition. The access token persists across future updates, so you only need an auth key the first time.
Each auth key links one device, so create a new auth key for each recipient device.
Create an auth key in your personal account, or in the organisation that you’re adding the device to, and copy it for use in Step 4.
Step 4: Build the image
-
Go to the
rpi-image-gendirectory:$ cd rpi-image-gen -
Build the image, replacing
rpuak_XXXwith the auth key you created in Step 3. Organisation auth keys start withrpoak_.For Raspberry Pi 5 and later:
$ ./rpi-image-gen build -S ./examples/ota/ -c ota.yaml -- IGconf_connect_authkey=rpuak_XXXFor Raspberry Pi 4:
$ ./rpi-image-gen build -S ./examples/ota/ -c ota.yaml -- IGconf_device_layer=rpi4 IGconf_connect_authkey=rpuak_XXX
rpi-image-gen saves the .img file in the rpi-image-gen/work/image-x.x.x directory, where x.x.x is the version you set in Step 2.
Step 5: Write the image
|
Warning
|
Make sure you choose the right storage device in Raspberry Pi Imager. If the Raspberry Pi you’re building on boots from its microSD card (/dev/mmcblk0), don’t write to that card, or you’ll overwrite its operating system. Only write to /dev/mmcblk0 if your Raspberry Pi boots from another device, such as an NVMe SSD.
|
-
If Raspberry Pi Imager isn’t installed, install it. Enter your password if prompted.
$ sudo apt install rpi-imager -
Open Raspberry Pi Imager from the Accessories menu. Enter your password if prompted.
-
Select the recipient device type, Raspberry Pi 4 or Raspberry Pi 5, then select Next.
-
On the OS tab, go to the bottom of the list and select Use custom. For more information, see Write an image file from your computer.
-
Go to the
.imgfile you built in Step 4, select it, then select Open. -
Select Next, then choose the storage device to write the image to.
-
Select Write, then follow the on-screen prompts.
-
When Imager finishes writing, select Finish, then remove the storage device.
Step 6: Boot the recipient device
-
Power off the recipient device.
-
Insert or attach the storage device you wrote in Step 5.
-
Power on the recipient device, and wait for it to boot with the new image.
-
Sign in to connect.raspberrypi.com, then go to the Devices tab.
The device appears, with a Remote update badge beneath its name.
-
Check that the device is running the version you set in Step 2. Open a remote shell on the device, then run the following command:
$ cat /etc/rpi-issueThe output is similar to the following:
Generated using rpi-image-gen e3828f885c860f15991468883d3b8484b0eaf9d8 on 2025-12-09 Artefact version: 1.0.0
The device is now ready to receive remote updates.
Build an A/B update artefact
After the device is set up for A/B boot, build an update artefact for each new version of your operating system. Update artefacts are .tar.zst files, much smaller than the .img file you used to prepare the device.
This procedure continues the example from Prepare a device for A/B boot. If you use your own configuration, change the paths and file names to match.
-
Increase the Version environment variable in the configuration file:
$ ${EDITOR:-vi} ./examples/ota/config/ota.yaml -
Build the update artefact:
$ ./rpi-image-gen build -S ./examples/ota/ -c ota.yaml
rpi-image-gen generates a deploy bundle, which includes the update artefact (a .tar.zst file) and other assets. It writes the deploy bundle to the directory set by IGconf_deploy_dir. This deploy directory is the canonical location for production device assets. You upload the .tar.zst file from the deploy directory when you deploy the update.
Next, deploy the artefact.
Deploy an update
Edit this on GitHub
After you’ve built a script artefact or an A/B update artefact, use the Connect website to deploy it to a device. You upload the artefact as part of the deployment, and Connect passes it to the recipient device.
|
Note
|
If the recipient device belongs to an organisation, follow Deploy remote updates in an organisation instead. |
Deployments always start from the device you want to update:
-
Sign in to connect.raspberrypi.com.
-
Select the Personal account using the account switcher at the top right.
-
Go to the Devices tab, then select Deploy next to the recipient device.
Deploy only appears for devices that are opted in to remote updates.
The New deployment form opens. It has two steps.
In Step 1: Upload an artefact, upload the artefact you built:
-
Enter a Name for the artefact. Names don’t have to be unique, so use something that helps you recognise the deployment later, such as a version number.
-
Drag the artefact onto the File area, or select browse to choose it. The file must be a Zstandard-compressed tar archive (a
.tar.zstfile) of 2 GB or less. -
Wait for both Checksum and Upload to show Complete.
To choose a different file, select Remove. To stop a file that’s still uploading, select Cancel.
-
Select Next.
In Step 2: Review and deploy, check the name, file, and SHA-256 checksum, then select Deploy. If you spot a mistake, select Back to correct it. This step also shows when the uploaded file expires. If the device already has a queued deployment, this step warns you that deploying cancels it.
The recipient device doesn’t have to be online when you deploy.
|
Important
|
Connect keeps an uploaded artefact for two hours, then deletes it. The deployment only succeeds if the recipient device comes online and downloads the file within those two hours. If it doesn’t, the deployment stays Queued until the device next asks to start it, and is then marked Invalidated. To deploy the artefact after that, upload it again. |
Monitor the deployment
To see the state of a deployment:
-
Sign in to connect.raspberrypi.com.
-
Select the Personal account using the account switcher at the top right.
-
Go to the Devices tab, then select the device you deployed to.
The Deployments section appears after the device has had at least one deployment. It shows Recent activity (the last ten state changes) and an All deployments link.
-
Select an artefact name to see more about the deployment’s state, including any error messages for a failed deployment.
A deployment can be in one of the following states:
-
Queued. Waiting for the recipient device to pick up the update.
-
In progress. The device is applying the update.
-
Succeeded. The device applied the update successfully.
-
Failed. The update failed. See Remote update failures.
-
Cancelled. The update was cancelled before the device applied it. Connect automatically cancels a queued deployment when you deploy another update to the same device.
-
Invalidated. The update can no longer be applied, for example because the uploaded artefact expired.
While a deployment is Queued or In progress, the page updates automatically with its current state.
Cancel a deployment
You can only cancel a deployment that’s Queued.
-
Sign in to connect.raspberrypi.com.
-
Select the Personal account using the account switcher at the top right.
-
Go to the Devices tab, then select the device you deployed to.
-
In the Deployments section, select the deployment you want to cancel, then select Cancel deployment.
-
When your browser asks you to confirm, select OK.
Verify the deployment
When the deployment shows as Succeeded, open a remote shell on the recipient device to check the result.
For a script artefact, view the script’s output in the systemd journal:
$ journalctl -t rpi-ota-connector
For an A/B boot update, check the version of the image the device is running:
$ cat /etc/rpi-issue
The Artefact version in the output is the version you set when you built the update:
Generated using rpi-image-gen e3828f885c860f15991468883d3b8484b0eaf9d8 on 2025-12-09 Artefact version: 1.1.0
Manage devices
Edit this on GitHub
The Connect website lists all the devices linked to your Connect account, and lets you view their details, rename them, and remove them from your account.
To manage the Connect client software on the device itself, such as updating or uninstalling it, see Manage the Connect client.
View your devices
-
Sign in to connect.raspberrypi.com.
-
Select the Devices tab.
Connect lists your linked devices, with badges showing which access methods each device supports.
In an organisation account, you can also search and filter the device list, and add tags to devices.
View device details
Select a device name in the Devices tab to open the device page. This page shows details about the device’s hardware and the Connect client it’s running.
|
Note
|
The device Settings page only appears for users who can administer the device. In an organisation, members don’t see it. |
Rename a device
-
Select the device in the Devices tab.
-
Select Settings on the device page.
-
Enter a new name for the device, then save your changes.
Remove a device from your account
Removing a device unlinks it from your Connect account. Connect also signs out the Connect client on the device: the Connect icon in the system tray turns grey, and the Connect menu shows Sign In… instead of Sign Out.
To remove a device:
-
Select the device in the Devices tab.
-
Select Settings on the device page.
-
Under Danger zone, select Delete device….
-
On the confirmation page, select Delete.
To use the device with Connect again, link it again.
Removing a device is the only way to fully unlink it from your account. To compare removing a device with signing out or uninstalling the Connect client, see Sign out, remove, or uninstall.
Transfer a device to another account
If you’re an administrator of an organisation, you can transfer devices between your personal account and the organisation, or between organisations. For more information, see Transfer a device.
If you don’t recognise a linked device
Connect sends a notification to your Raspberry Pi ID email address whenever a new device is linked to your account. If you receive a notification for a device that you don’t recognise:
-
Sign the device out: select the device in the Devices tab, select Settings, then select Sign out device….
-
Change your Raspberry Pi ID password immediately.
-
Consider turning on two-factor authentication for your Raspberry Pi ID.
Manage the Connect client
Edit this on GitHub
The Connect client is the software on your Raspberry Pi that links it to your Connect account. You can control it from the Connect menu in the system tray, or with the rpi-connect command. If you use Connect Lite, the command is still rpi-connect, but the package name is rpi-connect-lite.
The Connect menu
On Raspberry Pi OS Desktop, select the Connect icon in the system tray to open the Connect menu. From the menu, you can:
-
Turn Connect on and off.
-
Sign in to and out of Connect.
The Connect icon shows the client’s state:
-
Grey. Connect is turned off, or the client isn’t signed in.
-
Blue. The client is signed in, and the device is available through Connect.
-
Rotating. A screen-sharing or remote shell session is in progress. To show a static icon instead, see Turn off icon animation.
Check the Connect client’s status
To check the client’s status, run the following command:
$ rpi-connect status
The output is similar to the following:
Signed in: yes Subscribed to events: yes Screen sharing: allowed (0 sessions active) Remote shell: allowed (0 sessions active)
If the device is opted in to remote updates, the output also includes Remote update: allowed.
The output shows whether the client is signed in to Connect, and whether screen sharing and remote shell access are allowed.
If the output includes Raspberry Pi Connect is not running, run rpi-connect on, turn Connect on with rpi-connect on.
Turn Connect on and off
Turning Connect off disconnects the device from Connect and ends any active sessions. Connect stays off, even after a reboot, until you turn it on again.
Turning Connect off doesn’t change whether screen sharing and remote shell access are allowed when you turn it on again.
-
Desktop
-
Command line
Select the Connect icon in the system tray, then select Turn On Raspberry Pi Connect or Turn Off Raspberry Pi Connect.
To turn Connect on, run the following command:
$ rpi-connect on
To turn Connect off, run the following command:
$ rpi-connect off
Sign out, remove, or uninstall
There are several ways to stop using Connect on a device. They have different effects:
| Action | Where | What happens | To use Connect again |
|---|---|---|---|
On the device, or on the Connect website |
The client signs out. The device stays listed in your account, but you can’t access it. Screen sharing and remote shell access are reset to allowed. |
Sign in again on the device. |
|
On the Connect website |
The device is unlinked from your account, and the client on the device signs out. |
Link the device again. |
|
On the device |
The client is removed. The device stays listed in your account, linked by its serial number, but you can’t access it. |
Reinstall the client. The device reuses its existing name in your account, even with a different microSD card. |
To stop using a device with Connect completely, remove it from your account. You can also uninstall the client if you no longer need it.
Sign out
To sign the Connect client out of your account, do one of the following:
-
On the device, select the Connect icon in the system tray, then select Sign Out.
-
On the device, run the following command:
$ rpi-connect signout -
On the Connect website, select the device in the Devices tab, select Settings, then select Sign out device…. The device stays listed in your account.
Signing out resets screen sharing and remote shell access to allowed. If you’d disallowed either of them, disallow it again after you sign back in. Signing out doesn’t affect remote updates: if the device was opted in, remote updates work again as soon as you sign back in.
Update the client
Updating Connect restarts it, which ends any screen-sharing or remote shell sessions that are in progress.
If you’re connected to your Raspberry Pi through a Connect remote shell, follow the steps in Update over a remote shell.
Otherwise, to update to the latest version of Connect from the desktop or a local terminal, run the following commands and enter your password if prompted:
$ sudo apt update
$ sudo apt install --only-upgrade rpi-connect
If you installed Connect Lite, replace rpi-connect with rpi-connect-lite.
Update over a remote shell
|
Warning
|
Don’t update Connect directly from a remote shell session, including as part of sudo apt full-upgrade. The update ends the session and stops every command started from it, including the update itself, which leaves the package partly installed. Running the update in screen or tmux doesn’t prevent this.
|
Instead, run the update as a background system task, which continues after the session ends:
-
Update the package list, then start the update as a background task:
$ sudo apt update $ sudo systemd-run --collect --unit=rpi-connect-upgrade apt-get -y install --only-upgrade rpi-connectIf you installed Connect Lite, replace
rpi-connectat the end of the second command withrpi-connect-lite.Your session ends when Connect restarts.
-
Start a new remote shell session, then check the result of the update:
$ journalctl -u rpi-connect-upgrade -
Upgrade the rest of your packages as usual:
$ sudo apt full-upgrade
If an earlier update was interrupted, apt reports that dpkg was interrupted. To repair the installation, run the repair as a background task so that it continues if your session ends:
$ sudo systemd-run --collect --unit=rpi-connect-repair dpkg --configure -a
Turn off icon animation
By default, the Connect icon in the system tray rotates while a screen-sharing or remote shell session is in progress. To show a static icon instead:
-
Right-click the Connect icon in the system tray, then select Configure Plugin….
-
Turn off Animate Icon using the toggle.
When a session is in progress, the icon now changes to a solid blue circle instead of rotating.
Auth keys
Edit this on GitHub
An auth key is a single-use, temporary token that links a device to a Connect account without using the Connect website. Auth keys are useful for devices without a display, and for setting up several devices at once.
| Personal account | Organisation | |
|---|---|---|
Prefix |
|
|
Expiry |
Six hours after creation |
Between 1 and 90 days after creation (one day by default) |
Active keys |
One at a time |
Several at once |
Each auth key links one device, so you need a separate auth key for each device. The device must boot and connect to the internet before the auth key expires.
To link many organisation devices without creating an auth key for each, organisations can also use device identities.
Create an auth key
You can create an auth key in any of the following ways:
-
In Raspberry Pi Imager. Imager can create and apply an auth key for you when you write Raspberry Pi OS. For more information, see Raspberry Pi Connect in Raspberry Pi Imager.
-
In a personal account. Use the following procedure.
-
In an organisation. Administrators can create auth keys on the Connect website, as described in Create auth keys in an organisation, or with the management API.
To create an auth key in a personal account:
-
Sign in to connect.raspberrypi.com.
-
Select the Personal account using the account switcher at the top right.
-
Select the Settings tab, then select Create auth key.
Connect creates the auth key immediately.
-
Copy the auth key.
ImportantConnect only shows the auth key once. Copy it now, because you can’t view it again later.
A personal account can only have one usable auth key at a time. While a key is usable, the Settings tab only offers Delete auth key. When the key has been used or has expired, select Create new auth key to replace it.
To use the auth key, see the Auth key tab in Turn on Connect and link your device.
Troubleshooting
Edit this on GitHub
If you’re experiencing any issues with Connect, this section helps you diagnose and fix them. It also explains how to view logs for the Connect client and its WayVNC server.
Known issues
-
Multiple displays. Screen sharing only supports sharing a single, primary display. If your Raspberry Pi is connected to more than one HDMI display, Connect sometimes shares the secondary display. To work around this, right-click the desktop, select Desktop Preferences…, and change the location of the taskbar.
-
Older browsers. Connect needs a browser that supports ECMAScript 2022 (ES13).
-
Intercepted keys. Browsers intercept some keys and key combinations, so you can’t enter them in a Connect window. Screen sharing includes buttons for the most common ones. For more information, see Use the screen-sharing interface.
-
Updating over a remote shell. Updating Connect ends all remote shell sessions, and stops an update that was started from one. For more information, see Update over a remote shell.
-
Upgrading from version 1 to version 2. Before you switch between
rpi-connectandrpi-connect-lite, upgrade the package you currently have installed, so that Connect’s services migrate to the version 2 format. If you haverpi-connectinstalled, run the following command and enter your password if prompted:$ sudo apt install --only-upgrade rpi-connectIf you have
rpi-connect-liteinstalled, run the following command instead:$ sudo apt install --only-upgrade rpi-connect-liteDuring the upgrade, output similar to the following shows that the services have migrated:
Replacing globally-enabled rpi-connect services with user-enabled ones...
Diagnose problems with rpi-connect doctor
The rpi-connect doctor command checks that your device meets the requirements for screen sharing, and that Connect can communicate on your network. It works with both Connect and Connect Lite.
Run the following command on the device:
$ rpi-connect doctor
If all the checks pass, the output is similar to the following:
Screen sharing is supported by this version of rpi-connect ✓ Wayland compositor available ✓ Screen sharing services enabled and active ✓ Communication with Raspberry Pi Connect WebSocket server ✓ Communication with Raspberry Pi Connect API ✓ Authentication with Raspberry Pi Connect API ✓ Peer-to-peer connection candidate via STUN ✓ Peer-to-peer connection candidate via TURN
If a check fails, it’s marked with ✗, often with a suggested fix. For example:
Screen sharing is supported by this version of rpi-connect ✓ Wayland compositor available ✗ Screen sharing services enabled and active - Please run rpi-connect on to enable and start all required services ✓ Communication with Raspberry Pi Connect WebSocket server ✓ Communication with Raspberry Pi Connect API ✓ Authentication with Raspberry Pi Connect API ✓ Peer-to-peer connection candidate via STUN ✓ Peer-to-peer connection candidate via TURN ✗ Some checks failed
On Connect Lite, the first line of the output says that screen sharing isn’t supported by this version of rpi-connect, and there are no Wayland or screen-sharing service checks.
For failed screen-sharing checks, see Screen sharing not available. For failed communication checks, see Networking and firewall issues.
Common issues
Screen sharing not available
If Connect says that screen sharing is unavailable, the device doesn’t meet one or more requirements for screen sharing. Run rpi-connect doctor to find out which.
If the screen-sharing service repeatedly fails to run, check its status in more detail:
$ systemctl --user status rpi-connect-wayvnc.service
$ journalctl --follow --user-unit rpi-connect-wayvnc.service
If the service fails to start or doesn’t exist, make sure that:
-
You’re using
rpi-connectversion 1.1.0 or later. -
You’re using
rpi-connect, notrpi-connect-lite, which doesn’t support screen sharing. -
You’re using a Wayland compositor such as wayfire or labwc, not X. You can change this in the Advanced Options in
raspi-config. -
You’re using a desktop environment that WayVNC supports, such as Raspberry Pi Desktop. For example, KDE uses the kwin compositor, which isn’t supported.
-
A graphical desktop session is running as the same user that signed in to Connect. Raspberry Pi OS with desktop signs in to the desktop automatically by default. If you’ve turned off auto login, sign in on the device. For the trade-offs, see Keep Connect running when you’re signed out.
Can’t connect after restarting or ending an SSH session
The Connect client runs as part of your user account, so it only runs while that user has an active login session. If you want remote shell access without keeping another session signed in, keep Connect running when you’re signed out.
Screen sharing can only share an existing desktop session; it doesn’t start a new one. If you’ve turned off desktop auto login, someone must sign in on the device after each restart. For the trade-offs, see Keep Connect running when you’re signed out.
Networking and firewall issues
Connect usually works without any changes to your network or firewall. However, especially restrictive networks can block it. Run rpi-connect doctor to check that Connect can communicate on your network.
If any communication checks fail, ask your network administrator to allow the following connections:
-
HTTPS requests on port 443 to the Connect API and WebSocket server:
api.connect.raspberrypi.comandws.connect.raspberrypi.com. -
Requests on UDP port 3478 to all of the following STUN and TURN servers:
-
stun.raspberrypi.com -
turn1.raspberrypi.com -
turn2.raspberrypi.com -
turn3.raspberrypi.com
-
-
Requests on TCP port 3478 or 443 to all of the following TURN servers:
-
turn1.raspberrypi.com -
turn2.raspberrypi.com -
turn3.raspberrypi.com
-
-
Requests on UDP port 3478, 443, or 49152–65535 to all of the following TURN servers:
-
turn1.raspberrypi.com -
turn2.raspberrypi.com -
turn3.raspberrypi.com
-
Remote update failures
If deploying a script artefact or an A/B boot update fails, check the following common faults and fixes. You can also refer to the rpi-image-gen documentation, or ask on the Raspberry Pi Troubleshooting forum.
|
Tip
|
To find more information about an error, open a remote shell on the device and view the systemd journal with journalctl. For a script artefact, journalctl -t rpi-ota-connector shows the script’s output.
|
| Problem | Suggested fix |
|---|---|
|
The recipient device can’t reach the update file. Check that the device still has internet access. For a device in an organisation that uses a self-hosted artefact, open a remote shell on the device, then use
|
|
The file isn’t Zstandard-compressed. Make sure that you deployed a |
|
The file is Zstandard-compressed, but isn’t a tar archive. Build the artefact with |
|
The artefact is a valid |
|
You deployed an A/B boot update to a device that doesn’t have an A/B boot layout. Prepare the device for A/B boot first, or use a script artefact instead. |
|
The file’s contents don’t match its SHA-256 checksum. For a self-hosted artefact, check that the checksum you entered matches the file, for example with |
The deployment shows as Invalidated, with the reason |
Connect keeps an uploaded artefact for two hours, then deletes it, and the device didn’t download the file before then. The deployment is marked Invalidated when the device next asks to start it; until then, it shows as Queued. Check that the device is online, then upload and deploy the artefact again. |
A script artefact deployment shows as Failed. |
The script reported a failure or didn’t complete. View the script’s output with |
No Deploy button appears next to the device. |
Check the following:
|
Logs
Turn on detailed logging
You can turn on debug logging for both the Connect client and its dedicated WayVNC server, for a detailed record of what Connect does on your Raspberry Pi.
Detailed logging for the Connect client
Add the environment variable RPI_CONNECT_VERBOSE=1 to /etc/default/rpi-connect, then restart Connect:
$ rpi-connect restart
For Connect versions earlier than 2.7, override the rpi-connect service definition instead:
-
Run the following command:
$ systemctl --user edit rpi-connect -
Enter the following lines between the comments:
[Service] ExecStart= ExecStart=/usr/bin/rpi-connectd -socket %t/rpi-connect-wayvnc.sock -vIf you use Connect Lite, use the following line instead of the second
ExecStart=line:ExecStart=/usr/bin/rpi-connectd -vNoteYou need both lines that begin with ExecStart=. -
Restart Connect:
$ rpi-connect restart
Detailed logging for the WayVNC server
-
Override the
rpi-connect-wayvncservice definition:$ systemctl --user edit rpi-connect-wayvnc -
Enter the following lines between the comments, including the
-Ldebugflag:[Service] ExecStart= ExecStart=/usr/bin/rpi-connect-env /usr/bin/wayvnc --config /etc/rpi-connect/wayvnc.config --render-cursor --unix-socket --socket=%t/rpi-connect-wayvnc-ctl.sock -Ldebug %t/rpi-connect-wayvnc.sockNoteYou need both lines that begin with ExecStart=. -
Restart Connect:
$ rpi-connect restart
View logs
To view logs for the Connect client and its WayVNC server, run the following command:
$ journalctl --follow --user-unit rpi-connect.service --user-unit rpi-connect-wayvnc.service
To check whether the client is running and signed in, see Check the Connect client’s status.
Security and privacy
Edit this on GitHub
All connections between your Raspberry Pi devices and your browser use WebRTC: the same real-time communication technology used by Zoom, Microsoft Teams, and Google Meet.
End-to-end encryption
All screen sharing and remote shell access traffic is encrypted using DTLS between your Raspberry Pi device and your browser. We don’t (and can’t) decrypt the traffic, ensuring your data remains private.
Every screen-sharing and remote shell session uses a new WebRTC peer connection. For each connection, the Connect client on your Raspberry Pi device generates a fresh public and private key pair in memory, and your browser generates its own. The device never writes its private key to disk or sends it anywhere, and discards it when the session ends. The device and browser exchange their public keys and derive the keys that encrypt the session in a handshake directly between them, so our servers can’t derive those keys. The only key-related information that passes through our API is the fingerprint of each public certificate, which doesn’t allow decryption.
Everything in a session travels over this single encrypted channel: screen frames, keyboard and mouse input, clipboard data, remote shell input and output, and any credentials you enter during the session. None of this passes through our API. The API only exchanges the information needed to set up the connection, and receives device state such as whether the device is online, whether screen sharing is enabled, and the number of active sessions. Connection info, screen sharing status, and session count are encrypted at rest in our database.
Furthermore, traffic is mostly peer-to-peer, meaning that the encrypted traffic doesn’t pass through our infrastructure. Instead, the encrypted traffic is sent directly between your Raspberry Pi device and your browser. This makes it impossible for us to observe it.
Relay servers
In situations where direct peer-to-peer connections can’t be made (for example, due to networking issues), only encrypted data is relayed through one of our TURN servers. These servers are hosted in London and California. Only your device and your browser hold the keys to decrypt this data, and it’s neither logged nor stored.
Connect selects a relay for your device and for your browser separately, based on the continent of each one’s IP address. Devices and browsers in Europe and Africa use the relays in London; those in the Americas, Asia, and Oceania use the relay in California. If the location can’t be determined, London is used. If your device and browser are assigned different relays, the session can be relayed through either or both of them.
Connect has no setting to restrict which relays are used or to turn off relaying. If you require direct peer-to-peer connections only, you can block traffic to the TURN servers listed in Networking and firewall issues. Connect then only works between devices and browsers that can reach each other directly.
Connection setup
The Raspberry Pi Connect API temporarily stores the WebRTC offer and answer required to negotiate a connection, including the IP addresses and ports of your device and browser. All traffic to this API is encrypted using HTTP over TLS, supporting only TLS 1.2 and newer for security. This ensures that connection information is never sent in the clear. This metadata is encrypted and stored securely for at most one minute.
The offer from your browser is encrypted and stored. It is never parsed or rewritten. Only the Connect web application, acting on behalf of a signed-in user, can create an offer; devices can’t.
A session can only be started by a user who is signed in with a Raspberry Pi ID that owns the device, or that belongs to the organisation that owns it, and who has authenticated with Raspberry Pi ID within the past hour.
Data retention
Connect retains only the metadata needed to operate the service.
| Data | Retention |
|---|---|
IP addresses |
Not stored. IP addresses are used in memory to select the nearest relay and for rate limiting, and are included once in the notification email sent when a new device is linked. Audit log events store only the two-letter country code derived from the IP address. |
Connection setup information (WebRTC offers and answers) |
At most one minute, encrypted at rest |
Device heartbeat and state |
Current state only; no history is kept |
Device data (serial number, model, OS name and version, architecture, Connect version, hostname, and last seen time) |
For as long as the device is linked to an account; deleted with the device or the account |
Account data (name and email address) |
Encrypted at rest and held for the life of the account; deleted with the account |
Organisation audit log, including the start of each screen-sharing and remote shell session with its timestamp, user, device, and country code |
90 days |
For Connect for Organisations customers, we provide an audit log to review activity from the past 90 days. Personal accounts have no connection log.
Security assessments
In January 2025, penetration testing and security analysts at Cure53 assessed the Raspberry Pi Connect web application and infrastructure, Raspberry Pi ID, and versions 2.2 to 2.3 of the Connect client software. You can read the full report on the Cure53 site.
For more details on WebRTC security, see A Study of WebRTC Security.
Security notifications
To be notified by email of significant security vulnerabilities in Raspberry Pi products, including Connect, subscribe using the Be notified of security vulnerabilities form on our security page.
To report a vulnerability, see Reporting a vulnerability.
Sub-processors
Raspberry Pi Ltd uses the following third parties to process personal data to provide Connect. None of them can access the contents of screen-sharing or remote shell sessions, which are end-to-end encrypted between your Raspberry Pi device and your browser.
| Sub-processor | Purpose | Personal data | Location |
|---|---|---|---|
Hosting of the Connect service, including its database, email delivery, and TURN relay servers |
All account and device data held by Connect, IP addresses, and encrypted session traffic when a relay is used |
United Kingdom. The California TURN relay is in the United States, but it only forwards encrypted session traffic and stores nothing. |
|
Caching and delivery of static assets (images, stylesheets, and scripts) for the Connect website |
IP addresses and browser details of requests for static assets |
Global edge network |
|
Analytics warehouse (Google Cloud) and product analytics (Google Analytics) |
Account and device records (names and email addresses remain encrypted), and pseudonymous usage events containing device and session identifiers |
European Union (warehouse) and United States (analytics) |
|
Error monitoring |
Technical error reports, which can include device and organisation identifiers |
United States |
|
Geolocation of the IP address shown in the notification email when a new device signs in |
IP addresses |
United States |
|
Payment processing for Connect for Organisations subscriptions |
Billing contact details and payment information |
United States and Ireland |
|
Customer support |
Name, email address, and the contents of support requests |
United States |
This list was last updated on 15 September 2026.