Install
curl -fsSL https://openclaw.bot/install.sh | bash
Or via npm: npm install -g openclaw
Setup
openclaw onboard
Enter your Anthropic API key and pick a channel (Telegram easiest).
Run
openclaw gateway
Message your bot. Done. ๐ฆ
๐ New to this?
No worries! A "terminal" is just a text-based way to talk to your computer. Instead of clicking icons, you type commands. We'll guide you through each step.
Open Terminal
On Mac:
- Press
Cmd + Spaceto open Spotlight - Type "Terminal"
- Press Enter
A window will open with a blinking cursor. This is where you'll type commands.
On Windows:
- Press
Win + X - Click "Windows Terminal" or "PowerShell"
Cmd + V (Mac) or Ctrl + V (Windows).
Install OpenClaw
Copy this entire line and paste it into Terminal, then press Enter:
curl -fsSL https://openclaw.bot/install.sh | bash
This downloads and runs the installer. It will:
- Check your system
- Install required tools (if needed)
- Install OpenClaw
Wait for it to finish. You'll see "Installation complete" when done.
Get an API Key
OpenClaw needs an AI "brain" to work. You'll need an API key from Anthropic (the company that makes Claude).
- Go to console.anthropic.com
- Create an account (or sign in)
- Click "API Keys" in the sidebar
- Click "Create Key"
- Copy the key (starts with
sk-ant-)
Run Setup
Back in Terminal, type:
openclaw onboard
This starts a setup wizard. It will ask you:
- API Key: Paste the key you copied from Anthropic
- Model: Pick "Claude Sonnet" (good balance of smart + affordable)
- Channel: Pick "Telegram" (easiest to set up)
For Telegram, it will ask for a "bot token". See the next step.
Create a Telegram Bot
On your phone or computer:
- Open Telegram
- Search for @BotFather and start a chat
- Send:
/newbot - Pick a name (e.g., "My Assistant")
- Pick a username ending in "bot" (e.g., "myassistant_bot")
- BotFather gives you a token โ copy it!
Paste that token when the setup wizard asks for it.
Start OpenClaw
In Terminal, type:
openclaw gateway
You should see messages showing it's running. Leave this window open.
Chat with Your Bot!
In Telegram:
- Search for your bot's username (the one you created)
- Start a chat
- Say "Hello!"
Your AI assistant should respond! ๐