tugcantopaloglu/openclaw-dashboard
🔐 Secure, real-time monitoring dashboard for OpenClaw AI agents. Auth, TOTP MFA, cost tracking, live feed, memory browser and more.
What is it?
OpenClaw Agent Dashboard is a web-based monitoring tool for OpenClaw agents. It gives you a single, real-time view of your agents' activity, resource usage, costs, and system health — all in a secure, password-protected interface.
It runs as a lightweight Node.js server (no database or npm packages required) and is designed for local or private-network use (e.g., via Tailscale).
Key Features
- Session management – See all agent sessions with live activity status.
- Rate limit monitoring – Track Claude and Gemini API usage against rolling windows.
- Cost analysis – Breakdown of spending by model, session, and time period.
- Live feed – Real-time stream of agent messages across sessions.
- Memory viewer – Browse and read agent memory files (e.g.,
MEMORY.md,HEARTBEAT.md). - Files manager – View and edit workspace files, skills, and configs (with security hardening).
- System health – CPU, RAM, disk, temperature with sparklines.
- Service control – Restart OpenClaw, the dashboard, or other services with one click.
- Log viewer – Real-time system logs with auto-refresh.
- Cron management – View, enable/disable, and manually trigger cron jobs.
- Tailscale integration – Show Tailscale status, IP, and connected peers.
- Activity heatmap – Visualize peak usage hours over the last 30 days.
- Streak tracking – Monitor daily activity streaks.
- Session search & filtering – Filter by status, model, date range, with live search.
- Dark/light theme – Toggle and persist preference.
- Keyboard shortcuts – Navigate with hotkeys (1–7, Space, /, Esc, ?).
- Mobile responsive – Works on phones and tablets.
- Browser notifications – Alerts when usage limits are approaching.
- Timeline view – Visual timeline of session activity.
- Git activity – Track recent commits across your repos.
- Claude usage scraper – Fetch real usage data from Claude Code CLI.
- Gemini usage tracking – Monitor Google Gemini model usage with per-model breakdowns.
- Provider switching – Toggle between Claude and Gemini usage on the overview card.
- Per-model selector – Choose which model/window to display (Opus, Sonnet, Pro, Flash, etc.).
- Auto-refresh – Live data updates every 5 seconds.
- Lifetime stats – Total tokens, messages, cost since first session.
- Health history – 24-hour CPU, RAM, temperature, and disk usage sparklines.
- Quick actions – One-click system maintenance (updates, cleanup, restarts).
- macOS compatible – Full support for macOS system stats, services, and memory reporting.
- System security dashboard – UFW rules, open ports, fail2ban, SSH logs, security audit (requires re-authentication).
- Config editor – Edit OpenClaw configuration with JSON validation, auto-backup, and gateway restart (requires re-authentication).
- Docker management – View containers, images, system usage; start/stop/restart containers; prune unused resources.
- Notification center – Audit log event feed with unread badge counter (login, config changes, security events).
- Username/password auth – Secure registration with PBKDF2 password hashing.
- TOTP MFA – Optional two-factor authentication (Google Authenticator compatible).
- Remember me – Session-only or 3-hour persistent login.
- Security hardened – HSTS, CSP, rate limiting, timing-safe comparisons, audit logging.
- Minimal dependencies – Pure Node.js, no database or npm packages required. Optional:
jq(Docker page),tmux+python3(Claude CLI usage scraper),docker(Docker management).
Getting Started
Prerequisites
- Node.js v22 or higher (v24 recommended)
- OpenClaw installed and running
- Optional:
systemdfor service installation on Linux
Quick Start
git clone https://github.com/tugcantopaloglu/openclaw-dashboard.git
cd openclaw-dashboard
# Optional: set your OpenClaw workspace path (auto-detects if not set)
export WORKSPACE_DIR=/path/to/your/openclaw/workspace
# Start the dashboard
node server.js
Then open http://localhost:7000 in your browser. On first visit, you'll see a registration screen — create a username and password, then log in.
Environment Variables
| Variable | Description | Default |
|---|---|---|
DASHBOARD_PORT |
Server port | 7000 |
DASHBOARD_HOST |
Address to listen on | 0.0.0.0 |
DASHBOARD_TOKEN |
Explicit recovery token for password reset | Persisted random token |
DASHBOARD_AUTH_DIR |
Private credentials, recovery token, audit directory | $WORKSPACE_DIR/data |
DASHBOARD_TRUSTED_PROXIES |
Comma-separated exact proxy IPs allowed to supply X-Forwarded-Proto |
Loopback only |
DASHBOARD_GIT_BIN |
Absolute path to git for nonstandard installation | Standard system paths |
WORKSPACE_DIR |
OpenClaw workspace path | $OPENCLAW_WORKSPACE or current directory |
OPENCLAW_DIR |
OpenClaw config directory | ~/.openclaw |
OPENCLAW_CONFIG |
Config Editor file path | $OPENCLAW_DIR/openclaw.json |
OPENCLAW_AGENT |
Agent ID to monitor | main |
DASHBOARD_ALLOW_HTTP |
Allow HTTP from non-local IPs | false |
Authentication & Security
- Registration – First visit shows a registration screen; create a username and password.
- Login – Enter credentials; optionally check “Remember me” for a 3-hour persistent session (otherwise session-only).
- Password security – PBKDF2 hashing (100,000 iterations, SHA-512), random salt, timing-safe comparisons.
- Rate limiting – 5 failed attempts → 15-minute soft lockout; 20 → hard lockout (requires restart).
- MFA (TOTP) – Optional two-factor authentication via Google Authenticator or similar. Codes refresh every 30 seconds, with ±1 window tolerance.
- Password recovery – Use a recovery token (generated on first start) to reset a forgotten password.
- Account reset – If locked out, delete the credentials file and restart the service to re-register.
- HTTPS enforcement – HTTP is blocked except from localhost and Tailscale IPs (100.64.0.0/10). For other networks, use HTTPS or set
DASHBOARD_ALLOW_HTTP=true(not recommended). - Security headers – HSTS, CSP, X-Frame-Options, X-Content-Type-Options, X-XSS-Protection.
- Audit logging – All auth events and destructive actions logged to
audit.log. - Sensitive operations – Config access and system security output require a fresh password/TOTP verification (valid 5 minutes).
- Input validation – Service whitelist, path traversal protection, payload size limits (1MB max).
- Automatic backups –
.bakfiles created before overwriting workspace files.
Running as a Service or Docker
Systemd (Linux)
./install.sh
This creates and enables a systemd service (agent-dashboard) with auto-start and crash recovery. View logs with journalctl -u agent-dashboard -f.
Docker
Build and run with:
docker build -t openclaw-dashboard .
docker run -d \
--name openclaw-dashboard \
-p 3001:3001 \
-e WORKSPACE_DIR=/app/workspace \
-e DASHBOARD_ALLOW_HTTP=true \
-v ~/.openclaw:/home/node/.openclaw:ro \
-v ~/.openclaw/workspace:/app/workspace \
openclaw-dashboard
For Docker management page access, also mount the Docker socket (see README for details).
Troubleshooting (Common Issues)
- “Too many failed attempts” – Wait 15 minutes or restart the service to clear rate limits.
- Can’t log in after password change – Use the “Forgot password?” flow with your recovery token.
- MFA code not working – Ensure your phone’s clock is synchronized; codes have ±30 second tolerance.
- Dashboard not loading – Check service status, logs, and verify the port with
curl http://localhost:7000/api/auth/status. - “HTTPS required” error – Access via localhost or Tailscale, or set
DASHBOARD_ALLOW_HTTP=true. - Blank page after update – Hard refresh the browser and clear cache.
API Reference
The dashboard exposes a REST API. All endpoints (except a few) require an Authorization: Bearer <sessionToken> header.
Unauthenticated endpoints:
GET /api/auth/status– Check authentication statusGET /api/health– Process health and uptimePOST /api/auth/login– Log inPOST /api/auth/register– Register (only if no credentials exist)POST /api/auth/reset-password– Reset password with recovery token
Authenticated endpoints (examples):
GET /api/config– Dashboard configurationGET /api/sessions– List all agent sessionsGET /api/usage– 5-hour rolling window usage data- … and many more (see README for full list).
Important: This dashboard is not hardened for public internet exposure. It is designed for local or private-network use (e.g., via Tailscale). If you must expose it, use a reverse proxy with HTTPS and IP allowlisting.
Related
- Project
- Project
- Project
- Project
- Project