返回 Skill 列表
extension
分类: 开发与工程无需 API Key

setup-synclaw

从零开始安装并运行SyncClaw。当用户说“设置synclaw”、“安装synclaw”、“部署synclaw”、“初始化synclaw”,或需要在新机器上让SyncClaw运行时使用。SyncClaw是一个智能任务控制台,它将人工任务管理和自主AI代理执行联系起来——一个看板,在这里任务通过实时思维流被分配给AI代理。

person作者: jakexiaohubgithub

Setup SyncClaw

Prerequisites

Quick Setup

Run the bundled setup script:

bash scripts/setup.sh --gateway-url ws://localhost:18789 --gateway-token YOUR_TOKEN

Options:

  • --dir <path> — parent directory for the clone (default: current directory)
  • --gateway-url <url> — OpenClaw Gateway WebSocket endpoint (default: ws://localhost:18789)
  • --gateway-token <token> — Gateway auth token

The script clones the repo, installs deps, configures .env, initializes the SQLite database, builds for production, and installs the synclaw CLI globally.

Manual Setup

git clone https://github.com/lxcong/synclaw.git && cd synclaw
npm install
cp .env.example .env   # edit with your Gateway URL and token
npm run db:generate
npm run db:push
npm run db:seed         # optional: sample data
npm run build
npm install -g synclaw  # install CLI globally

Environment Variables

| Variable | Description | Default | |----------|-------------|---------| | DATABASE_URL | SQLite path | file:./dev.db | | OPENCLAW_GATEWAY_URL | Gateway WebSocket endpoint | ws://localhost:18789 | | OPENCLAW_GATEWAY_TOKEN | Gateway auth token | — |

CLI Usage

After setup, manage the server with the synclaw CLI (run from the project directory):

synclaw start [-p port] [-H host] [-d dev]   Start server
synclaw stop [-t timeout]                     Stop server
synclaw restart                               Restart server
synclaw status                                Show PID, uptime, Gateway status
synclaw logs [-f] [-n lines]                  View/follow logs

Verification

After setup, verify everything works:

cd synclaw
synclaw start
synclaw status        # should show Running with PID and port
curl localhost:3000   # should return HTML
synclaw stop