English Post: openclaw-installation-guide
The English version of this article.
OpenClaw is a powerful AI tool for building and managing intelligent agents, sub-agents, and integrations. Whether you’re a developer looking to automate workflows or a hobbyist exploring AI, this guide will walk you through installation and basic usage. As of 2026, with its recent integration into larger ecosystems, OpenClaw is more accessible than ever.
Prerequisites
Before installing, ensure you have:
- Node.js (version 18 or higher)
- A code editor like VS Code
- Basic knowledge of JavaScript or Python
- Internet connection for downloads
Step 1: Installation
OpenClaw can be installed via npm or from source.
Option 1: NPM Install (Recommended)
- Open your terminal.
- Run: `npm install -g openclaw`
- Verify: `openclaw —version`
This installs the CLI globally, allowing you to run commands anywhere.
Option 2: From Source
- Clone the repo: `git clone https://github.com/openclaw/openclaw.git\`
- Navigate: `cd openclaw`
- Install dependencies: `npm install`
- Build: `npm run build`
- Link: `npm link`
Step 2: Setting Up Your First Gateway
OpenClaw uses a “gateway” for managing agents.
- Initialize: `openclaw gateway init`
- Configure: Edit the generated config file with your API keys (e.g., for integrations).
- Start: `openclaw gateway start`
Your gateway is now running on localhost:3000 (default).
Step 3: Creating Your First Agent
Agents are the core of OpenClaw.
- Create: `openclaw agent create myagent —model gpt-4`
- Define tasks: Use the web interface or CLI to add tasks like “spawn sub-agents” or “integrate browser control”.
- Run: `openclaw agent run myagent —task “Hello World”`
Step 4: Basic Usage Examples
- Browser Control: Integrate with Chrome for automation: `openclaw browser open https://example.com\`
- Sub-Agents: Spawn helpers: `openclaw subagent spawn —task “analyze data”`
- Cron Jobs: Schedule tasks: `openclaw cron add “daily backup” —schedule “0 0 * * *“`
Tips for Beginners
- Start with the docs: Visit https://docs.openclaw.ai for tutorials.
- Join the community: Discord or GitHub for support.
- Experiment Safely: Use sandbox mode to test without affecting production.
OpenClaw is evolving rapidly—stay updated for new features like enhanced AI integrations.