# openclaw 使用說明 ## 環境配置和安裝(都使用終端機進行) ### 第一步先安裝 node brew install node@22 ### 第二步安裝 openclaw curl -fsSL https://openclaw.ai/install.sh | bash ## openclaw 配置 ### 同意書 一定要按yes  ### 選快速啟用就好了  ### 選模型供應商 要串API  ### 選擇要串的機器人  ### 可以選擇是否要裝內建的skill   ### 這裡接其他工具的 API 可以先不要用   ### 開啟網站 UI   ## openclaw 基本指令 ### 配置openclaw openclaw onboard ### 啟用服務 openclaw gateway status ### 停止服務 openclaw gateway stop ### 重啟服務 openclaw gateway restart ### 更新到最新穩定版 openclaw update ### 開啟openclaw資料夾 #### 可以透過 openclaw.json 來更改配置 open /Users/kddlab/.openclaw  ## 把 openclaw 架設在 line 上 ### 在選擇 channel 時,選擇 line  ### 接著安裝需要的外掛  #### 後面跟一開始配置時一樣 ### 然後尋找是否有成功安裝 openclaw plugins list  #### 但尚未啟動 ### 喚醒 line 外掛 openclaw plugins enable line  ### 接著重啟 openclaw gateway restart ### 進到 web UI 設定 line channel #### 去到 line developers 註冊完機器人,並把機器人的 channel access token 和 channel secret 輸入進去  ### 設定 webhook path  #### 最後按儲存 ### 下載 ngrok brew install ngrok  ### 第一次使用 ngrok 要先註冊帳號,並把 token 貼進終端機 ngrok config add-authtoken <your token> ### 啟動穿透 ngrok http 18789 #### 187189 是 openclaw 的 port   #### 這樣就是啟用成功 ### 把 https 的那段網址加上在 openclaw 設定的 webhool path https://heterographic-nonsubconscious-delila.ngrok-free.dev/line #### 輸入在 line developers 機器人中的 messaging API 裡面的 webhook URL
×
Sign in
Email
Password
Forgot password
or
Sign in via Google
Sign in via Facebook
Sign in via X(Twitter)
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
Continue with a different method
New to HackMD?
Sign up
By signing in, you agree to our
terms of service
.