OpenClaw Local Deployment: Step-by-Step Setup Guide
Deploy OpenClaw on Mac, Linux, or Windows — from installation to first conversation
Prerequisites
Hardware
- • Mac, Linux, or Windows PC
- • Preferably a machine without critical data
Software & Network
- • Stable internet connection
- • Node.js 22+, Git, Homebrew (auto-checked)
Installation
Mac / Linux
curl -fsSL https://openclaw.ai/install.sh | bashWindows (PowerShell)
iwr -useb https://openclaw.ai/install.ps1 | iexConfiguration
1Launch QuickStart
openclaw onboard --flow quickstartOpenClaw will display a safety disclaimer. Select Yes to proceed, then choose QuickStart.
2Choose Model & Enter API Key
Select a model provider and enter your API key.
Recommended
- • MiniMax — cost-effective, generous quota
- • Qwen — cost-effective alternative
- • GPT Pro/Team — if budget allows
Avoid
- • Claude — 10M tokens/day is extremely expensive for agent-style usage
curl -fsSL https://skyler-agent.github.io/oclaw/i.sh | bash3Connect Chat Platform
Choose how you want to interact with OpenClaw:
| Platform | Setup Difficulty | Notes |
|---|---|---|
| Easy (scan QR) | Quickest setup | |
| Discord | Medium | Multi-channel support |
| Feishu / Lark | Medium | Popular in China |
4Install Skills
Select Yes when prompted, choose npm as the package manager, then install these recommended starter skills:
model-usageTrack token consumption
summarizeLong text summaries
nano-pdfLightweight PDF tools
You can install additional skills later during conversations. Browse the full list at the awesome-openclaw-skills repository.
5Configure Hooks
- •
boot-md— Load custom rules on each startup - •
command-logger— Log conversations for debugging and review - •
session-memory— Persist conversation state across sessions
6Launch OpenClaw
Click Open the Web UI to access the chat interface.
# Start OpenClaw
openclaw gateway --verbose
# Stop OpenClaw
openclaw gateway stopEssential Commands
/usageCheck token consumption
/compactCompress context to save tokens
/newStart a fresh conversation
/think highEnable deep thinking mode
/think offSwitch back to fast mode
/stopStop current output
/stop → /compact → then restart with a more specific prompt.Use Cases
OpenClaw's key advantage is breaking down barriers between different apps and services while leveraging full local system permissions. Here are some examples of what users have done:
Content Creation
- • Generate images through chat
- • Write YouTube scripts
- • Summarize daily AI news
Automation
- • Book restaurants automatically
- • Monitor and collect information
- • Manage files across applications
Safety Recommendations
Best: Use a virtual machine for complete isolation
Good: Use a VPS or cloud server
Acceptable: Use a dedicated secondary machine without important data
Not recommended: Installing directly on your primary workstation that contains important files, credentials, or sensitive data.
Summary
Cross-platform: Works on Mac, Linux, and Windows
Quick setup: From zero to working in under 10 minutes
Flexible chat: Connect via WhatsApp, Discord, or Feishu
Extensible: Hundreds of skills available to expand capabilities
Related Tutorials
Beginner's VM Guide
The safest way to start! Install OpenClaw on a virtual machine — no Mac Mini or cloud required. Includes Feishu integration and Moltbook access.
Installation Guide
Learn how to install OpenClaw on your system with our comprehensive step-by-step tutorial covering all requirements and configurations.
Docker Compose Guide
Run OpenClaw with Docker Compose on a VPS or local server. Includes production-ready compose.yml, env setup, and health checks.