Install and run a self-hosted AI agent gateway that connects your favorite messaging apps to any LLM — in about 5 minutes.
OpenClaw is an open-source, self-hosted gateway that bridges AI coding agents to the chat apps you already use — Telegram, WhatsApp, Discord, Slack, Signal, and more. You run a single Gateway process on your own machine or server; it handles routing, sessions, and channel connections. Your data stays on your hardware.
node --version
Run the install script for macOS or Linux. On Windows, use the PowerShell equivalent.
curl -fsSL https://openclaw.ai/install.sh | bash
iwr -useb https://openclaw.ai/install.ps1 | iex
npm install -g openclaw@latest
The onboarding wizard walks you through selecting a model provider, entering your API key, and configuring the Gateway. Takes about 2 minutes. The --install-daemon flag sets up the Gateway as a background service so it starts automatically.
--install-daemon
openclaw onboard --install-daemon
Check that the Gateway is listening, then open the browser-based Control UI.
openclaw gateway status openclaw dashboard
The Gateway runs on port 18789 by default. The dashboard will open at http://127.0.0.1:18789/. Type a message in the chat — you should receive an AI reply.
18789
http://127.0.0.1:18789/
OpenClaw supports a wide range of messaging platforms. Telegram is the fastest to set up — you only need a bot token. WhatsApp requires QR pairing. Multiple channels can run simultaneously from a single Gateway.
See the full list at docs.openclaw.ai/channels.
Config lives at ~/.openclaw/openclaw.json. Without any changes, OpenClaw uses its bundled Pi agent with per-sender sessions. To restrict who can message your agent, add an allowlist. The example below limits WhatsApp access to one number and requires an @mention in group chats.
~/.openclaw/openclaw.json
{ "channels": { "whatsapp": { "allowFrom": ["+15555550123"], "groups": { "*": { "requireMention": true } } } }, "messages": { "groupChat": { "mentionPatterns": ["@openclaw"] } } }
Add browser automation, web search, GitHub, Claude Code, Gemini CLI, and more via the clawhub package manager.
Configure multi-agent routing with isolated sessions per workspace or sender.
Set up tokens, allowlists, pairing controls, and access groups to lock down your Gateway.