---
title: "Toolbelt Bridge"
description: "Run local MCP servers and local LLMs (Ollama, LM Studio, vLLM) on your machine and connect them securely to Toolbelt in the cloud."
updated: 2026-10-02
---

# Toolbelt Bridge

Toolbelt Bridge lets you connect private tools, internal databases, local filesystems, and locally hosted AI models on your own computer or private infrastructure to your Toolbelt assistants in the cloud.

Because the Bridge establishes an **outbound-only encrypted WebSocket connection**, you never need to open inbound firewall ports, configure reverse proxies, or expose your local machine to the public internet.

:::cards 3

===card
title: Single Native Binary
icon: bridge
Runs as a self-contained executable on macOS, Linux, and Windows. No Node.js runtime required to run the bridge itself.

===card
title: Local LLM Runtimes
icon: cpu
Auto-detects Ollama, LM Studio, and vLLM models running on your machine and tunnels chat inference directly through the bridge.

===card
title: Outbound-Only Tunnel
icon: shield
Connects outbound to Toolbelt over WebSocket. Your machine stays completely protected behind your local firewall or NAT.

===card
title: Multi-Organization Support
icon: building-2
Pair a single bridge installation with multiple organizations simultaneously, keeping access control isolated.

===card
title: Local & Remote Management
icon: sliders
Manage servers and runtimes from the built-in local web dashboard (`http://127.0.0.1:4747`) or directly within the Toolbelt UI.

===card
title: Team Sharing Controls
icon: share-2
Exposed tools and models are private to you by default. Toggle organization sharing whenever you want teammates to use them.

:::

## How the Bridge Works

When you run Toolbelt Bridge on your computer, it establishes an outbound TLS WebSocket connection to `wss://toolbelt.apexti.com/bridge`.

1. **Local MCP servers:** The bridge manages child processes running stdio-based MCP servers (e.g., via `npx`, `uvx`, or local binaries). When an assistant invokes a tool, Toolbelt routes the request through the WebSocket tunnel, the bridge invokes the process locally, and the response streams back to the cloud.
2. **Local AI models:** The bridge continuously polls local inference runtimes (such as Ollama or LM Studio). When you choose a local model in Toolbelt's chat picker, streaming inference requests are tunnelled over the WebSocket connection straight to your local hardware.

> **Note:** Because all network traffic is initiated outbound by the bridge on your computer, it works seamlessly across standard home Wi-Fi networks, corporate VPNs, and strict enterprise firewalls without IT network changes.

---

## Installation & Download

The Bridge is distributed as a single native binary with zero external runtime dependencies.

### Download options

You can download the binary for your platform in two ways:

