Go Further

Remote Servers

Host Fabric Agents on a remote Linux server, in Docker, or directly from a macOS, Windows, or Linux Desktop app.

Fabric Agents lets you run workspaces, git repositories, terminals, and AI sessions on another machine while interacting from your laptop or workstation.

Quick start

There are two ways to use a remote server. Both run the same Fabric server; they differ in how you install it and how you connect.

Path 1: Desktop over SSH (recommended)Path 2: Server URL and token
Best forDevelopers using Fabric Agents DesktopDesktop Server Mode, Docker, a browser, fabric-cli, scripts and CI
Server tokenFetched for you over SSHYou copy it into the client
Open portsNoneNone, if you use an SSH tunnel
Typical setup timeAbout 10 minutesAbout 15 minutes

You need a Linux x64 server with systemd that you can reach over SSH, such as Ubuntu 22.04 or 24.04, with Node.js 18 or newer, Python 3 and curl installed. Run every server command as your normal user, not root.

1. Update Fabric Agents Desktop on your computer to the latest version. Desktop and the server must run the same version.

2. On the server, download and run the installer:

curl -fsSLo install-server.sh https://agents.fabric.pro/install-server.sh && bash install-server.sh

It checks the server first and says exactly what is missing. It also lets the server keep running after you log out; if your system doesn't allow that, it tells you to ask an administrator. Keep install-server.sh in that folder: you use it later to show the token, sign in to providers and update the server.

3. In Desktop, open Workspace Switcher → Add Workspace → Connect to Remote Server, keep Connect using SSH selected, enter your SSH host (user@server or an alias from ~/.ssh/config), click Check server, then pick a workspace or create one and click Connect. You don't open ports or copy a token.

4. Sign in to your AI provider on the server. Open Settings → AI → Remote setup, sign in, pick a model and click Send test message. Your laptop's sign-in doesn't carry over to the server. See provider sign-in.

To update later, update Desktop first, then run this on the server:

bash install-server.sh update

Path 2: Server URL and token

Use this to connect from a browser, fabric-cli or a script, or to a Desktop app running in Server Mode or a Docker container. The server listens only on 127.0.0.1:9100, so clients reach it through an SSH tunnel.

1. Install the server with step 2 of Path 1. Skip this for a Desktop host: turn on Settings → Server → Enable Server Mode there and copy its URL and Token instead.

2. On the server, print the token:

bash install-server.sh token

Treat it like a password: don't paste it into chat or logs.

3. On your computer, open a tunnel and leave this terminal running (replace user@server):

ssh -N -o ForwardAgent=no -o ExitOnForwardFailure=yes -L 127.0.0.1:19100:127.0.0.1:9100 user@server

4. Connect, with one of these:

  • Desktop: Add Workspace → Connect to Remote Server → Use server URL and token, enter ws://127.0.0.1:19100, paste the token, then Test Connection and Connect.

  • Browser: open http://127.0.0.1:19100 and paste the token. Or skip steps 2 and 3: this script opens the tunnel, copies the token to your clipboard and opens the browser:

    curl -fsSLo connect-webui.sh https://agents.fabric.pro/connect-webui.sh && bash connect-webui.sh user@server
  • fabric-cli: install it once:

    curl -fsSL https://agents.fabric.pro/install-cli.sh | bash

    Then, in Bash, point it at the tunnel and paste the token at the hidden prompt:

    export FABRIC_SERVER_URL="ws://127.0.0.1:19100"
    read -r -s -p "Fabric server token: " FABRIC_SERVER_TOKEN </dev/tty; printf '\n'; export FABRIC_SERVER_TOKEN
    fabric-cli ping

    Windows PowerShell and more commands: Fabric CLI.

5. Sign in to your AI provider on the server, as in Path 1 step 4. Without Desktop, sign in from the server terminal:

bash install-server.sh login

Run the server from source or Docker

Developers can run the server straight from a checkout of the repository with Bun, the way the open-source project does, and connect with Path 2:

