claw-insights
v0.1.4
Published
Real-time monitoring dashboard for OpenClaw gateway
Maintainers
Readme
Features
- Zero Intrusion — Pure read-only sidecar; no code changes, no cloud calls, data never leaves your machine
- Session Replay — Full transcript timeline with role separation, tool calls, and per-turn token tracking
- Shareable Snapshots — Generate PNG/SVG status cards via REST API with themes, languages, and detail levels
- Metrics Dashboard — Per-model token breakdown, error rates, and uptime over 30m / 1h / 6h / 12h / 24h
- Event Logs — Structured viewer with density heatmap, filtering, and search
- One Command Setup — Auto-discovers your running gateway, lightweight SQLite storage
- Dark / Light · EN / 中文 — Full theming and i18n with runtime toggle
Quick Start
# Install
npm install -g claw-insights
# Start (auto-connects to your running OpenClaw gateway)
claw-insights startOn launch you'll see an access URL:
✅ Claw Insights v0.1.0 ready in 1.2s
➜ Open: http://127.0.0.1:41041/?token=abc123...
Auth: token (auto-generated)
PID 12345 · daemon · Port 41041Open the URL — token is exchanged for a session cookie, and you're in.
claw-insights status # Show current access URL
claw-insights status --json # Machine-readable status (includes auth.accessUrl)
claw-insights stop # Stop daemon
claw-insights start --no-auth # Disable authenticationExample (status --json, trimmed):
{
"schemaVersion": 1,
"server": { "port": 41041, "url": "http://127.0.0.1:41041" },
"auth": {
"mode": "token-cookie",
"tokenUrlPresent": true,
"accessUrl": "http://127.0.0.1:41041/?token=..."
}
}→ Full install options, snapshot API, and troubleshooting: docs/configuration.md
🤖 AI Agent Friendly
Ships with structured resources for AI agents — see AGENTS.md for the full index:
| Skill | Use case | | ----------------------------------------- | ------------------------------------------------- | | install | Install, configure, and launch | | snapshot | Capture dashboard as PNG/SVG/JSON via REST or CLI |
Architecture
claw-insights/
├── packages/
│ ├── server/ Express + GraphQL Yoga + SQLite + Satori renderer
│ ├── web/ React 19 + Vite + Tailwind + ECharts + urql
│ └── shared/ Codegen TypeScript types (shared between server & web)
├── bin/ CLI entry (start/stop/restart/status/logs/snapshot/run)
└── codegen.ts GraphQL codegen config (3 targets)Data flow: OpenClaw gateway → log tailing + CLI → SQLite → GraphQL (SSE subscriptions) → React
→ Full architecture, dev setup, and codegen: docs/architecture.md
Documentation
| Document | Description | | -------------------------------------- | ------------------------------------- | | Configuration | All env vars, config file, auth model | | Architecture | System design, dev setup, testing | | API Reference | GraphQL + REST endpoint signatures | | AGENTS.md | AI agent skill index |
Contributing
See CONTRIBUTING.md for development setup, PR guidelines, and code conventions.
Security
See SECURITY.md for vulnerability reporting and security model.