1. **Inside Toolbelt:** Go to **Bridges** in the global navigation and click **Download bridge**. The download card automatically highlights the asset matching your operating system.
2. **GitHub Releases:** Visit the [`apexti/toolbelt-bridge` releases page](https://github.com/apexti/toolbelt-bridge/releases) to download any release asset directly.

| Operating System | Architecture | Binary Name |
|---|---|---|
| **macOS** | Apple Silicon (M1/M2/M3/M4) | `toolbelt-bridge-macos-arm64` |
| **macOS** | Intel (x64) | `toolbelt-bridge-macos-x64` |
| **Linux** | x64 | `toolbelt-bridge-linux-x64` |
| **Linux** | ARM64 | `toolbelt-bridge-linux-arm64` |
| **Windows** | x64 | `toolbelt-bridge-windows-x64.exe` |

### Running the Bridge

Make the binary executable (on macOS/Linux) and launch it:

```sh
chmod +x toolbelt-bridge-macos-arm64
./toolbelt-bridge-macos-arm64
```

When started, the bridge launches its background daemon and opens the local management UI in your browser at `http://127.0.0.1:4747`.

> **Tip (macOS quarantine):** If macOS prevents the downloaded binary from opening, remove the quarantine attribute in your terminal before launching:
> ```sh
> xattr -d com.apple.quarantine ./toolbelt-bridge-macos-arm64
> ```

---

## Pairing with Toolbelt

Instead of manually generating and copying API keys, Toolbelt uses a fast, secure pairing code workflow.

### Pair an organization

1. In the Toolbelt web UI, navigate to the organization you wish to connect (or your **Personal** space).
2. Click **Bridges** in the main navigation.
3. Click **Pair a bridge**. Toolbelt displays a 6-character pairing code, a pair URL, and an equivalent CLI command (valid for 10 minutes).
4. Complete the pairing using either method:
   - **Local Web UI:** Open `http://127.0.0.1:4747` in your browser and paste the pair URL into the pairing dialog.
   - **Command Line:** Run the generated pair command in your terminal:
     ```sh
     toolbelt-bridge pair "https://toolbelt.apexti.com/bridge/pair?code=ABC123"
     ```
5. The bridge automatically claims the code, obtains an org-scoped access token, and connects. In Toolbelt, your bridge card transitions to **Online**.

> **Tip:** You can pair the same bridge installation with multiple organizations. Repeat the steps above while switched into each organization in Toolbelt. In the local bridge dashboard, you will see each paired organization listed independently.

---

## Managing Local MCP Servers

Once your bridge is paired, you can run and manage local MCP servers directly on your machine.

### Adding a server

You can add a server either from the local dashboard (`http://127.0.0.1:4747`) or remotely from the Toolbelt web UI:

1. In Toolbelt, go to **Bridges** and click on your bridge card to open the detail drawer.
2. Under **MCP servers**, click **Add server** (or **Browse registry** to pick from public catalog servers).
3. Specify the server configuration:
   - **Key:** Unique alphanumeric identifier (e.g. `filesystem` or `sqlite-db`).
   - **Command:** The executable to run (e.g. `npx`, `uvx`, `python`, `node`, or a direct binary path).
   - **Arguments:** Arguments passed to the executable (e.g. `-y @modelcontextprotocol/server-filesystem /Users/me/Documents`).
   - **Environment:** Optional environment variables in `KEY=VALUE` format.
   - **Working Directory:** Optional root folder for process execution.
4. Click **Add to bridge**.

### Runtime prerequisites

The bridge launches your servers as local child processes:
- Servers running via `npx` require **Node.js** installed on your machine.
- Python servers running via `uvx` require **uv** installed.
- Check the **Prerequisites** section of the local web dashboard (`http://127.0.0.1:4747`) to see what runtimes the bridge detected.

### Process monitoring & logs

- **Automatic recovery:** The bridge monitors running server processes. If a server crashes, the bridge automatically restarts it (up to 5 times within a 10-minute window).
- **Log inspection:** Server output and error streams are written to disk at `<config-dir>/logs/<server-key>.log`.
- **Remote control:** You can start and stop individual servers at any time from Toolbelt's detail drawer.

---

## Local AI Models (Ollama, LM Studio, vLLM)

Toolbelt Bridge automatically discovers locally hosted LLMs on your machine, enabling your cloud assistants to run inference against your local GPU with zero API token costs and complete data privacy.

### Supported runtimes

The bridge automatically probes local loopback endpoints every 30 seconds:

| Runtime | Default Port | Auto-detected? |
|---|---|---|
| **Ollama** | `http://localhost:11434` | ✅ Automatic |
| **LM Studio** | `http://localhost:1234` | ✅ Automatic |
| **vLLM** | `http://localhost:8000` | ✅ Automatic |
| **OpenAI-Compatible** | Custom | Configurable via local UI with Base URL & API Key |

### Exposing and selecting local models

1. Ensure your local LLM runtime (e.g. Ollama) is running on your machine.
2. In the bridge's local UI at `http://127.0.0.1:4747`, open **Local models**.
3. You will see a list of discovered models. Check the box for each organization where you want the model to be accessible.
4. In Toolbelt, open the model dropdown in any chat. Your local models appear under **Organization Models** (or personal models) tagged with their runtime (e.g. `Ollama`, `LM Studio`) and capability badges (such as image support).
5. When you prompt the assistant, the request streams through the bridge to your local hardware.

> **Tip:** If you download a new model in Ollama or LM Studio while the bridge is already running, click **Refresh** in Toolbelt's Bridges drawer or wait up to 30 seconds for the next automatic poll.

---

## Organization Privacy & Sharing

Toolbelt Bridge provides granular security controls over who can see and run your local resources:

| Context | Visibility & Permissions |
|---|---|
| **Personal Space** | All exposed servers and models are strictly private to you. They never appear to other users. |
| **Organization Space (Default)** | When exposed to an organization, servers and models are **owner-only**. Teammates cannot see them, call their tools, or run chat queries through them. |
| **Organization Space (Shared)** | When you toggle **Share** on an MCP server or local model in the bridge detail drawer, it becomes available to **all members** of that organization. |

### Sharing a server or model

1. Open **Bridges** in Toolbelt while in your organization.
2. Click your bridge to open the detail drawer.
3. Next to any server or model, toggle the **Share** switch.
4. Once shared:
   - Teammates can enable the bridged MCP server on their assistants under [Services](https://docs.apexti.com/features/services.md).
   - Teammates can select the local model from their chat model picker.
   - Teammates **cannot** stop, start, reconfigure, or delete your bridge servers. Administrative control remains solely with you and organization admins.

---

## Updating the Bridge

The bridge actively tracks releases published to GitHub to ensure you stay current with protocol and security updates.

- **Automatic release checks:** The bridge checks for updates on startup and every 6 hours.
- **One-click updates:** When an update is available, the local dashboard displays an **Update & restart** banner. Clicking it downloads the binary, verifies its SHA-256 checksum against `sha256sums.txt`, replaces the executable in-place, and restarts the process with your active arguments.
- **Command line update:** You can also run:
  ```sh
  toolbelt-bridge update
  ```
- **Toolbelt UI alerts:** If your bridge is running an outdated version, Toolbelt displays an update badge on the bridge card linking to the latest release instructions.

---

## CLI Reference & Configuration

### Command-line options

```sh
# Start the bridge daemon and open the local UI (default)
toolbelt-bridge [serve]

# Start headless (without launching browser)
toolbelt-bridge serve --headless

# Use a custom port for the local web UI (default: 4747)
toolbelt-bridge serve --port 5000

# Pair using a pair code or full pairing URL
toolbelt-bridge pair "https://toolbelt.apexti.com/bridge/pair?code=ABC123"

# Update running instance to the latest release
toolbelt-bridge update

# Inspect bridge status and active connections
toolbelt-bridge status

# Display version
toolbelt-bridge version
```

### Configuration paths

Configuration and org pairing tokens are stored in:
- **macOS:** `~/Library/Application Support/toolbelt-bridge/config.json`
- **Linux:** `~/.config/toolbelt-bridge/config.json`
- **Windows:** `%APPDATA%\toolbelt-bridge\config.json`

File permissions are restricted to `0600` because the file stores bridge tokens. You can override the configuration location by setting the `TOOLBELT_BRIDGE_CONFIG` environment variable.

> **Note:** If you used the legacy Node-based bridge, you can migrate your existing configuration by passing `--config <path/to/settings.json>` to the executable on first start.

---

## Troubleshooting

| Problem | Cause | Solution |
|---|---|---|
| **Pairing code expired** | Pairing codes expire after 10 minutes | Click **New code** in Toolbelt's pairing dialog to generate a fresh code and URL. |
| **Bridge shows "Offline" in Toolbelt** | Daemon was stopped or computer is asleep | Run `./toolbelt-bridge` to restart the daemon. Verify power settings allow background execution. |
| **Port 4747 already in use** | Another service or bridge instance is using port 4747 | Pass `--port <number>` (e.g. `toolbelt-bridge serve --port 4848`). |
| **macOS blocks executable** | Gatekeeper quarantine flag set on downloaded binary | Run `xattr -d com.apple.quarantine <binary-path>` in terminal. |
| **Local model not showing up** | Model runtime not running or model not exposed | Verify Ollama/LM Studio is running, then check the model checkbox in `http://127.0.0.1:4747` under **Local models**. |
| **Tool execution fails** | Child process runtime missing (e.g. `npx` or `uvx`) | Install Node.js or `uv` on the machine running the bridge. Check the Prerequisites section in the local dashboard. |

---

## Related Topics

- [Services](https://docs.apexti.com/features/services.md) — Connect integrations and enable them on your assistants.
- [Custom MCP Servers](https://docs.apexti.com/features/custom-mcp-servers.md) — Build and host custom MCP servers directly in Toolbelt.
- [Model Selection](https://docs.apexti.com/features/model-selection.md) — Compare model capabilities, speed, and cost tiers.
- [Custom AI Providers](https://docs.apexti.com/features/custom-ai-providers.md) — Connect organization-level OpenAI-compatible API endpoints.