bun install
export FABRIC_SERVER_TOKEN="$(openssl rand -hex 32)"
bun run packages/server/src/index.ts

It listens on ws://127.0.0.1:9100 and keeps its data in ~/.fabric-agent, so run it as a dedicated user, or set FABRIC_CONFIG_DIR to another folder. For a container, build the image and publish it on loopback:

pin=$(bun --no-env-file scripts/build/bun-pin.fabric.ts) &&
  docker build --build-arg BUN_VERSION="$pin" -f Dockerfile.server -t fabric-agents-server .
docker run -d --name fabric-server -p 127.0.0.1:9100:9100 -e FABRIC_SERVER_TOKEN -v fabric-data:/home/fabricagents/.fabric-agent fabric-agents-server --allow-insecure-bind

--allow-insecure-bind lets the server listen inside the container without TLS; -p 127.0.0.1:... keeps it reachable only from the host. Check either one with fabric-cli --validate-server while FABRIC_SERVER_URL and FABRIC_SERVER_TOKEN are set; steps that send a message need an AI provider connection.

If something stalls

If the browser tool or a session stops responding, send your administrator ~/.fabric-agent/logs/main.log from your computer, taken right after it happens. More fixes are in Troubleshooting.

The sections below cover every hosting option and access method in detail.

Choose where to host

You can host a Fabric server in two ways:

  1. Desktop Server Mode (macOS, Windows, Linux) — Turn any running Fabric Agents Desktop app into a remote server via Settings → Server → Enable Server Mode. Ideal when you want to access your Mac Studio, Windows workstation, or Linux desktop from another computer or browser.
  2. Headless Linux Server (install-server.sh or Docker) — Run a dedicated 24/7 background service (systemd or Docker Compose) on a Linux x64 VM or bare-metal host without a GUI.

Platform Compatibility Matrix

Role / ModemacOS (Apple Silicon & Intel)Windows (x64)Linux (x64)How it works
Desktop Server Mode (GUI host)SupportedSupportedSupportedToggle Settings → Server → Enable Server Mode in the Desktop app
Headless Server Installer (install-server.sh)Via Linux VMVia WSL2 (systemd) or Linux VMNative (glibc + systemd)One-command background service (fabric-agent-server.service)
Server Container (ghcr.io/fabric-pro/fabric-server)Via Docker Desktop / OrbStackVia Docker Desktop / WSL2Native Docker EngineHeadless container with persistent /data volume
Desktop App Client (Add Workspace → Connect to Remote Server)SupportedSupportedSupportedConnect per-workspace via SSH (user@host) or URL + Token
Browser Web UI ClientSupportedSupportedSupportedOpen the server URL in any browser or use connect-webui.sh
Fabric CLI Client (fabric-cli)SupportedSupportedSupportedNative standalone binary (install-cli.sh / install-cli.ps1)

Option A: Host from a Desktop App (macOS, Windows, Linux)

Any running Fabric Agents Desktop app on macOS, Windows, or Linux includes a built-in RPC and Web UI server that you can enable in two clicks.

1. Enable Server Mode in Settings

  1. Open Fabric Agents on the macOS, Windows, or Linux machine you want to host from.
  2. Open Settings → Server (Cmd+, on macOS or Ctrl+, on Windows/Linux, then select Server).
  3. Turn on Enable Server Mode (Allow connections from other machines on the network).
  4. (Optional) Set a custom Port (default: 9100, valid range 1024–65535) and configure a TLS Certificate and Private Key if clients will connect directly over a network without an SSH tunnel or VPN.
  5. Click Save, then click Restart Now when prompted.

2. Copy the Connection URL and Token

After restarting, return to Settings → Server. Under Connection, Fabric displays:

  • URL — e.g. ws://192.168.1.50:9100 (or wss://... when TLS is configured)
  • Token — Hidden behind •••••••••••••••• with Show/Hide and Copy buttons

