Docs Menu

Connections

Connect your agent to messaging platforms so people can talk to it.

How Connections Work

Each connection links your agent to a messaging platform. When someone sends a message on that platform, it reaches your agent through the OpenClaw Gateway, which processes it and sends a response back.

You can connect multiple platforms at once — for example, Telegram for personal use and Discord for a community server. Each connection has its own access policy.

Access Policies

Every connection has an access policy that controls who can message your agent:

Pairing ✓ rec.Users must enter a pairing code before they can chat. Best balance of security and convenience.
Allowlist Only pre-approved users (by username or ID) can message. Most restrictive.
Open Anyone can message. Use with caution — your agent will respond to everyone.

Supported Channels

📱Telegram

The most popular connection. Create a bot via @BotFather, paste the token, and you're live.

Setup Steps

  1. Open @BotFather on Telegram and create a new bot
  2. Copy the bot token
  3. In ClawManager → Connections, click Telegram and paste the token
  4. Set your access policy (pairing, allowlist, or open)
  5. Save and restart the gateway

📌 Supports DMs, groups, inline buttons, and reactions.

🎮Discord

Connect a Discord bot to your server for AI-powered conversations.

Setup Steps

  1. Go to discord.com/developers and create a new application
  2. Under Bot, create a bot and copy the token
  3. Copy the Application ID (Client ID) for the invite link
  4. In ClawManager → Connections, click Discord and paste both values
  5. Use the generated invite link to add the bot to your server
  6. Set access policy and restart the gateway

📌 Supports DMs, server channels, threads, and slash commands.

💬WhatsApp

Connect via the WhatsApp Web bridge. Uses a QR code to link your session.

Setup Steps

  1. In ClawManager → Connections, click WhatsApp
  2. Choose whether to use a dedicated number or your personal number
  3. Set your access policy and allowed contacts
  4. Save config, then scan the QR code with WhatsApp on your phone
  5. Wait for the connection to establish

📌 Recommended: use a dedicated number. Personal number works but carries risk of WhatsApp restrictions.

🔒Signal

Connect via signal-cli for encrypted messaging.

Setup Steps

  1. Install Java 21+ and signal-cli on your system
  2. Have a phone number ready (dedicated recommended)
  3. In ClawManager → Connections, click Signal
  4. Follow the guided setup: enter phone number and signal-cli path
  5. Link or register your number, then set access policy

📌 Requires signal-cli and Java. Fully end-to-end encrypted.

🍎iMessage

Connect to iMessage on macOS using the imsg CLI tool.

Setup Steps

  1. Requires macOS with Messages.app signed in
  2. Install the imsg CLI tool
  3. Grant Full Disk Access to the terminal
  4. In ClawManager → Connections, click iMessage and configure

📌 macOS only. Also supports BlueBubbles as an alternative bridge for cross-platform setups.

💼Slack

Add your agent to Slack workspaces via Socket Mode or HTTP webhooks.

Setup Steps

  1. Create a Slack App at api.slack.com
  2. Choose Socket Mode (recommended — no public URL needed) or HTTP mode
  3. For Socket Mode: generate an App Token (xapp-) and Bot Token (xoxb-)
  4. In ClawManager → Connections, click Slack and enter your tokens
  5. Install the app to your workspace and set access policy

📌 Socket Mode works behind firewalls. HTTP mode needs a public URL.

📧Google Chat

Connect to Google Chat via a service account and webhook.

Setup Steps

  1. Create a Google Cloud project and enable the Chat API
  2. Create a service account and download the JSON key
  3. In ClawManager → Connections, click Google Chat
  4. Enter the service account file path and webhook settings
  5. Configure in Google Workspace Admin

📌 Requires Google Workspace. Uses service account authentication.

📡IRC

Classic IRC support for connecting to channels on any IRC network.

Setup Steps

  1. In ClawManager → Connections, click IRC
  2. Enter your server, port, nickname, and channels to join
  3. Configure authentication if your network requires it

📌 Supports multiple channels and networks.

🏢Microsoft Teams

Connect to MS Teams via the Bot Framework.

Setup Steps

  1. Register a bot in the Azure Bot Framework portal
  2. Get your App ID, App Password, and Tenant ID
  3. In ClawManager → Connections, click MS Teams
  4. Enter your credentials and webhook settings
  5. Deploy the bot manifest to your Teams tenant

📌 Requires Azure AD registration. Supports direct messages and channels.

🟢LINE

Connect to LINE Messaging API.

Setup Steps

  1. Create a LINE Developers account and a Messaging API channel
  2. Get your Channel Access Token and Channel Secret
  3. In ClawManager → Connections, click LINE
  4. Enter your tokens and configure the webhook URL
  5. Set access policy and restart

📌 Requires a public webhook URL. Popular in Japan and Southeast Asia.

🟣Twitch

Add your agent to Twitch chat as a bot.

Setup Steps

  1. Install the Twitch plugin: openclaw plugins install @openclaw/twitch
  2. Create a Twitch application for bot credentials
  3. Get your bot username, access token, and client ID
  4. In ClawManager → Connections, click Twitch
  5. Enter credentials, target channel, and role permissions

📌 Control who can interact: moderators only, subscribers, VIPs, or everyone.

🔷Matrix

Connect to the Matrix decentralized network.

Setup Steps

  1. In ClawManager → Connections, click Matrix
  2. Enter your homeserver URL, username, and access token
  3. Configure rooms to join

📌 Works with any Matrix homeserver (Element, Synapse, etc.).

🟡Nostr

Connect to the Nostr decentralized protocol.

Setup Steps

  1. In ClawManager → Connections, click Nostr
  2. Configure your relay and key settings

📌 Experimental. Decentralized social protocol.

Connection Stats & Monitoring

The Connections page in ClawManager shows live stats for each channel: messages received, active sessions, and connection health. If a channel disconnects, you'll see a warning banner with options to reconnect or restart.

Slash Commands

Once connected, your agent responds to slash commands in chat:

/model — switch AI model mid-conversation
/new — start a fresh session
/reset — reset to default settings
/compact — compact/condense the current session
/reasoning — toggle extended thinking mode
/status — check agent status
/help — list all available commands

Next Steps

With a connection active, your agent is live! Customize it further in Agents or add capabilities with Skills & Tools.