Before using Doraemon, you need to configure OpenClaw:
npm install -g openclawopenclaw config set gateway.mode localopenclaw config set gateway.auth.token localdevNote: Doraemon uses
localdevas the default token. You can use any token, just make sure it matches in both OpenClaw config and Doraemon's.envfile.
openclaw gateway install
openclaw gateway restartopenclaw statusYou should see Runtime: running and RPC probe: ok.
Open in browser: http://127.0.0.1:18789/?token=localdev
Create a .env file or set environment variables:
# OpenClaw Gateway URL (required for AI features)
OPENCLAW_URL=ws://127.0.0.1:18789
# Gateway auth token (must match OpenClaw config)
OPENCLAW_TOKEN=localdevIf you're running OpenClaw locally:
# Default local gateway
OPENCLAW_URL=ws://127.0.0.1:18789For cloud-hosted OpenClaw instances:
# Secure WebSocket for cloud
OPENCLAW_URL=wss://your-openclaw-server.com:18789
# With custom port
OPENCLAW_URL=wss://openclaw.example.com:443/gateway| Deployment | URL |
|---|---|
| Local (default) | ws://127.0.0.1:18789 |
| Local (custom port) | ws://localhost:8080 |
| Cloud (secure) | wss://api.openclaw.io:18789 |
| Cloud (behind proxy) | wss://openclaw.mycompany.com/ws |
# macOS / Linux
OPENCLAW_URL=wss://my-server.com:18789 npm run dev
# Windows (PowerShell)
$env:OPENCLAW_URL="wss://my-server.com:18789"; npm run dev
# Windows (CMD)
set OPENCLAW_URL=wss://my-server.com:18789 && npm run dev