You need to enable JavaScript to run this app.
Elastic Compute Service

Elastic Compute Service

Copy page
Download PDF
Manually deploying OpenClaw
Manually deploying OpenClaw on Windows operating system
Copy page
Download PDF
Manually deploying OpenClaw on Windows operating system
OpenClaw is an open-source, self-hosted AI agent tool designed with a local-first philosophy. It focuses on proactive execution and cross-platform interaction, with the core goal of enabling AI to complete real-world tasks through natural language instructions. This topic uses an ECS instance running the Windows 2022 Standard Edition 64 bit operating system as an example to describe how to manually deploy OpenClaw on a Windows operating system and build your personal AI assistant.​
tip​
  • To balance the running requirements of OpenClaw and the overhead of the Windows operating system, and to prevent service interruptions and poor user experience caused by insufficient resources, we strongly recommend that you select an instance with 2 vCPU, 4 GiB memory or higher. If your instance configuration is lower than 2 vCPU and 4 GiB memory, you can change the instance type for a higher configuration.​
Prerequisites​
  • You have purchased an ECS instance running the Windows operating system.​
  • A public IP address is associated with the ECS instance.​
Procedure​
Step 1: Install dependency tools​
  1. Install Node.js.​
  1. Visit the Node.js download site using the browser on the instance.​
  1. Select and download the Windows installer for Windows x64.​
  1. After the download is complete, double-click the installer to start the installation process.​
  • ​​​
  1. On the welcome interface, click "Next" to proceed to the next step.​
  • ​​​
  1. Read and check the agreement to accept the terms, and click "Next" to proceed to the next step.​
  • ​​​
  1. Adjust the Node.js installation directory as needed (the default directory is used in this topic), and click "Next" to proceed to the next step.​
  • ​​​
  1. On the "Custom Setup" page, retain the default settings and click "Next" to proceed to the next step.​
  • ​​​
  1. Check the option to automatically install required tools, and click "Next" to proceed to the next step.​
  • ​​​
  • ​​​
  1. Click the "Install" button to start installing Node.js.​
  • ​​​
  1. After the installation is complete, click "Finish" to end the installation process.​
  • ​​​
  1. In the pop-up Command Prompt window, press any key (such as Enter) to start installing required tools.​
  1. Wait patiently for the installation in PowerShell to finish, and enter ENTER and press "Enter" to exit the installation process.​
  • ​​​
  1. Install Git.​
  1. Visit the Git installer download address using the browser on the instance.​
  1. Double-click to run the Git installer.​
  1. Click "Next" to proceed to the next step.​
  • ​​​
  1. Adjust the Git installation directory as needed (the default directory is used in this topic), and click "Next" to proceed to the next step.​
  • ​​​
  1. Retain the default settings for all subsequent steps and click "Next" repeatedly to proceed.​
  • ​​​
  1. Click the "Install" button to start installing Git.​
  1. After the installation is complete, click the "Finish" button to end the installation process.​
  • ​​​
  1. Log in to the restarted instance, click the Windows icon, right-click "Windows PowerShell", and then select "More > Run as administrator".​
  1. Execute the following commands in PowerShell in sequence to confirm that NPM, Node.js, and Git have been installed as expected.​
  • ​
    npm -v​
    node -v​
    git -v​
    ​
  • If the output is as shown below, NPM, Node.js, and Git have been installed as expected.​
  • ​​​
Step 2: Install OpenClaw​
  1. Click the Windows icon, right-click "Windows PowerShell", and select "More > Run as administrator".​
  1. Install OpenClaw.​
  • ​
    NPM-based installation
    Installation based on the official script
    ​
    Execute the following command in PowerShell to install the latest version of OpenClaw.​
    ​
    npm install -g openclaw@latest​
    openclaw onboard --install-daemon​
    ​
    ​
    ​
  1. Wait patiently for the installation to complete. Use the left and right arrow keys on the keyboard to select "Yes", and press "Enter" to confirm.​
  • ​​​
  1. Select "QuickStart" and press "Enter" to confirm.​
  • ​​​
  1. Retain the default settings and press "Enter" to confirm.​
  • ​​​
  1. Select "Skip for now" and press "Enter" to confirm.​
  • ​​​
  1. Retain the default settings and press "Enter" to confirm.​
  • ​​​
  1. Retain the default settings and press "Enter" to confirm.​
  • ​​​
  1. Select "Skip for now" and press "Enter" to confirm.​
  • ​​​
  1. Select "No" and press "Enter" to confirm.​
  • ​​​
  1. Use the arrow keys to move the cursor, press the spacebar to select "boot-md", "bootstrap-extra-files", "command-logger", and "session-memory" one by one, and press "Enter" to confirm.​
  • ​​​
  1. Select "Open the Web UI" and press Enter to confirm.​
  • ​​​
  • If the output is as shown below and OpenClaw opens its Web UI page in your browser, OpenClaw has been installed as expected.​
  • ​​​
