Clone
4
7.3 OpenClaw
jsc-wiki edited this page 2026-10-14 06:27:29 +00:00

OpenClaw

第7章 AI 工具 · 來源:JSC 知識庫

簡介

在 Ubuntu 安裝 OpenClaw,完成初始化並啟動服務。

步驟

1. 更新系統套件

apt update && apt upgrade -y && apt install -y curl wget git unzip

2. 安裝 NodeJS

curl -fsSL https://nodesource.com | bash -
apt install -y nodejs

3. 安裝 OpenClaw

curl -fsSL https://openclaw.ai/install.sh | bash

4. 驗證 OpenClaw 版本

openclaw version

5. 初始化 OpenClaw 系統

openclaw onboard --install-daemon

6. 啟動 OpenClaw 服務

sudo loginctl enable-linger $USER
openclaw gateway status --port 18789

7. 設定 OpenClaw 密碼

echo "$(openssl rand -hex 32)" > openclaw-token
openclaw config set gateway.auth.token "$(cat openclaw-token)"

← 7.2 CLIProxyAPI · 本章目錄 · 全書目錄 · 7.4 OpenCode →