Installation
Get OpenClaw running on your Mac. This should take 10 minutes.
npm install -g openclaw@latest → openclaw onboard --install-daemon → openclaw gateway start. Done. You now have a working OpenClaw Gateway.
Step 1: Install OpenClaw
npm install -g openclaw@latest
This installs OpenClaw globally. It will take 2-3 minutes.
When it's done, verify:
openclaw --version
You should see something like openclaw/2026.3.13.
Step 2: Run Onboarding
openclaw onboard --install-daemon
This interactive wizard will:
- Create
~/.openclawdirectory - Ask which AI provider you prefer (Anthropic recommended)
- Install OpenClaw as a system service (daemon)
- Create initial config files
~/.openclaw/.env securely.
Step 3: Start the Gateway
openclaw gateway start
You should see:
✓ Gateway started on localhost:18789
✓ Ready for incoming connections
✓ Visit http://localhost:18789 to view dashboard
Keep this running in the terminal. The Gateway stays open and listens for messages.
Step 4: Verify It's Working
In a new terminal tab (Cmd+T):
openclaw status
You should see something like:
Gateway: ✓ Running (localhost:18789)
Sessions: 0 active
Channels: [telegram] ready
Agent: main (claude-sonnet-4.6)
Troubleshooting Installation
/opt/homebrew/bin/npm install -g openclaw@latest
lsof -i :18789 # See what's using it
kill -9 <PID> # Kill it
openclaw onboard --skip-daemon # Skip daemon install
# Then manually start: openclaw gateway start
What Just Happened
You now have:
- ~/.openclaw — Your OpenClaw workspace directory
- ~/.openclaw/.env — Your API keys (keep this private!)
- ~/.openclaw/openclaw.json — Your gateway config
- Running Gateway — Listening on localhost:18789
The Gateway is the heart of everything. It routes messages, manages sessions, handles auth, and coordinates with your AI. Leave it running.
Next: Connect Telegram
Right now you have a working gateway with no channels. Next step is to pair your Telegram bot so you can actually talk to your AI.
Questions & Suggestions
Have a question about this page? Spotted something wrong? Want to suggest an improvement? We read everything and respond to all paid-tier questions.