> For the complete documentation index, see [llms.txt](https://docs.roboflow.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.roboflow.com/deployment/roboflow-cloud/cloud-streaming/install-a-connector.md).

# Install a Connector

Install and run the Roboflow Video Connector on macOS, Linux, Windows, or Docker.

The Roboflow Video Connector connects cameras on your computer or local network to Cloud Streaming. Run it on a machine that can reach the cameras and stay online while they are in use. Model inference runs in Roboflow's cloud, not in the connector.

After installation, [connect a source](https://docs.roboflow.com/deployment/roboflow-cloud/cloud-streaming/connect-a-source.md).

## Phone App

To stream from a phone, you don't need a connector. Install the [Roboflow Outpost App](https://docs.roboflow.com/deployment/roboflow-cloud/cloud-streaming/outpost-app.md) on the phone instead. It streams the phone's camera, or IP cameras on the same network, to Cloud Streaming.

## Before you start

Open "Deployments", then "Cloud Streaming", then "Add Video Source", then "Connect a Camera". If the workspace already has a connector, click "Add a new connector". Pick your OS tab, click "Copy Command", and run it: the command includes your workspace API key. Do not paste keys into chat, source control, or screenshots.

Native archives cover macOS and Linux on x86-64 and ARM64, and Windows on x86-64. Linux needs glibc 2.28 or later and GnuTLS (`libgnutls30` or `gnutls`).

The connector finds USB cameras on all three. On Linux it finds V4L2 devices only.

## CLI

### Install on macOS or Linux

Run the public installer:

```sh
curl --proto =https --proto-redir =https -fsSL https://repo.roboflow.com/rfv-connector/latest/install.sh | sh
~/.rfv-connector/rfv-connector --version
```

The installer detects your operating system and architecture, then checks the selected release's checksums before installing. The executable is `~/.rfv-connector/rfv-connector`; `~/.rfv-connector` alone is a directory.

The installer does not add the executable to your PATH. To use the shorter command in your current terminal:

```sh
export PATH="$HOME/.rfv-connector:$PATH"
rfv-connector --version
```

Add that export to your shell's startup file (ex: `~/.zshrc`) for future terminals.

An EU download mirror is also available:

```sh
curl --proto =https --proto-redir =https -fsSL https://repo.roboflow.eu/rfv-connector/latest/install.sh | RFV_DOWNLOAD_BASE=https://repo.roboflow.eu/rfv-connector sh
```

This changes where installation files download from. It does not select a processing region or change the API endpoint.

### Install on Windows

In PowerShell, run the installer, then check the version:

```powershell
irm https://repo.roboflow.com/rfv-connector/latest/install.ps1 | iex
& "$env:USERPROFILE\.rfv-connector\current\rfv-connector.exe" --version
```

You can also click "Download Installer" on the "Windows" tab of the setup dialog to get `roboflow-connector.bat`. Double-click it to install and start the connector.

To install from the ZIP archive instead:

1. Select a version from the public [release version pointer](https://repo.roboflow.com/rfv-connector/latest/LATEST_VERSION.txt).
2. Download `rfv-connector_windows_amd64.zip` and `checksums.txt` from the same versioned directory, `https://repo.roboflow.com/rfv-connector/<VERSION>/`. Use the pointer's version including its `v` prefix (ex: `v0.11.0`).
3. In PowerShell, calculate the archive's checksum:

```powershell
Get-FileHash .\rfv-connector_windows_amd64.zip -Algorithm SHA256
```

4. Compare it with the exact ZIP filename's SHA256 in `checksums.txt`. Do not run the archive if the checksum is missing or different.
5. Extract the whole archive to a permanent folder. Keep `ffmpeg.exe`, source files, and notices with the executable.

Releases are not code-signed, so macOS or Windows can warn you. If your organization allows it, click "Open Anyway" in "Privacy & Security" (macOS) or "More info", then "Run anyway" (Windows).

### Start and configure the connector

Run the command from the setup dialog, or set your workspace key in `ROBOFLOW_API_KEY` and start the connector:

```sh
~/.rfv-connector/rfv-connector --api-key "$ROBOFLOW_API_KEY"
```

On Windows, in PowerShell:

```powershell
& "$env:USERPROFILE\.rfv-connector\current\rfv-connector.exe" --api-key "$env:ROBOFLOW_API_KEY"
```

If you installed from the ZIP archive, run `.\rfv-connector.exe` from the extracted folder instead.

To add RTSP cameras at startup, add `--rtsp "name=rtsp://..."` once per camera. You can also add cameras later from the app.

The connector also runs a local page at `http://127.0.0.1:8070` to set the key, toggle sources, and add RTSP cameras. Add `--no-ui` to turn it off.

Allow camera access for the application or terminal that launches the connector when your OS asks. On Linux, the launching user must be allowed to read the camera's capture device. Use your system's device-access policy rather than making all devices writable.

Return to the setup dialog and check that the connector is connected. If a connector was already online, the dialog confirms when a new camera from it appears. Its cameras then appear in the source list. Continue with [source setup](https://docs.roboflow.com/deployment/roboflow-cloud/cloud-streaming/connect-a-source.md).

<figure><img src="https://1583372177-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoksNmwps1HmYr8TqHDnX%2Fuploads%2Fgit-blob-891a6980b60e4b2db8de7e19117ee9619ea1f59a%2Fcloud-streaming-shot02-connector-connected.png?alt=media" alt="Connector setup dialog with its API key redacted and a successful connection."><figcaption><p>Run the connector and wait for the connection confirmation.</p></figcaption></figure>

### Keep it running

The connector stops when you close its terminal or the computer sleeps. Run it as a system service or with Docker, and run only one copy at a time.

## Docker

Pin a release tag. This example keeps the connector's identity in a named volume:

```sh
docker run -d --name rfv-connector \
  --restart unless-stopped \
  -v rfv-connector-state:/state \
  repo.roboflow.com/rfv-connector:0.11.0 \
  --api-key "$ROBOFLOW_API_KEY"
```

Set `ROBOFLOW_API_KEY` before running the command. Return to "Deployments", then "Cloud Streaming", to confirm the connector is connected and [add cameras](https://docs.roboflow.com/deployment/roboflow-cloud/cloud-streaming/connect-a-source.md#rtsp-and-onvif-cameras).

On Docker's bridge network, ONVIF discovery cannot see your LAN: add cameras by RTSP URL, or use `--network host` on Linux with `--ui-addr=127.0.0.1:8070`.

For Linux USB cameras, pass the devices (ex: `--device /dev/video0`). Docker on macOS cannot use the host webcam.

Keep `/state` on persistent storage. Mount the directory, not just `connector.json`. Do not give simultaneous installations the same state volume.

## Preserve state when updating

The installation directory contains the binaries. The data directory separately holds configuration and identity:

<table data-search="false"><thead><tr><th>Installation</th><th>Default data directory</th></tr></thead><tbody><tr><td>macOS</td><td>~/Library/Application Support/rf-video-connector</td></tr><tr><td>Linux</td><td>$XDG_STATE_HOME/rf-video-connector, or ~/.local/state/rf-video-connector</td></tr><tr><td>Windows</td><td>%LOCALAPPDATA%/rf-video-connector</td></tr><tr><td>Docker</td><td>/state</td></tr></tbody></table>

`--data-dir` overrides `RFV_DATA_DIR` and the default. `--config` can point at a separate configuration file. Back up both the entire data directory and any separate configuration, keeping the backup private because it may contain keys and camera passwords.

1. Stop the cloud jobs and the old connector before an upgrade.
2. Keep its data directory (or Docker `/state` volume). Older containers may store identity outside the config file, so check before you replace one.
3. Rerun the native installer, extract a verified Windows release, or select a new immutable Docker version. Do not overwrite or discard persistent state.
4. Start one connector and check that your cameras still show under the same connector.

Older Linux installs name USB sources `usb:videoN`. Before you upgrade, run `rfv-connector --list-usb` and map old names to new IDs with `usbSourceAliases` in the configuration.

To remove a connector, stop it, then click "Remove connector" on its page in "Cloud Streaming". Delete the data directory only if you want a fresh connector.

## Network requirements

The connector opens outbound connections to the Roboflow API and the media destination assigned to it. You do not need to forward an inbound internet port to the camera. Its machine still needs local access to the camera's RTSP or ONVIF service, and outbound media access in addition to HTTPS API access.

Network cameras are forwarded over RTSP on TCP port 8554. USB cameras and files are sent over WebRTC (WHIP), on UDP or TCP. ONVIF discovery uses local multicast, which may not cross VLANs.

If the connector is online but the camera or video is missing, see [troubleshooting](https://docs.roboflow.com/deployment/roboflow-cloud/cloud-streaming/troubleshooting.md).
