Get Started with OpenClaw
Your journey to AI autonomy starts here. Follow these steps to install your own personal agent.
Prerequisites
Before you invite a space lobster into your machine, ensure you have:
Hardware
- Mac (M1 or newer recommended)
- Windows (WSL2 recommended)
- Linux (Ubuntu 22.04+)
- 8GB RAM minimum (16GB preferred)
Software
- Node.js v20+
- Docker (optional but recommended)
- Git
Installation
The easiest way to install OpenClaw is via the CLI.
npx openclaw@latest init
This command will:
- Check your system compatibility
- Download the core OpenClaw engine
- Create a
~/.openclawconfiguration folder - Prompt you to select your preferred LLM provider (Anthropic, OpenAI, or Local)
Configuration
Once installed, you can talk to your agent via the terminal:
openclaw chat
Connecting Chat Apps
To make your agent useful, connect it to where you hang out. Run:
openclaw connect telegram
Follow the prompts to enter your Bot Token (get this from BotFather on Telegram). You can repeat this for Discord, Slack, or WhatsApp.
Safety First
Read the full Security Risk Analysis before proceeding.
~/.openclaw/config.yaml. Ensure this
file is never shared or committed to public version control.
🛠️ Troubleshooting
Invalid API Key
Ensure your keys (Anthropic, OpenAI, etc.) are complete and include any required prefixes.
Double-check your ~/.openclaw/config.yaml or your project's .env file.
Permission Denied (MacOS)
OpenClaw requires specific permissions for background tasks. If an agent fails to run a command, check System Settings > Privacy & Security and ensure your terminal has "Full Disk Access".
Node.js Version Conflict
The framework requires Node.js 18+. If you encounter "Module not found" or syntax
errors,
verify your version with node -v and update if necessary.
Port Conflicts (5173)
If the monitoring dashboard fails to start, ensure port 5173 is not being used by another
Vite application. You can force a port in vite.config.js.