---
title: "Install the Desktop Agent"
description: "Install the Desktop Agent on macOS, Linux or Windows with one command, check it with doctor and status, and update it later."
canonical: "https://conbridge.app/docs/desktop-agent/install"
updated: "2026-11-17"
author: "ConBridge"
---

# Install the Desktop Agent

The Desktop Agent connects a computer or server you own to ConBridge. It makes an outbound WebSocket connection to the Gateway, so no inbound port has to be opened.

## Before you start

Open **New Connect** in the Console to get a one-time pairing code. The agent is the `conbridge-agent` npm package and needs Node.js 22 or later. The installer scripts download the official Node.js 22 build into `~/.conbridge/node` when none is installed, check it against nodejs.org's checksums and need no administrator rights.

macOS 13 or later and Linux (desktops, servers and Raspberry Pi 2 or later) are the main targets. Windows uses the PowerShell installer below; ConBridge has not yet recorded an install on a real Windows machine.

## Install with one command

| System | Command |
|---|---|
| macOS, Linux | `curl -fsSL https://mcp.conbridge.app/install.sh \| sh -s -- --code XXXX-XXXX` |
| Windows (PowerShell) | `& ([scriptblock]::Create((irm https://mcp.conbridge.app/install.ps1))) -Code XXXX-XXXX` |
| Any system with Node.js 22 or later | `npx conbridge-agent@latest pair --code XXXX-XXXX` |

Add `--name "My server"` to the shell and npx commands to choose the name shown in the Console; the default is the computer's name. The steps are the same everywhere. The agent copies itself into `~/.conbridge/agent`, prints a fingerprint and waits until you approve the pairing in the Console. It then installs the background service and starts it. With `pair`, add `--no-service` to skip the service.

On a Mac you can also connect from the Console without a terminal: it opens a `conbridge://pair` link in the ConBridge app, which asks you to confirm and to choose folders.

## Check the installation

```sh
conbridge-agent doctor
conbridge-agent status
```

`doctor` checks Node.js, pairing, the device key, the Gateway, the service, whether the agent runs, shared folders, full access and keep-awake. `status --json` gives the same facts to scripts. A new terminal finds `conbridge-agent` on the PATH. In a terminal that was already open, run the same commands through npx:

```sh
npx --yes conbridge-agent@latest <command>
```

## The background service

| System | Service | Starts |
|---|---|---|
| macOS | LaunchAgent `com.conbridge.agent` | at login |
| Linux, as a user | systemd user unit `conbridge-agent.service` | at boot when lingering is enabled, else at login |
| Linux, as root | system unit `conbridge-agent.service` | at boot |
| Linux without systemd | crontab `@reboot` entry running `supervise` | at boot |
| Windows | Task Scheduler task `ConBridge Agent` | at sign-in |

A Mac is reachable only while its user is logged in, because the agent is a LaunchAgent and not a system daemon. A closed laptop lid or a manual sleep suspends the computer; the agent reconnects when it wakes. Work for an offline target fails with `TARGET_OFFLINE`; it is never sent to another device.

```sh
conbridge-agent logs -f
```

## Update

```sh
curl -fsSL https://mcp.conbridge.app/install.sh | sh -s -- update
```

You can also update through npx:

```sh
npx --yes conbridge-agent@latest update
```

Both keep the identity and settings and restart the service on the new version.

Next: choose what the agent may do in [Desktop Agent permissions](/docs/desktop-agent/permissions).
