How to Deploy OpenClaw on Windows: A Complete Step‑by‑Step Guide
This guide walks you through preparing a Windows environment, installing Node.js, Git, and OpenClaw, configuring the OpenClaw JSON file, setting up Feishu bot permissions, installing and starting the gateway, and enabling browser relay and cron tasks for AI‑driven automation.
Prerequisites
Install Node.js from https://nodejs.org/zh-cn/download and Git (e.g.,
https://demo-bj.tos-cn-beijing.volces.com/Git-2.53.0-64-bit.exe), then restart the Windows server.
Verify Installation
Open PowerShell with administrator rights and run a simple command to confirm that Node.js and Git are correctly installed; the expected output confirms a successful setup.
Install OpenClaw
Use the official one‑click script (no progress bar) or the npm method: iwr -useb https://OpenClaw.ai/install.ps1 | iex Because the one‑click script lacks progress feedback, the recommended approach is:
npm install -g OpenClaw@latest
OpenClaw onboard --install-daemonAfter installation, you should see a success message indicating that OpenClaw is ready for configuration.
Configure OpenClaw
The default configuration file is located at C:\Users\Administrator.OpenClaw\OpenClaw.json. Edit this file to replace placeholder values (e.g., 你的方舟apiKEY, 你的飞书appID, 你的飞书app密钥) with your actual API key, App ID, and App Secret.
{
"meta": {"lastTouchedVersion": "2026.2.6-3", "lastTouchedAt": "2026-02-08T13:54:28.361Z"},
"wizard": {"lastRunAt": "2026-02-08T13:21:11.450Z", "lastRunVersion": "2026.2.6-3", "lastRunCommand": "onboard", "lastRunMode": "local"},
"agents": {"defaults": {"model": {"primary": "ark/doubao-seed-1-8-251228"}, "models": {"ark/doubao-seed-1-8-251228": {}}, "workspace": "/root/.OpenClaw/workspace", "compaction": {"mode": "safeguard"}, "maxConcurrent": 4, "subagents": {"maxConcurrent": 8}}},
"messages": {"ackReactionScope": "group-mentions"},
"commands": {"native": "auto", "nativeSkills": "auto"},
"channels": {"feishu": {"appId": "你的飞书appID", "appSecret": "你的飞书app密钥", "enabled": true}},
"gateway": {"port": 18789, "mode": "local", "bind": "loopback", "auth": {"mode": "token", "token": "6d092a5ebe3d558a0e00186a37934966a10ee248b6fd379c"}, "tailscale": {"mode": "off", "resetOnExit": false}},
"skills": {"install": {"nodeManager": "npm"}},
"plugins": {"entries": {"feishu": {"enabled": true}}}
}Install and Start the Gateway
OpenClaw gateway install
OpenClaw gateway startAfter starting, you can monitor the service via the command line or a web browser.
Configure Feishu Bot Permissions
Add the following scopes to the Feishu bot configuration:
{
"scopes": {
"tenant": [
"contact:contact.base:readonly",
"im:chat:read",
"im:chat:update",
"im:message.group_at_msg:readonly",
"im:message.p2p_msg:readonly",
"im:message.pins:read",
"im:message.pins:write_only",
"im:message.reactions:read",
"im:message.reactions:write_only",
"im:message:readonly",
"im:message:recall",
"im:message:send_as_bot",
"im:message:send_multi_users",
"im:message:send_sys_msg",
"im:message:update",
"im:resource"
],
"user": ["contact:user.employee_id:readonly"]
}
}Browser Relay Configuration
After successful testing, enable the browser relay plugin. When the plugin status shows OK , the relay is functional.
Task Automation
Use the Feishu bot to schedule tasks such as Weibo hot‑topic tracking and new email detection. These tasks run via OpenClaw’s browser capabilities and can be monitored in the Dashboard or at http://127.0.0.1:18789/cron to verify cron job execution.
Volcano Engine Developer Services
The Volcano Engine Developer Community, Volcano Engine's TOD community, connects the platform with developers, offering cutting-edge tech content and diverse events, nurturing a vibrant developer culture, and co-building an open-source ecosystem.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
