1/ Cài Node.js (bắt buộc)
curl -fsSL https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
source ~/.bashrc
nvm install --lts
nvm use --lts
node -v
npm -v
2/ Cài OpenClaw (bắt buộc)
# Install OpenClaw
npm i -g openclaw
# Meet your lobster
openclaw onboard
Cách gỡ sạch OpenClaw
npm uninstall -g openclaw
3/ Lấy API key Claude
4/ Mở config OpenClaw
nano ~/.openclaw/openclaw.json
Thoát TUI nếu đang ở trong đó, Ctrl + C hoặc như mình thì viết trong chat nó cũng hiểu
5/ Bật Telegram
{
"channels": {
"telegram": {
"enabled": true,
"botToken": "DAN_TOKEN_CUA_BAN",
"dmPolicy": "pairing"
}
}
}
6/ Test Telegram
/reset
Bạn là trợ lý kỹ thuật của tôi, trả lời ngắn, nói thẳng, ưu tiên giải pháp.
CÀI TAILSCALE
curl -fsSL https://tailscale.com/install.sh | sh
sudo tailscale up
tailscale status
tailscale ip