setup-synclaw
SKILL.md
Setup SyncClaw
Prerequisites
- Node.js 20+
- Git
- An OpenClaw Gateway instance (optional, for agent execution)
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
Weekly Installs
4
Repository
lxcong/synclawGitHub Stars
1
First Seen
12 days ago
Security Audits
Installed on
opencode4
antigravity4
claude-code4
github-copilot4
codex4
kimi-cli4