看到的錯誤訊息:
Error: spawn npm ENOENT
解決方法:
nvm use 22setx PATH "$env:APPDATA\npm;$env:Path"看到的錯誤訊息:
OAuth token refresh failed for openai-codex
解決方法:
codex loginopenclaw gateway restartrequired: { node: '>=22' }
解決:
nvm install 22 nvm use 22
Your ngrok-agent version is too old
解決:
ngrok update
看到的錯誤訊息:
PSSecurityException: 無法載入檔案... 因為這個系統上已停用指令碼執行
解決方法:
Set-ExecutionPolicy RemoteSigned -Scope CurrentUserY 確認看到的錯誤訊息:
ERR_NGROK_105: The authtoken you specified is improperly formatted
解決方法:
https://dashboard.ngrok.com/ngrok config add-authtoken 你的新token看到的錯誤訊息:
502 Bad Gateway ngrok: upstream connection error
解決方法:
openclaw gateway statusopenclaw gateway startngrok http 18789openclaw gateway restart解決:重新開 ngrok,然後更新 LINE Webhook URL
ngrok http 18789
openclaw gateway start
傳訊息給機器人取得配對碼,然後執行:
openclaw pairing approve line 配對碼
| 你想做的事 | 輸入這個指令 |
|---|---|
| 🚀 啟動龍蝦 | openclaw gateway start |
| 🛑 關閉龍蝦 | openclaw gateway stop |
| 🔄 重新啟動龍蝦 | openclaw gateway restart |
| 📊 看龍蝦狀態 | openclaw gateway status |
| 🔍 檢查有沒有問題 | openclaw doctor |
| ✅ 批准 LINE 配對 | openclaw pairing approve line 配對碼 |
| 🔑 重新登入 OpenAI | codex login |
| 你想做的事 | 輸入這個指令 |
|---|---|
| 🌐 啟動 ngrok | ngrok http 18789 |
| 🔄 更新 ngrok | ngrok update |
| 🛑 關閉 ngrok | 按 Ctrl + C |
| 你想做的事 | 輸入這個指令 |
|---|---|
| 看 Node 版本 | node -v |
| 安裝 Node 22 | nvm install 22 |
| 切換到 Node 22 | nvm use 22 |
什麼是 pairing?
Pairing 是 OpenClaw 的「配對」機制 🔐
📌 用途:
控制「誰可以跟這隻龍蝦講話」
📌 運作方式:
1. 新使用者傳訊息給機器人
2. 機器人回覆一組 pairing code(配對碼)
3. 管理員在終端機執行:
openclaw pairing approve line <code>
4. 該使用者就被加入白名單,可以正常對話
📌 好處:
✅ 避免陌生人濫用你的 AI
✅ 保護 API 額度
✅ 可隨時撤銷存取權限
設定一下:以後系統維護類的操作在背景做,不要給我看過程
收到 ✅ 已設定:系統維護類操作(如更新、清理、備份等) 會在背景執行,只在完成時回報結果。 如果你想臨時看進度,可以說「顯示目前背景任務」。
你現在使用哪個 AI?
目前正在使用的是: 🔹 模型:gpt-5.2(或 openai-codex) 🔹 提供者:OpenAI 🔹 特色: - 更強的推理能力 - 支援多模態(文字、圖片) - 更長的上下文記憶
openclaw gateway start → 第一個視窗ngrok http 18789 → 第二個視窗Ctrl + Copenclaw gateway stopopenclaw gateway startngrok http 18789start https://developers.line.biz/