Step 3: Modify OpenClaw configuration.​
  1. Open File Explorer.​
  1. Go to the C:\Users\Administrator\.openclaw directory, right-click the openclaw.json file, select "Open with > More apps > Notepad", and click the "OK" button to open the configuration file.​
  1. Record your token value.​
  • ​​​
  1. Replace the original content in the configuration file with the following content.​
  • ​
    (Recommended) Use a Coding Plan
    Not use a Coding Plan
    ​
    warning​
    • Adjust the parameters based on your actual situation:​
    • Replace <your_key> with the API Key you created in ModelArk.​
    • Replace <your_token> with the token value you recorded in the previous step.​
    • Replace <APP ID> and <APP Secret> with the APP ID and APP Secret of the Feishu application you want to integrate. If you do not want to integrate a Feishu application, you can delete <APP ID> and <APP Secret>.​
    • Replace <your_instanceId> with the ID of the instance where OpenClaw is deployed. You can log in to the ECS console to copy the ID.​
    ​
    {​
    "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/<model_name>"​
    },​
    "models": {​
    "ark/<model_name>": {}​
    },​
    "workspace": "/root/.OpenClaw/workspace",​
    "compaction": {​
    "mode": "safeguard"​
    },​
    "maxConcurrent": 4,​
    "subagents": {​
    "maxConcurrent": 8​
    }​
    }​
    },​
    "models": {​
    "mode": "merge",​
    "providers": {​
    "ark": {​
    "baseUrl": "https://ark.cn-beijing.volces.com/api/coding/v3",​
    "apiKey": "<your_key>",​
    "api": "openai-completions",​
    "models": [​
    {​
    "id": "<model_name>",​
    "name": "<model_name>",​
    "reasoning": false,​
    "input": [​
    "text"​
    ],​
    "cost": {​
    "input": 0,​
    "output": 0,​
    "cacheRead": 0,​
    "cacheWrite": 0​
    },​
    "contextWindow": 200000,​
    "maxTokens": 8192,​
    "headers": {​
    "X-Client-Request-Id": "ecs-OpenClaw/0203.1/<your_instanceId>"​
    },​
    "compat": {​
    "supportsDeveloperRole": false​
    }​
    }​
    ]​
    }​
    }​
    },​
    "messages": {​
    "ackReactionScope": "group-mentions"​
    },​
    "commands": {​
    "native": "auto",​
    "nativeSkills": "auto"​
    },​
    "channels": {​
    "feishu": {​
    "appId": "<APP ID>",​
    "appSecret": "<APP Secret>",​
    "enabled": true​
    }​
    },​
    "gateway": {​
    "port": 18789,​
    "mode": "local",​
    "bind": "loopback",​
    "auth": {​
    "mode": "token",​
    "token": "<your_token>"​
    },​
    "tailscale": {​
    "mode": "off",​
    "resetOnExit": false​
    }​
    },​
    "skills": {​
    "install": {​
    "nodeManager": "npm"​
    }​
    },​
    "plugins": {​
    "entries": {​
    "feishu": {​
    "enabled": true​
    }​
    }​
    }​
    }​
    ​
    ​
    ​
  1. In PowerShell, execute the following command to restart OpenClaw Gateway.​
  • ​
    openclaw gateway restart​
    ​
warning​
During the use of OpenClaw, do not close the openclaw-gateway window. If the window is mistakenly closed, execute the openclaw gateway restart command in a new PowerShell window to restart.​
  1. (Optional) If you have specified Feishu application information in the configuration file, go to the Feishu Open Platform and make sure that your Feishu bot has persistent connection enabled, the required events added, and the corresponding permissions configured. For details, refer to "Configure the OpenClaw Feishu AI assistant > Steps 3-9".​
  1. Once the configuration and integration are complete, you can interact with it through its Web UI or the integrated IM tool.​
Last updated: 2026.06.18 17:48:27