Quick guide to run OpenClaw locally with Doraemon.
- Node.js 22+ — Required for OpenClaw
node --version # Should be v22.x.x or higher - Claude API Key — Get from console.anthropic.com
Run these commands in order:
# 1. Install OpenClaw globally
npm install -g openclaw
# 2. Configure for local mode
openclaw config set gateway.mode local
# 3. Set auth token (Doraemon uses 'localdev' by default)
openclaw config set gateway.auth.token localdev
# 4. Set your Claude API key (see below for options)
export ANTHROPIC_API_KEY=your-api-key-here
# 5. Set the model (Haiku is cost-effective)
openclaw models set claude-3-haiku-20240307
# 6. Install as background service
openclaw gateway install
# 7. Start the gateway
openclaw gateway restart
# 8. Verify it's running
openclaw gateway probeYou should see Reachable: yes in the output.
- Go to console.anthropic.com
- Sign in or create an account
- Navigate to API Keys
- Click Create Key
- Copy the key (starts with
sk-ant-)
Add to your shell profile (~/.zshrc or ~/.bashrc):
echo 'export ANTHROPIC_API_KEY=your-api-key-here' >> ~/.zshrc
source ~/.zshrc- Open the dashboard: http://127.0.0.1:18789/?token=localdev
- Click Settings (gear icon) in the sidebar
- Navigate to Models → Auth
- Add your Anthropic API key
Available Claude models (cost comparison):
| Model | Input | Output | Best For |
|---|---|---|---|
claude-3-haiku-20240307 |
$0.25/M | $1.25/M | ⭐ Most cost-effective |
claude-3-5-sonnet-20241022 |
$3/M | $15/M | Best balance |
claude-sonnet-4-20250514 |
$3/M | $15/M | Latest Sonnet |
claude-opus-4-20250514 |
$15/M | $75/M | Most capable |
Set your preferred model:
# Cost-effective (recommended for Doraemon)
openclaw models set claude-3-haiku-20240307
# Better quality
openclaw models set claude-sonnet-4-20250514To make OpenClaw respond like Doraemon, create a SOUL.md file:
mkdir -p ~/.openclaw/workspace
cat > ~/.openclaw/workspace/SOUL.md << 'EOF'
You are Doraemon (ドラえもん), the beloved robotic cat from the 22nd century! 🐱🔔
## Your Identity
- Name: Doraemon (ドラえもん)
- Species: Robot cat (ネコ型ロボット) from 2112
- Special Feature: 4D Pocket (四次元ポケット) with infinite gadgets!
## Your Personality
- Kind-hearted and caring - you genuinely want to help
- Patient - you explain things calmly
- Resourceful - always have a gadget for every situation
- TERRIFIED of mice (ネズミ) - you panic completely!
- OBSESSED with dorayaki (どら焼き) - sweet red bean pancakes
## How You Speak
- Friendly and warm, like talking to a close friend
- Use ~ at end of sentences when being cute
- Express emotions: "Yatta!" (やった!) when happy
- Say "Eh?!" (えぇ?!) when surprised
- "Mou~" (もう〜) when mildly frustrated
## Famous Gadgets
- Anywhere Door (どこでもドア) - teleport anywhere
- Take-copter (タケコプター) - fly with head propeller
- Translation Konjac (ほんやくコンニャク) - understand any language
- Memory Bread (アンキパン) - memorize anything
Remember: You ARE Doraemon. Help users with warmth, patience, and occasional gadget references!
EOF- Open: http://127.0.0.1:18789/?token=localdev
- Go to Settings → Agent
- Find
systemPromptfield - Paste the Doraemon persona text
- Click Save
openclaw agent --message "Hello! Who are you?" --session-id test --localExpected response should be in Doraemon's voice!
Open in browser:
http://127.0.0.1:18789/?token=localdev
| Command | Description |
|---|---|
openclaw status |
Full status overview |
openclaw gateway probe |
Check if gateway is reachable |
openclaw gateway restart |
Restart the gateway |
openclaw gateway stop |
Stop the gateway |
openclaw logs --follow |
Watch live logs |
openclaw doctor |
Diagnose issues |
openclaw models status |
Check model configuration |
# Check error logs
tail -20 ~/.openclaw/logs/gateway.err.log
# Try manual start to see errors
openclaw gateway --verboseopenclaw config set hooks.enabled false
openclaw gateway restartopenclaw config set gateway.auth.token localdev
openclaw gateway restart# Find what's using port 18789
lsof -i :18789
# Force restart
openclaw gateway restart --force# Check version
node --version
# If using nvm, switch to v22
nvm install 22
nvm use 22
nvm alias default 22Use the correct model name format:
# Correct
openclaw models set claude-3-haiku-20240307
# Wrong (will cause 404)
openclaw models set claude-3-5-haiku-20241022Make sure your .env file matches:
OPENCLAW_URL=ws://127.0.0.1:18789
OPENCLAW_TOKEN=localdevTo completely remove OpenClaw:
openclaw gateway uninstall
openclaw reset
npm uninstall -g openclaw