OpenClaw
Overview
OpenClaw is a multi-channel AI gateway that connects to WhatsApp, Telegram, Slack, Discord, and more. It runs locally and is exposed to the internet via Cloudflare Tunnel.
Instances
| Machine |
URL |
Port |
Model |
Version |
| DEEPCOOL |
openclaw-deepcool.bigleagueinc.com |
18888 |
anthropic/claude-opus-4-6 |
2026.2.25 |
Project Location
D:\Projects\openclaw\openclaw\
Key Files
| File |
Purpose |
.env |
API keys, gateway token/password |
openclaw.mjs |
CLI entry point |
dist/ |
Built JavaScript output |
ui/ |
Vite-based Control UI source |
src/ |
TypeScript source |
tsdown.config.ts |
Build config (tree-shaking enabled) |
scripts/run-node.mjs |
Dev runner with auto-rebuild |
Environment Variables
| Variable |
Purpose |
OPENCLAW_GATEWAY_TOKEN |
WebSocket API auth token |
OPENCLAW_GATEWAY_PASSWORD |
Alternative password auth |
OPENAI_API_KEY |
OpenAI API access |
ANTHROPIC_API_KEY |
Anthropic/Claude API access |
Common Commands
# Build
pnpm build # Full build (tsdown + post-scripts)
pnpm ui:build # Build Control UI only
# Run
pnpm start # Start gateway (auto-rebuilds if stale)
pnpm dev # Dev mode (tsx, no build needed)
pnpm gateway:watch # Watch mode (auto-rebuild on file changes)
# Stop
openclaw gateway stop # Graceful stop
taskkill /F /IM node.exe # Force kill (Windows)
schtasks /End /TN "OpenClaw Gateway" # Stop scheduled task
# Test
pnpm test # Unit tests (Vitest)
pnpm test:e2e # End-to-end tests
pnpm check # Format + lint + typecheck
Ports
| Port |
Service |
| 18888 |
Gateway (HTTP + WebSocket) |
| 18890 |
Browser Control |
Active Channels
- WhatsApp Web (+14169494991)
Plugins
/pair — Device pairing
/phone — Phone control
/voice — Voice/talk
Build Optimizations Applied
- Tree-shaking enabled in
tsdown.config.ts (reduces dead code)
- Faster dev startup — excludes
.d.ts, .map files from mtime checks in scripts/run-node.mjs
- Build produces 294 chunks, ~8.5MB total
Windows Scheduled Task
OpenClaw runs as a Windows Scheduled Task called OpenClaw Gateway. It auto-starts on boot.
# Check status
schtasks /Query /TN "OpenClaw Gateway"
# Stop
schtasks /End /TN "OpenClaw Gateway"
# Restart
schtasks /Run /TN "OpenClaw Gateway"