mirror of
https://github.com/hansjone/oclaw.git
synced 2026-10-09 05:50:44 +08:00
Add Chinese quickstart in README, env file step in OPEN_SOURCE_QUICKSTART, and RUNBOOK pointer to the one-page checklist. Co-authored-by: Cursor <cursoragent@cursor.com>
2.6 KiB
2.6 KiB
Open Source Quickstart (Windows)
This guide is the shortest path for first-time users.
For a Chinese step-by-step “out of the box” checklist (env file, gateway, optional netx), see the repository root README.md → 开箱即用(从零跑起来).
Prerequisites
- Python 3.11+
- Node.js 22+
- PowerShell (Windows 10/11)
Environment file (recommended)
Copy the template once at repo root:
copy _local\system.env.example _local\system.env
Gateway startup loads _local/system.env. Configure LLM keys here or later in Admin (docs/ENVIRONMENT_VARIABLES.md).
Path A: Web/Admin only (no Weixin/WhatsApp required)
- Bootstrap Python venv:
powershell -ExecutionPolicy Bypass -File .\scripts\bootstrap_venv.ps1
- Start full stack in background:
powershell -ExecutionPolicy Bypass -File .\scripts\start_all.ps1 -Background
- Open:
- Admin:
http://127.0.0.1:8787/admin - Chat:
http://127.0.0.1:8787/chat
Notes:
- If Weixin/WhatsApp sidecars are not installed,
start_all.ps1will skip them with a warning and continue. - This does not block Admin/Chat.
Path B: Enable Weixin (Personal WeChat)
powershell -ExecutionPolicy Bypass -File .\runtime\operations\scripts\weixin_install.ps1
powershell -ExecutionPolicy Bypass -File .\runtime\operations\scripts\weixin_login.ps1
powershell -ExecutionPolicy Bypass -File .\runtime\operations\scripts\weixin_start.ps1
Notes:
- No global
openclawCLI installation is required. - Runtime dependencies are installed locally in sidecar workspace.
- Login/account state is persisted under
data/channel_sidecar/oclaw-weixin/state/. - The Weixin flow does not rely on
%USERPROFILE%\.openclaw.
Path C: Enable WhatsApp (experimental)
powershell -ExecutionPolicy Bypass -File .\runtime\operations\scripts\whatsapp_install.ps1
powershell -ExecutionPolicy Bypass -File .\runtime\operations\scripts\whatsapp_login.ps1
powershell -ExecutionPolicy Bypass -File .\runtime\operations\scripts\whatsapp_start.ps1
Admin dispatch controls (Weixin/WhatsApp)
In Admin:
Stackpage: channel-level controls (Bind specialist/Comprehensive)User/Channel bindingpage: account-level controls per channel/account
Priority:
- Account-level dispatch config
- Channel-level dispatch config
- Default (
expert + generalist)
Common commands
Start:
.\scripts\start_all.ps1 -Background
Status:
.\scripts\status_all.ps1
Stop:
.\scripts\stop_all.ps1
Force stop:
.\scripts\stop_all.ps1 -Force