Skip to content

Latest commit

 

History

History
111 lines (72 loc) · 2.02 KB

File metadata and controls

111 lines (72 loc) · 2.02 KB

⚙️ Configuration

← Back to README


OpenClaw Setup

Before using Doraemon, you need to configure OpenClaw:

1. Install OpenClaw

npm install -g openclaw

2. Configure Gateway Mode

openclaw config set gateway.mode local

3. Set Authentication Token

openclaw config set gateway.auth.token localdev

Note: Doraemon uses localdev as the default token. You can use any token, just make sure it matches in both OpenClaw config and Doraemon's .env file.

4. Install and Start the Service

openclaw gateway install
openclaw gateway restart

5. Verify It's Running

openclaw status

You should see Runtime: running and RPC probe: ok.

6. Access Dashboard

Open in browser: http://127.0.0.1:18789/?token=localdev


Environment Variables

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=localdev

Connecting to OpenClaw

Local Deployment

If you're running OpenClaw locally:

# Default local gateway
OPENCLAW_URL=ws://127.0.0.1:18789

Cloud Deployment

For 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

Connection Examples

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

Running with Environment Variables

# 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

← Back to README