OpenClaw
Introduction
OpenClaw 是一款開源的個人 AI 數位助理,讓你在各種通訊平台上擁有專屬的智慧管家。無論是自動回覆訊息、整理資訊、串接工作流程,OpenClaw 都能幫你搞定。
- YT: 解剖小龍蝦 — 以 OpenClaw 為例介紹 AI Agent 的運作原理 - YouTube
- 為什麼我拖了一個多月才開始使用OpenClaw? (附接入飛書完整詳細教程,新手必看)
- OpenClaw 教學:26 個 Tools + 53 個 Skills 完整指南 | WenHao Yu
Resources
Installation
- 【保姆级】OpenClaw 全网最细教学:安装→Skills实战→多Agent协作,1 小时全精通! | 小林的博客-AI学长
- YT: 【保姆级】OpenClaw 全网最细教学:安装→Skills实战→多Agent协作,1 小时全精通! - YouTube
With Docker
git clone https://github.com/openclaw/openclaw
cd openclaw
export OPENCLAW_IMAGE="ghcr.io/openclaw/openclaw:latest"
./scripts/docker/setup.sh
CLI Commands
Browser Access
- 遠端存取可以使用 SSH Port Forwarding
~/.openclaw/openclaw.json :
"gateway": {
"port": 18789,
"mode": "local",
"bind": "lan",
"controlUi": {
"allowedOrigins": [
"http://localhost:18789",
"http://127.0.0.1:18789"
]
},
Approve the device
docker compose run --rm devices list
docker compose run --rm devices approve <request-id>
Telegram Access
Create a Bot from Telegram
- Open Telegram
- Chat with
@BotFather - Run
/newbot, follow prompts to create your bot, and save the token.- Bot Name: <whatever>
- Bot Username: <unique-name and must end in 'bot'>
Go to OpenClaw CLI
docker compose run --rm openclaw-cli channels add --channel telegram --token "<bot-token>"
Go to Telegram
- Open you-bot
- Send "Hi"
- Getting a pairing code "XXXXX"
Go to OpenClaw CLI
docker compose run --rm openclaw-cli pairing list telegram
docker compose run --rm openclaw-cli pairing approve telegram XXXXX
Done