Table of contents
- What you’ll achieve
- Before you start
- You’ll need
- Recommended environment
- Step 0: Quick system check (optional)
- Step 1: Install OpenClaw (two options)
- Option A (recommended, safer): download then run
- Option B (fastest, higher risk)
- Step 2: If “command not found”
- 2.1 Reopen the terminal
- 2.2 Reload your shell config
- 2.3 Check PATH and install location
- Step 3: Remove legacy installs (strongly recommended)
- Step 4: Onboarding
- Step 5: Start OpenClaw
- Step 6: Proxy/network issues (common in restricted networks)
- Step 7: Permission errors (EACCES)
- Common questions
- Q1: Channel doesn’t respond?
- Q2: Skill downloads fail (GitHub throttling)?
- Security reminders
- Next steps
OpenClaw Local Install (Mac / Linux)
Install OpenClaw on Mac/Linux, complete onboarding, and verify a working local setup.
- Install
- Onboarding
- Mac
- Linux
OpenClaw Local Install (Mac / Linux)
⚠️ Security note: OpenClaw may have high-privilege capabilities.
Strongly recommended: test on a spare machine / VM / separate user account first.
What you’ll achieve
- Install OpenClaw on Mac/Linux
- Complete onboarding
- Start OpenClaw and verify it works
- Fix common issues (command not found, permissions, proxy/network, legacy conflicts)
Before you start
You’ll need
- A terminal (Terminal on macOS, system terminal on Linux)
- Network access to the install script (use proxy tips if needed)
- A model API key (e.g., Anthropic/Claude)
Recommended environment
- ✅ Just trying it out: local is fine, ideally on a VM / spare machine
- ✅ Long-running: use Docker/VPS for safer isolation →
/docs/vps-setup
Step 0: Quick system check (optional)
uname -awhoamiStep 1: Install OpenClaw (two options)
“curl | bash” is the fastest but runs remote code directly.
For beginners, it’s safer to download first and review quickly.
Option A (recommended, safer): download then run
curl -fsSL https://openclaw.bot/install.sh -o install.shsed -n '1,120p' install.shbash install.shOption B (fastest, higher risk)
curl -fsSL https://openclaw.bot/install.sh | bash✅ Verify
openclaw --version || truewhich openclaw || trueYou should see a version number and a valid path (e.g., /usr/local/bin/openclaw).
Step 2: If “command not found”
This is the most common issue. Try in order:
2.1 Reopen the terminal
Many scripts update PATH. A restart often fixes it.
2.2 Reload your shell config
source ~/.zshrc 2>/dev/null || truesource ~/.bashrc 2>/dev/null || true2.3 Check PATH and install location
echo $PATHwhich openclaw || trueStep 3: Remove legacy installs (strongly recommended)
OpenClaw was renamed from Moltbot (formerly Clawdbot). Old installs may conflict.
Symptoms
openclawnot found- Or it runs but behaves strangely
Fix
npm uninstall -g clawdbot || truenpm uninstall -g moltbot || truenpm uninstall -g openclaw || trueThen re-run Step 1.
✅ Verify
which moltbot || truewhich clawdbot || truewhich openclaw || trueopenclaw --versionStep 4: Onboarding
openclaw onboard --flow quickstartYou’ll likely be asked:
- Confirm high-risk capabilities →
yes - Pick a channel → Telegram is the easiest to verify
- Enter your model API key
- Choose a default model
✅ Verify
- Onboarding finishes without errors
- Config saved (usually under
~/.openclaw)
Step 5: Start OpenClaw
Foreground (recommended first run):
openclaw startBackground (optional):
openclaw start --detach✅ Verify (pick one)
- No persistent errors in logs
- Send a test message in your channel and get a response
Step 6: Proxy/network issues (common in restricted networks)
Symptoms
- Onboarding hangs
- Skills/dependencies fail to download
- Channel doesn’t respond
Fix: set proxy then restart
export https_proxy=http://127.0.0.1:7890export http_proxy=http://127.0.0.1:7890openclaw startStep 7: Permission errors (EACCES)
Symptoms
- npm global install fails with EACCES
- Writes to config/data directory fail
Recommended fixes
- Use nvm to manage Node (avoid global install permissions)
- Run under a user-owned directory
If you don’t want to fight permissions, use Docker/VPS:
/docs/vps-setup
Common questions
Q1: Channel doesn’t respond?
- Check network/proxy/firewall
- Use Telegram for minimal verification
- Read logs for error hints
Q2: Skill downloads fail (GitHub throttling)?
- Ensure network stability
- Use proxy in restricted networks
- Download manually and place under the data directory (see troubleshooting)
Security reminders
- Avoid running on your primary machine with sensitive data
- Never commit API keys
- Long-term use → Docker/VPS isolation →
/docs/vps-setup - Read security hardening →
/docs/advanced-config
Next steps
- Safer deployment:
/docs/vps-setup - Troubleshooting with screenshots:
/docs/troubleshooting - VPS selection guide:
/vps - Use cases and examples:
/use-cases
TweetEmbed examples (if your site supports MDX components)
Frequently asked questions
Quick clarifications for common blockers while following this tutorial.
Can I deploy OpenClaw without Docker?Installation
Yes. Docker is recommended for reproducibility, but local native setup is supported for first-time learning.
Why does WhatsApp stop responding after QR login?Troubleshooting
Most often this is a session invalidation issue. Re-authenticate with a spare account and verify heartbeat logs before production usage.
How should I store provider keys safely?Security
Keep secrets in environment variables, restrict shell history, and avoid embedding keys in YAML committed to git.
Related tutorials
OpenClaw on Windows (Beginner-Friendly)
- Install
- Windows
- PowerShell
OpenClaw Docker / VPS Deployment (Recommended)
- VPS
- Docker
- Ubuntu
- Deployment
Connect OpenClaw to Telegram (Recommended)
- Telegram
- Channel
Was this helpful?