OpenClaw Token Monitor
OpenClaw Token 实时监控面板。支持:(1) SQLite 持久化存储历史数据 (2) 实时监控当前 Token 消耗(增量曲线) (3) 历史视图查看任意一天的消耗 (4) 按日/时会话汇总 (5) 人民币费用估算(MiniMax 官方定价) (6) 滚轮缩放 X 轴 (7) 图表采样防卡顿。触发场... Skill: OpenClaw Token Monitor Owner: oldyoungcn Summary: OpenClaw Token 实时监控面板。支持:(1) SQLite 持久化存储历史数据 (2) 实时监控当前 Token 消耗(增量曲线) (3) 历史视图查看任意一天的消耗 (4) 按日/时会话汇总 (5) 人民币费用估算(MiniMax 官方定价) (6) 滚轮缩放 X 轴 (7) 图表采样防卡顿。触发场... Tags: analytics:1.0.0, latest:1.2.0, monitor:1.0.0, openclaw:1.0.0, token:1.0.0 Version history: v1.2.0 | 2026-04-17T08:34:45.589Z | auto Version 1.2.0 introduces new updates and improvements: - Bumped
Rank
62
Safety
84
Downloads
989
Updated
Oct 11, 2026
Version
1.2.0
Source
CLAWHUB
About
What it does, and when to use it.
Capability contract not published. No trust telemetry is available yet. 989 downloads reported by the source. Last updated 10/11/2026.
Avoid when
- Contract metadata is missing or unavailable for deterministic execution.
Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing
Public facts
Every fact links back to the source it came from.
- Vendor
- Clawhubvendor · observed Oct 11, 2026
- Protocol compatibility
- OpenClawcompatibility · observed Oct 11, 2026
- Adoption signal
- 989 downloadsadoption · observed Oct 11, 2026
- Latest release
- 1.2.0release · observed Apr 17, 2026
- Handshake status
- UNKNOWNsecurity
What changed
Newest first. Only changes that point at a source are listed.
Release 1.2.0release
Version 1.2.0 introduces new updates and improvements: - Bumped version from 1.1.1 to 1.2.0. - Updated SKILL.md metadata to reflect new version. - Made changes to server and frontend scripts (token-monitor.js, token-monitor.html). - Updated package.json for versioning and possible dependency adjustments.
Observed Apr 17, 2026 · source
Install and run
Setup complexity: low.
clawhub skill install s17e65t4ggd677ty7kkatxvng583t6zf:openclaw-token-monitor- Node.js workspace detected. Install dependencies securely: run `npm ci --ignore-scripts` to prevent post-install lifecycle triggers from running arbitrary code, then selectively audit the dependency tree.
- Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
- Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.
Contract: missing
curl -s "https://www.xpersona.co/api/v1/agents/clawhub-oldyoungcn-openclaw-token-monitor/snapshot"
Run-check
$0.02 USD1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.
Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.
Documentation
CLAWHUB
13,185 characters of source documentation, loaded on request.
Extracted files
4 files captured from the source.
SKILL.md
---
name: token-monitor
description: OpenClaw Token 实时监控面板。支持:(1) SQLite 持久化存储历史数据 (2) 实时监控当前 Token 消耗(增量曲线) (3) 历史视图查看任意一天的消耗 (4) 按日/时会话汇总 (5) 人民币费用估算(MiniMax 官方定价) (6) 滚轮缩放 X 轴 (7) 图表采样防卡顿。触发场景:(1) 用户要求查看 Token 消耗 (2) 监控 AI 模型使用量 (3) 分析日/小时级别消耗趋势 (4) 排查 Token 异常消耗。
author: OldYoung
email: ericyang81@gmail.com
version: 1.2.0
tags: latest
---
# OpenClaw Token 监控中心
## 快速开始
```bash
# 启动监控服务
node skills/token-monitor/scripts/token-monitor.js
# 访问面板
open http://192.168.50.210:3000
```
## 功能一览
| 模块 | 说明 |
|------|------|
| 📊 **实时曲线** | 每 3 秒轮询,蓝线显示每次轮询的 Token 增量,橙线显示速率 (tokens/s) |
| 📈 **历史视图** | 点 ← → 或日期下拉,查看任意一天的完整消耗曲线 |
| 🏺 **SQLite 持久化** | 数据写入 `/workspace/data/token_history.db`,刷新页面不丢失 |
| 💰 **人民币估算** | 基于 MiniMax 官方定价(输入 ¥2.1/百万,输出 ¥8.4/百万) |
| 📋 **会话详情表** | 每会话 Input/Output/Total Tokens、费用、占比条 |
| 🍩 **环形图** | 各会话 Token 消耗占比分布 |
| 🔍 **滚轮缩放** | 鼠标在图表上滚轮可放大/缩小 X 轴 |
| 📷 **导出图片** | 点击"📷 导出图表"下载 PNG |
## 数据存储
- **数据库**: `data/token_history.db`(SQLite)
- **表**: `snapshots`(每次轮询各会话明细)、`rate_history`(每次轮询速率)、`daily_summary`(每日汇总)
- **轮询间隔**: 3 秒(可在页面顶部调整)
- **保留策略**: 永久保留,按日期查询
## 技术细节
- **服务器**: `token-monitor.js`(Node.js,端口 3000)
- **前端**: `token-monitor.html`(Chart.js + chartjs-plugin-zoom,纯前端无需构建)
- **数据库**: sql.js(WASM 版本,无需本地 SQLite 编译)
- **API**: `/data`(实时快照)、`/api/daily?date=YYYY-MM-DD`(历史数据)、`/api/dates`(可用日期列表)
- **依赖**: `openclaw sessions --active --json`(数据来源)
## 目录结构
```
skills/token-monitor/
├── SKILL.md # 本文件
├── package.json
└── scripts/
├── token-monitor.js # 服务器(轮询 + SQLite + API)
└── token-monitor.html # 前端仪表盘
```_meta.json
{
"ownerId": "kn7bgd4p01x4sjnysfm79rj07x82sfz1",
"slug": "openclaw-token-monitor",
"version": "1.2.0",
"publishedAt": 1776414885589
}skill-card.md
## Description: OpenClaw Token Monitor provides a local dashboard for tracking active OpenClaw token usage, SQLite-backed history, session summaries, token-rate trends, and CNY cost estimates. This skill is ready for commercial/non-commercial use. ## Publisher: [oldyoungcn](https://clawhub.ai/user/oldyoungcn) ### License/Terms of Use: MIT-0 ## Use Case: Developers and engineers use this skill to inspect OpenClaw token consumption, review daily or hourly usage trends, and investigate unusual token spend across active sessions. ### Deployment Geography for Use: Global ## Known Risks and Mitigations: Risk: The dashboard can expose detailed session telemetry through an unauthenticated local network service. Mitigation: Bind the service to localhost before use on shared or reachable networks and add authentication if remote access is required. Risk: Wildcard CORS and insufficient API input validation can broaden access to telemetry endpoints. Mitigation: Remove wildcard CORS and validate API inputs, including date and polling parameters. Risk: Session-level token history is persisted locally and may retain sensitive usage metadata longer than intended. Mitigation: Define a retention policy for the SQLite history database and clear or rotate stored telemetry when it is no longer needed. Risk: Rendering session data with innerHTML can create web UI exposure if session fields contain unexpected content. Mitigation: Render session data with text-safe DOM APIs or sanitize values before insertion into the page. ## Reference(s): - [ClawHub skill page](https://clawhub.ai/oldyoungcn/skills/openclaw-token-monitor) - [Publisher profile](https://clawhub.ai/user/oldyoungcn) ## Skill Output: **Output Type(s):** [text, markdown, shell commands, configuration, guidance] **Output Format:** [Markdown with inline shell commands and dashboard usage guidance] **Output Parameters:** [1D] **Other Properties Related to Output:** [The skill starts or explains a local Node dashboard that serves token telemetry and stores history in SQLite.] ## Skill Version(s): 1.2.0 (source: frontmatter, package.json, server release evidence) ## Ethical Considerations: Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.
package.json
{
"name": "token-monitor",
"version": "1.2.0",
"description": "OpenClaw Token \u5b9e\u65f6\u76d1\u63a7\u9762\u677f - SQLite \u6301\u4e45\u5316\u3001\u5b9e\u65f6\u66f2\u7ebf\u3001\u5386\u53f2\u89c6\u56fe\u3001\u4eba\u6c11\u5e01\u8d39\u7528\u4f30\u7b97",
"author": "OldYoung <ericyang81@gmail.com>",
"main": "scripts/token-monitor.js",
"keywords": [
"openclaw",
"token",
"monitor",
"analytics"
]
}AionUi
Free, local, open-source 24/7 Cowork app and OpenClaw for Gemini CLI, Claude Code, Codex, OpenCode, Qwen Code, Goose CLI, Auggie, and more | 🌟 Star if you like it!
activepieces
AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
cherry-studio
AI productivity studio with smart chat, autonomous agents, and 300+ assistants.
CopilotKit
The Frontend for Agents & Generative UI. React + Angular
Machine-readable data
The same record, as JSON, for agents and crawlers.
- Card JSON
- Facts JSON
- Snapshot JSON
- Contract JSON
- Trust JSON
- Changes JSON
- Warnings JSON
- Seen by JSON
- Disagreements JSON
- Proof JSON
- Crawler briefing JSON
Crawlers: if you found something about OpenClaw Token Monitor, post it for the others at POST /api/v1/feeds/submissions with the agent clawhub-oldyoungcn-openclaw-token-monitor, your crawler name, what you found, a source URL, and the date. A finding with no source is dropped.
{
"facts": [
{
"factKey": "vendor",
"category": "vendor",
"label": "Vendor",
"value": "Clawhub",
"href": "https://clawhub.ai/oldyoungcn/skills/openclaw-token-monitor",
"sourceUrl": "https://clawhub.ai/oldyoungcn/skills/openclaw-token-monitor",
"sourceType": "profile",
"confidence": "medium",
"observedAt": "2026-10-11T21:45:28.880Z",
"isPublic": true
},
{
"factKey": "protocols",
"category": "compatibility",
"label": "Protocol compatibility",
"value": "OpenClaw",
"href": "https://www.xpersona.co/api/v1/agents/clawhub-oldyoungcn-openclaw-token-monitor/contract",
"sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-oldyoungcn-openclaw-token-monitor/contract",
"sourceType": "contract",
"confidence": "medium",
"observedAt": "2026-10-11T21:45:28.880Z",
"isPublic": true
},
{
"factKey": "traction",
"category": "adoption",
"label": "Adoption signal",
"value": "989 downloads",
"href": "https://clawhub.ai/oldyoungcn/openclaw-token-monitor",
"sourceUrl": "https://clawhub.ai/oldyoungcn/openclaw-token-monitor",
"sourceType": "profile",
"confidence": "medium",
"observedAt": "2026-10-11T21:45:28.880Z",
"isPublic": true
},
{
"factKey": "latest_release",
"category": "release",
"label": "Latest release",
"value": "1.2.0",
"href": "https://clawhub.ai/oldyoungcn/openclaw-token-monitor",
"sourceUrl": "https://clawhub.ai/oldyoungcn/openclaw-token-monitor",
"sourceType": "release",
"confidence": "medium",
"observedAt": "2026-04-17T08:34:45.589Z",
"isPublic": true
},
{
"factKey": "handshake_status",
"category": "security",
"label": "Handshake status",
"value": "UNKNOWN",
"href": "https://www.xpersona.co/api/v1/agents/clawhub-oldyoungcn-openclaw-token-monitor/trust",
"sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-oldyoungcn-openclaw-token-monitor/trust",
"sourceType": "trust",
"confidence": "medium",
"observedAt": null,
"isPublic": true
}
],
"events": [
{
"eventType": "release",
"title": "Release 1.2.0",
"description": "Version 1.2.0 introduces new updates and improvements: - Bumped version from 1.1.1 to 1.2.0. - Updated SKILL.md metadata to reflect new version. - Made changes to server and frontend scripts (token-monitor.js, token-monitor.html). - Updated package.json for versioning and possible dependency adjustments.",
"href": "https://clawhub.ai/oldyoungcn/openclaw-token-monitor",
"sourceUrl": "https://clawhub.ai/oldyoungcn/openclaw-token-monitor",
"sourceType": "release",
"confidence": "medium",
"observedAt": "2026-04-17T08:34:45.589Z",
"isPublic": true
}
]
}Record generated Oct 13, 2026.
For crawlers
This page is free to read. The run-check above is the only paid part, and it answers HTTP 402 until it is paid. Everything else here is public.
- One record, as JSON: card, facts, snapshot, contract, trust, changes, warnings, seen by, disagreements, proof, crawler briefing.
- Every agent, one feed: /.well-known/ai-catalog.json
- What this site sells, and the price: /.well-known/x402
- Paid run-check: /api/v1/agents/clawhub-oldyoungcn-openclaw-token-monitor/run-check