3. Connect from Another Device

From your second laptop or workstation (macOS, Windows, or Linux):

  • From another Fabric Agents Desktop app:
    1. Open the Workspace Switcher → Add Workspace → Connect to Remote Server.
    2. Select Use server URL and token at the top.
    3. Paste the Server URL and Token from the host's Settings → Server page.
      • Tip: If connecting over SSH instead of LAN/Tailscale, forward the port first (ssh -N -o ForwardAgent=no -o StrictHostKeyChecking=yes -o ExitOnForwardFailure=yes -L 127.0.0.1:9100:127.0.0.1:9100 user@desktop-host) and use ws://127.0.0.1:9100 as the Server URL.
    4. Click Test Connection, choose an existing workspace on the desktop server (or create a new one), and click Connect.
  • From a Web Browser:
    • Open http://<desktop-host>:9100 (or https://<desktop-host>:9100 with TLS) in your browser and paste the Token when prompted.

Security Note: When Server Mode is enabled without TLS certificates, the app warns that auth tokens are sent in cleartext if accessed directly over a network. Either configure TLS certificates in Settings → Server, connect over an encrypted mesh VPN (such as Tailscale), or forward port 9100 over SSH.


Option B: Host a Headless Linux Server (One-Command Installer)

For an always-on Linux VM or bare-metal server (x86_64, glibc, systemd user manager), use the standalone server installer. It creates an isolated service profile at ~/.local/share/fabric-agent-server, generates a random token, and starts a systemd user service bound to 127.0.0.1:9100.

1. Run the Installer on the Linux Server

