Manage the Connect client

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:

The Connect menu in the system tray, showing the Turn On Raspberry Pi Connect option.

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

Select the Connect icon in the system tray, then select Turn On Raspberry Pi Connect or Turn Off Raspberry Pi Connect.

Command line

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

Sign out

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.

Remove 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.

Uninstall the client

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.

Uninstall the client

To stop and remove the Connect client, run the following command, and enter your password if prompted:

$ sudo apt remove --purge rpi-connect

If you installed Connect Lite, replace rpi-connect with rpi-connect-lite.

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

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:

  1. 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-connect

    If you installed Connect Lite, replace rpi-connect at the end of the second command with rpi-connect-lite.

    Your session ends when Connect restarts.

  2. Start a new remote shell session, then check the result of the update:

    $ journalctl -u rpi-connect-upgrade
  3. 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:

  1. Right-click the Connect icon in the system tray, then select Configure Plugin…​.

    The right-click menu of the Connect icon, showing the Configure Plugin option.
  2. Turn off Animate Icon using the toggle.

    The Connect plugin settings, showing the Animate Icon toggle.

When a session is in progress, the icon now changes to a solid blue circle instead of rotating.

The system tray, showing the Connect icon as a solid blue circle during a remote shell session.