简体中文 | English
This guide walks you through setting up OpenClaw Connector from scratch. No prior knowledge of SSH tunnels or AI agent infrastructure is required.
You need two things ready before using OpenClaw Connector:
OpenClaw Connector is a client — it connects to an OpenClaw gateway running on a remote Linux server. You (or your team admin) must install and configure the gateway first.
If you haven't set up the gateway yet, see the OpenClaw documentation.
Your local machine must be able to connect to the server via SSH. To verify:
ssh your-username@your-server-ipIf this command logs you into the server, you're good. If not, you'll need to:
- Get the server's IP address and your SSH credentials from the admin
- Set up an SSH key pair (see GitHub's SSH guide)
When you open the app, you'll see a connection form. Here's what each field means:
| Parameter | What it is | How to find it | Example |
|---|---|---|---|
| Host | The IP address or domain name of your Linux server | Ask your server admin, or check your cloud provider dashboard | 203.0.113.50 or my-server.example.com |
| User | The SSH username for logging into the server | Same username you use with ssh user@host |
root, ubuntu, deploy |
| Key Path | Path to your SSH private key on your Mac | Usually in ~/.ssh/. If you're unsure, run ls ~/.ssh/ in Terminal |
~/.ssh/id_ed25519 or ~/.ssh/id_rsa |
| Gateway Token | Authentication token for the OpenClaw gateway | Found in the gateway's configuration file on the server, look for gateway.auth.token |
A long string like sk-abc123... |
| Parameter | What it is | Default | When to change |
|---|---|---|---|
| Remote Port | The port where OpenClaw gateway is listening on the server | 18789 |
Only if your admin configured a different port |
| Local Port | The port mapped to your local machine via SSH tunnel | 18789 |
Only if the port is already in use locally |
Tip: In most cases, keep both ports the same. The app creates an SSH tunnel that maps the remote port to your local machine, so you can access the gateway as if it were running locally.
| Parameter | What it is | Default |
|---|---|---|
| Node Name | A friendly name for your local machine, shown to AI agents | Auto-generated |
- Fill in the form — Enter your server's host, username, key path, and gateway token
- Click "Connect" — The app will establish an SSH tunnel to your server
- Check the status badge — It should show a green "Connected" indicator
- Open the management console (optional) — Click "Management Console" to access the gateway web UI in your browser
This is an optional feature that lets AI agents control your local Chrome browser.
CDP (Chrome DevTools Protocol) is the same technology that browser developer tools use. When enabled, AI agents can:
- Open web pages
- Click buttons and fill forms
- Take screenshots
- Extract page content
| Parameter | What it is | Default |
|---|---|---|
| CDP Port (Local) | The port Chrome listens on for automation commands | 9222 |
| Remote Port | The port mapped to the server so agents can reach your browser | 19222 |
- Click "Start Browser" — Chrome opens with a dedicated profile for automation
- The agent can now control this Chrome window through CDP
Note: This opens a separate Chrome instance with its own profile. It won't affect your regular Chrome browser.
After connecting, you can notify AI agents about your local node:
- Expand an agent in the "Session Injection" card
- Click "Notify" next to a session — the agent will receive a system message with your node info
- The agent can then execute commands on your local machine
- Verify SSH works: run
ssh -i ~/.ssh/your_key user@hostin Terminal - Check that the key path in the app matches your actual SSH key location
- Make sure the server's SSH port (22) is accessible from your network
SSH into your server and check the OpenClaw gateway config file. Look for a field like gateway.auth.token or similar. Ask your admin if unsure.
- Make sure the local port isn't occupied by another application
- Try changing the local port to a different number (e.g.,
18790)
- Make sure Google Chrome is installed on your Mac
- If Chrome is already running, the CDP browser opens as a separate instance — this is normal