OpenClaw 15-Minute Quick Start
Get started with OpenClaw in just 15 minutes - your personal AI assistant that runs on your own devices!
π Prerequisites
- β Basic command line knowledge (know how to open terminal)
- β Node.js 22+ installed - Download here β οΈ Important: Node.js 22 or higher is required
- β An AI provider API key (OpenAI, Anthropic, or other supported providers)
π Step 1: Installation (2 minutes)
Install OpenClaw globally on your system:
npm install -g openclaw@latest
# or: pnpm add -g openclaw@latest
Verify installation:
openclaw --version
You should see the version number displayed.
Troubleshooting:
- If you see βcommand not foundβ, restart your terminal
- For permission errors, try
sudo npm install -g openclaw@latest(Mac/Linux) - Windows users: run terminal as Administrator
π Step 2: Run the Onboarding Wizard (3 minutes)
OpenClaw includes an interactive wizard that guides you through the complete setup:
openclaw onboard --install-daemon
What the wizard sets up:
- Gateway - The core service that manages your AI assistant
- Workspace - Your skills and configuration directory (
~/.openclaw/workspace) - Channels - Connect your favorite messaging apps (optional)
- API Keys - Configure your AI provider credentials
Wizard prompts you for:
- AI Provider Selection - Choose OpenAI, Anthropic, or others
- API Key - Enter your providerβs API key
- Model Selection - Pick your preferred AI model
- Channel Setup (optional) - Connect WhatsApp, Telegram, Slack, etc.
What gets created:
~/.openclaw/
βββ openclaw.json # Main configuration
βββ workspace/ # Your skills and agents
β βββ skills/ # Custom skills
β βββ AGENTS.md # Agent behavior
β βββ SOUL.md # AI personality
β βββ TOOLS.md # Available tools
βββ credentials/ # Stored API keys (encrypted)
π Step 3: Start the Gateway (2 minutes)
Once setup is complete, start the OpenClaw Gateway:
openclaw gateway --port 18789 --verbose
What this does:
- Starts the WebSocket gateway (control plane)
- Enables communication with your AI assistant
- Displays detailed logging output
- Runs on port 18789 by default
Keep the gateway running - This is your AI assistantβs control center.
Alternative: Run as a daemon/service
If you used --install-daemon during onboarding, the gateway may already be running as a background service.
Check gateway status:
# Test if gateway is running
curl http://localhost:18789/health
# Or use OpenClaw CLI
openclaw status
β‘ Step 4: Send Your First Message (4 minutes)
Now you can interact with your AI assistant through multiple methods:
Method 1: Command Line (Direct)
openclaw agent --message "Hello! What can you help me with?"
Method 2: Send to Connected Channel
If you set up a channel during onboarding:
# Send to WhatsApp number
openclaw message send --to +1234567890 --message "Hello from OpenClaw!"
# Send to Telegram
openclaw message send --to @username --message "Test message"
Method 3: Use WebChat UI
Open your browser and navigate to:
http://localhost:18789
This opens the WebChat interface where you can:
- Chat directly with your AI assistant
- View conversation history
- Manage sessions
- Monitor gateway status
Example conversations to try:
# Get help
openclaw agent --message "What are your capabilities?"
# Create a to-do list
openclaw agent --message "Create a shopping list for dinner"
# Get information
openclaw agent --message "What's the weather like today?"
π οΈ Step 5: Explore Skills & Automation (4 minutes)
OpenClaw uses a skills-based system for automation. Skills are reusable capabilities that your AI assistant can use.
Check Available Skills:
# List installed skills
openclaw skills list
# Get skill details
openclaw skills info web-scraper
Create Your First Skill:
Skills in OpenClaw are Markdown files in your workspace:
# Navigate to workspace
cd ~/.openclaw/workspace/skills
# Create a new skill directory
mkdir my-first-skill
cd my-first-skill
# Create the skill definition file
cat > SKILL.md << 'EOF'
# My First Skill
## Description
This skill demonstrates how to create custom OpenClaw skills.
## Capabilities
- Greet users
- Provide helpful information
- Demonstrate skill structure
## Usage
Simply ask the assistant to use this skill!
EOF
Use Your New Skill:
# Ask your assistant to use the skill
openclaw agent --message "Use the my-first-skill to greet me"
π§ Common Issues & Solutions
Issue: βcommand not found: openclawβ
Solution: Make sure npm global bin directory is in your PATH
# Check npm prefix
npm config get prefix
# Add to PATH (example)
export PATH="$PATH:$(npm config get prefix)/bin"
# Or restart your terminal after installation
Issue: βGateway wonβt startβ or βPort already in useβ
Solution:
# Check if something is using port 18789
lsof -i :18789 # Mac/Linux
netstat -ano | findstr :18789 # Windows
# Use a different port
openclaw gateway --port 18790
Issue: βInvalid API keyβ
Solution:
- Verify your API key with your provider (OpenAI, Anthropic, etc.)
- Make sure you copied the entire key
- Re-run the onboarding wizard:
openclaw onboard
Issue: βNode.js version too oldβ
Solution:
# Check your Node.js version
node --version
# Upgrade to Node.js 22+
# Visit https://nodejs.org or use nvm:
nvm install 22
nvm use 22
Issue: βPermission deniedβ when installing
Solution:
# Clear npm cache
npm cache clean --force
# Reinstall with proper permissions
sudo npm install -g openclaw@latest # Mac/Linux
# Run terminal as Administrator # Windows
π‘ Pro Tips
Tip 1: Run Gateway as a Background Service
Instead of keeping a terminal window open:
# Install as a daemon (systemd/launchd service)
openclaw onboard --install-daemon
# Start the service
openclaw gateway start
# Check status
openclaw status
# View logs
openclaw logs
Tip 2: Configure Your AI Model
Edit ~/.openclaw/openclaw.json:
{
"agent": {
"model": "openai/gpt-4o"
}
}
Tip 3: Enable Remote Access
Use Tailscale to access your gateway from anywhere:
# Configure in openclaw.json
{
"gateway": {
"tailscale": {
"mode": "serve" // tailnet-only or "funnel" for public
}
}
}
# Or use SSH tunnel
ssh -L 18789:localhost:18789 your-server
Tip 4: Connect Multiple Channels
OpenClaw supports 20+ messaging platforms:
# Run onboarding again to add channels
openclaw onboard
# Popular options:
# - WhatsApp (requires phone pairing)
# - Telegram (requires bot token)
# - Slack (requires app setup)
# - Discord (requires bot token)
# - iMessage (Mac only, BlueBubbles)
π― Whatβs Next?
Youβve successfully set up your personal AI assistant! Continue your journey:
- π± Connect Your Favorite Channels - Set up WhatsApp, Telegram, Slack, Discord, and more
- π οΈ Create Custom Skills - Build your own automation skills
- π§ Advanced Configuration - Fine-tune your assistantβs behavior
- π Explore the Skills Library - Discover community-built skills
- π Remote Access Setup - Access your assistant from anywhere
π Need Help?
- π¬ Discord Community - Chat with other users
- π Official Documentation - Comprehensive guides
- π GitHub Issues - Report bugs
- π FAQ - Frequently asked questions
β±οΈ Total Time: 15 minutes π Difficulty: Beginner π― Result: Your personal AI assistant is running and ready to help!
π Key Concepts
- Gateway: The core service that manages your AI assistant (runs on port 18789)
- Workspace: Directory at
~/.openclaw/workspacecontaining your skills and configuration - Channels: Messaging platforms where you can interact with your assistant
- Skills: Reusable automation capabilities that your assistant can use
- Sessions: Conversation contexts that the AI maintains
Next Steps: Start chatting with your assistant through the WebChat UI at http://localhost:18789 or through any connected channel!
Congratulations!
You've completed this tutorial. Ready for the next challenge?