在 Northflank 上部署
使用一鍵範本在 Northflank 上部署 OpenClaw,並在瀏覽器中完成設定。
這是最簡單的「伺服器無需終端機」途徑:Northflank 會為您執行 Gateway,
而您可以透過 /setup 網頁精靈設定所有項目。
- 點擊 Deploy OpenClaw 以開啟範本。
- 如果還沒有帳號,請建立 Northflank 帳號。
- 點擊 Deploy OpenClaw now。
- 設定所需的環境變數:
SETUP_PASSWORD。 - 點擊 Deploy stack 來建置並執行 OpenClaw 範本。
- 等待部署完成,然後點擊 View resources。
- 開啟 OpenClaw 服務。
- 開啟公開的 OpenClaw URL 並在
/setup完成設定。 - 在
/openclaw開啟 Control UI。
您會獲得什麼
Section titled “您會獲得什麼”- 託管的 OpenClaw Gateway + Control UI
- 位於
/setup的網頁設定精靈(無需終端機指令) - 透過 Northflank Volume (
/data) 進行持久化儲存,讓設定/憑證/工作區在重新部署後得以保留
- 造訪
https://<your-northflank-domain>/setup並輸入您的SETUP_PASSWORD。 - 選擇模型/驗證提供者並貼上您的金鑰。
- (選用)加入 Telegram/Discord/Slack 權杖。
- 點擊 Run setup。
- 在
https://<your-northflank-domain>/openclaw開啟 Control UI
如果 Telegram 私訊設定為配對模式,設定精靈可以核准配對碼。
取得聊天權杖
Section titled “取得聊天權杖”Telegram 機器人權杖
Section titled “Telegram 機器人權杖”- 在 Telegram 傳訊給
@BotFather - 執行
/newbot - 複製權杖(看起來像
123456789:AA...) - 將其貼上到
/setup
Discord 機器人權杖
Section titled “Discord 機器人權杖”- 前往 https://discord.com/developers/applications
- New Application → 選擇一個名稱
- Bot → Add Bot
- 在 Bot → Privileged Gateway Intents 下啟用 MESSAGE CONTENT INTENT(必選,否則機器人會在啟動時當機)
- 複製 Bot Token 並貼上到
/setup - 邀請機器人至您的伺服器(OAuth2 URL Generator;範圍:
bot、applications.commands)