SSH into your Linux server as the normal, non-root service account. The current installer requires Node.js 18 or newer, Python 3.10 or newer (Ubuntu 22.04 and later; Debian 12's Python 3.11.2 is too old), curl and a working systemd user manager, including systemctl, loginctl and systemd-analyze. The installer turns on user lingering so the service keeps running after you log out. If your system refuses that, ask your administrator to run loginctl enable-linger SERVICE_USER, then run the installer again.

Install the published Fabric runtime:

curl -fsSLo install-server.sh https://agents.fabric.pro/install-server.sh && bash install-server.sh

Keep install-server.sh in this directory for the later login, token and update commands. The download must succeed before the installer runs.

2. Connect from Your Mac, Windows PC, or Linux Desktop

You do not need to open firewall ports or manually copy tokens when connecting from the Fabric Agents Desktop app:

  1. Open Fabric Agents on your macOS, Windows, or Linux desktop.
  2. Open the Workspace Switcher → Add Workspace → Connect to Remote Server.
  3. Keep Connect using SSH selected.
  4. Enter your SSH host (for example user@server or an alias from ~/.ssh/config) and click Check server.
  5. Select an existing remote workspace or choose Create a new workspace, then click Connect.

Fabric Desktop automatically maintains the SSH tunnel in the background and retrieves the server token privately over SSH.

Use matching Desktop and server releases for this managed SSH path. When upgrading, update Desktop first, then update the server to that version using Server Operations.

Or connect via Browser Web UI

From a terminal on your macOS, Linux, or Windows (WSL / Git Bash) client machine with Bash, OpenSSH and python3 installed, run:

curl -fsSLo connect-webui.sh https://agents.fabric.pro/connect-webui.sh &&
  bash connect-webui.sh user@server

Run this on the computer where you want to open the browser. The script verifies the remote server, opens a local SSH tunnel on http://127.0.0.1:19100, copies the server token to your local clipboard and opens your browser. Paste once and sign in. Keep that terminal open while using the tunnel. If clipboard access is unavailable, the script shows a copy command; it does not print the token.

On Windows PowerShell (without WSL/Git Bash), run:

# 1. Start the tunnel in this window and leave it open.
ssh -N -o ForwardAgent=no -o StrictHostKeyChecking=yes -o ExitOnForwardFailure=yes -o ServerAliveInterval=30 -L 127.0.0.1:19100:127.0.0.1:9100 user@server

If SSH reports an access or port-binding error, fix it before continuing. In a second PowerShell window, copy the token and open the browser:

# 2. Retrieve the managed profile's token and copy only on success.
$token = ssh -o ForwardAgent=no -o StrictHostKeyChecking=yes user@server "bash -o pipefail -c 'curl -fsSL https://agents.fabric.pro/install-server.sh | bash -s -- token'"
if ($LASTEXITCODE -ne 0) { throw "Could not retrieve the server token. Check SSH access and profile selection." }
$token | Set-Clipboard
Remove-Variable token

Start-Process "http://127.0.0.1:19100"

If several profiles exist, add --profile NAME after token. The SSH account must own the selected profile. Verify a new server's SSH host fingerprint through your usual trusted process; Fabric does not automatically accept unknown keys.

Get your server token

Desktop SSH retrieves it for you. For browser use, the connector above copies it from the managed main service without requiring a profile path.

If you are already signed into the server's SSH terminal, run:

curl -fsSLo install-server.sh https://agents.fabric.pro/install-server.sh &&
  bash install-server.sh token

This prints the selected profile's secret. Keep it private; do not paste it into chat or diagnostic logs. Multiple profiles prompt for a selection. To sign in to providers or update later, use bash install-server.sh login and bash install-server.sh update. See Server Operations for backups, idle checks and rollback.


Option C: Host with Docker Compose

The container currently requires authorized registry access. If you do not have that access, use the public Linux installer above; it needs no GitHub login or private repository checkout. These container instructions are for authorized registry users.

If you prefer containers (on a Linux host, or via Docker Desktop / OrbStack on macOS and Windows), use the runtime-only server image ghcr.io/fabric-pro/fabric-server:0.16.1.

1. Generate a Token and .env File

mkdir -p fabric-server && cd fabric-server
printf "FABRIC_SERVER_TOKEN=%s\n" "$(openssl rand -hex 32)" > .env
chmod 600 .env

2. Create docker-compose.yml

services:
  server:
    image: ghcr.io/fabric-pro/fabric-server:0.16.1
    restart: unless-stopped
    ports:
      - "127.0.0.1:9100:9100"
    env_file:
      - .env
    environment:
      FABRIC_RPC_HOST: "0.0.0.0"
      FABRIC_RPC_PORT: "9100"
      FABRIC_WEBUI_DIR: "/app/apps/webui/dist"
    volumes:
      - fabric-data:/data

volumes:
  fabric-data:

3. Start and Verify

docker compose up -d
curl -fsS http://127.0.0.1:9100/health

Connect to the container using Add Workspace → Connect to Remote Server → Use server URL and token (ws://127.0.0.1:9100 locally, or ws://127.0.0.1:19100 over an SSH tunnel ssh -N -o ForwardAgent=no -o StrictHostKeyChecking=yes -o ExitOnForwardFailure=yes -L 127.0.0.1:19100:127.0.0.1:9100 user@docker-host) and the token from .env.


Setting Up AI Providers on a Remote Server

When a workspace is hosted on a remote server, all AI model calls and CLI tools execute on that server. Your client machine never sends its local API keys or CLI credentials to the server.

Do I need to SSH into the VM? API keys and Claude Pro / Max can be connected from Fabric's UI. Direct vendor CLIs need server-side sign-in; Desktop SSH can open the correct profile's terminal, while browser users use the interactive helper. Follow Sign In to Remote AI Providers for the shortest route for your provider. No graphical desktop on the VM is needed.

1. API Key & OAuth Providers (Anthropic, OpenAI, Google, Bedrock, Vertex, OpenRouter, Ollama)

Once connected to the remote server (via Desktop app or Browser Web UI):

  1. Open Settings → AI (or click Add Connection during onboarding).
  2. Add your provider connection:
    • API Key — Paste your key directly. It is stored in the server's encrypted credential store, inside the selected profile.
    • Claude Pro / Max — Select this provider, click sign in, complete the browser authorization flow on your laptop, and paste the returned authorization code into Fabric. No browser is needed on the headless server.
    • ChatGPT subscription — The current Web UI cannot complete this native localhost-callback flow. Use the supported native Desktop flow or configure an OpenAI API key in the browser. A subscription and an API key are separate authentication methods.

2. Direct CLI Providers (agy, cursor-agent, droid, grok, grokbot, kimi)

Direct CLI providers invoke the vendor's CLI binary on the server inside the server's isolated profile (HOME). Because the server runtime does not bundle third-party vendor binaries, follow these steps on your Linux server:

Step 1: Install the Vendor CLI on the Server

SSH into the server and install the vendor CLI (agy, cursor-agent, droid, grok, grokbot, or kimi) to a standard path such as /usr/local/bin/<tool> or ~/.local/bin/<tool> (owned by root or the server OS user, not group/world-writable).

Step 2: Run the Interactive Login Helper

Download the current install-server.sh helper on the server and run login:

curl -fsSLo install-server.sh https://agents.fabric.pro/install-server.sh &&
  bash install-server.sh login

Or specify the provider directly:

bash install-server.sh login kimi
ProviderLogin command argumentExecutable name on server
Antigravityagyagy
Cursor Agentcursorcursor-agent
Factory Droiddroiddroid
Grokgrokgrok
GrokBotgrokbotgrokbot
Kimikimikimi
  • Multiple profiles: List profiles with bash install-server.sh profiles and target a specific profile with bash install-server.sh login kimi --profile <name>.
  • Docker Compose deployments: Run docker compose run --rm -it server login <provider> from your Compose directory.

Step 3: Verify in Fabric Agents

Return to Fabric Agents (Desktop or Web UI), open Settings → AI → Add Connection, choose the CLI provider, and click Check again / Verify & Connect.

On a Desktop SSH workspace, Sign in on server opens the correct profile's terminal for supported CLI providers. In a browser, use the helper in your SSH terminal instead. Check CLI verifies configuration/availability; it does not prove that sign-in, allowance or model execution works. In Settings → AI → Remote setup, select the account/model and explicitly choose Send test message for that final check. This uses your provider plan; it is not an automatic background test.

Custom CLI executable paths (cli-tools.fabric.json) and Linux keyring notes

If a vendor CLI is installed outside standard PATH locations, create <profile-root>/home/.fabric-agent/cli-tools.fabric.json (for default installs: ~/.local/share/fabric-agent-server/home/.fabric-agent/cli-tools.fabric.json):

{
  "version": 1,
  "tools": {
    "agy": { "path": "/usr/local/bin/agy" },
    "cursor": { "path": "/usr/local/bin/cursor-agent" },
    "droid": { "path": "/usr/local/bin/droid" },
    "grok": { "path": "/usr/local/bin/grok" },
    "grokbot": { "path": "/usr/local/bin/grokbot" },
    "kimi": { "path": "/usr/local/bin/kimi" }
  }
}

Every configured path must be an absolute path to a regular executable file owned by root or the server account, inside non-writable parent directories, and outside /tmp, /var/tmp, /dev/shm, and workspace folders. Restart fabric-agent-server.service after editing cli-tools.fabric.json.

Antigravity (agy) on headless Linux: Antigravity's OAuth redirect prints a localhost URL after Google sign-in; copy that full callback URL from your browser address bar and paste it into the SSH terminal prompt. If agy requires an unlocked Secret Service keyring (org.freedesktop.secrets), configure a user D-Bus session and keyring for that Linux account.


How Local & Remote Work Together

When you connect a macOS, Windows, or Linux Desktop client to a remote workspace:

  • Files, Git, Terminal & AI Sessions run on the remote server: Source code stays on the server filesystem. Closing your laptop does not interrupt a running agent session.
  • Browser tools bridge to your local Desktop automatically: When an agent running on a headless Linux server uses browser automation tools, the server automatically bridges those commands back to your connected macOS, Windows, or Linux Desktop app's built-in browser.
  • Desktop-only OS actions stay local: Actions like Show in Finder / Explorer or Open in local editor are disabled for remote workspaces unless mapped.

Reference: Server Environment Variables

VariableDefaultDescription
FABRIC_SERVER_TOKEN(Required)Secret bearer token required from all connecting clients.
FABRIC_RPC_HOST127.0.0.1Bind address (0.0.0.0 when Desktop Server Mode is enabled). Non-loopback binds on headless servers require TLS certs.
FABRIC_RPC_PORT9100TCP port for WebSocket RPC, /health, and the bundled Web UI.
FABRIC_RPC_SOCKET/run/user/<uid>/fabric-agent-server/rpc.sockLocal Unix domain socket created by install-server.sh for SSH discovery.
FABRIC_RPC_TLS_CERT—Path to PEM certificate chain for wss:// / https://.
FABRIC_RPC_TLS_KEY—Path to PEM private key for wss:// / https://.
FABRIC_WEBUI_DIRBundled webuiPath to static Web UI assets served at /.
FABRIC_ENABLE_CODING_SESSIONS_BRIDGEfalseSet to true only if exposing coding-session links over a trusted TLS network.

Advanced: Fleet Management & Manual Archive Setup

Settings → Machines (Fleet Management Beta)

When the internal fleet beta is enabled on Desktop, Settings → Machines manages verified SSH machine connections, displays server resource load and provider readiness, and lets you launch sessions directly via New session on… or the composer's Run on selector.

Manual Archive Verification & Offline Installation

If you need to download and verify the Linux x64 server archive (v0.16.1) manually instead of running install-server.sh:

VERSION="0.16.1"
BASE_URL="https://agents.fabric.pro/electron/server/releases/v${VERSION}"

curl -fsSLO "${BASE_URL}/fabric-agent-server-${VERSION}-linux-x64.tar.gz"
curl -fsSLO "${BASE_URL}/fabric-agent-server-${VERSION}-linux-x64.tar.gz.sha256"
sha256sum -c "fabric-agent-server-${VERSION}-linux-x64.tar.gz.sha256"

You can also pass custom flags to install-server.sh:

curl -fsSLo install-server.sh https://agents.fabric.pro/install-server.sh
bash install-server.sh 0.16.1 --root ~/.local/share/fabric-agent-server

Note that install-server.sh intentionally refuses to overwrite an existing profile directory; to upgrade or operate an existing installation, see Remote Server Operations.

Guided remote setup

After connecting a remote workspace, open Remote setup from the connection reminder or Settings → AI. The panel keeps server connection, AI account setup and a first-response check together. You can leave and return without repeating sign-in or automatically sending another message.

  1. Confirm the selected execution server. The server token opens Fabric; provider sign-in is separate and belongs to that server's profile.
  2. Choose Connect an AI account or Sign in or edit. Fabric uses the provider's normal subscription, API-key, device or CLI sign-in flow. Browser ChatGPT subscription sign-in requires Desktop; API-key options remain available.
  3. Select the connection and model, then explicitly choose Send test message. This uses provider allowance and creates an ordinary Explore conversation. Open check conversation shows its reply or the provider's recovery details.

A saved connection is configuration, not proof of a working model. The panel reports a historical reply with a timestamp. Recheck after changing CLI accounts on the server; a past reply does not guarantee current sign-in or remaining usage. If a connection drops during the check, Fabric reads the server's stored receipt and conversation instead of sending again. A request the server has not admitted can be explicitly cancelled before starting another check.

Expand Token and server updates for the installed version, an explicit available-version check, and commands for the exact managed profile. Run them in your SSH terminal as the service account. For managed Desktop SSH, update Desktop first and keep client/server versions matched. Custom services and containers retain their own update procedures.

On this page