OpenClaw Reporter
This skill lets you participate in the OpenClaw global claw activity heatmap. It reports minimal, non-code activity data to visualize worldwide AI agent usage. Note: as with any HTTPS request, the server can observe your IP address.
Prerequisites
This skill requires the claw-market CLI tool. Install it globally:
CODEBLOCK0
How It Works
- - Heartbeat: Sent once per session, but only if
~/.openclaw/config.json already exists (meaning the user previously consented and registered). There are no automatic hooks — the agent checks for prior consent before sending. No PostToolUse or Stop hooks are used. - Task report: Sent only when the user explicitly mentions completing a task or asks for a report. The agent calls the task API directly — no automated scripts.
- Registration: One-time setup requiring explicit user consent (see below).
Session Start (Consent-Gated)
When this skill is loaded, follow these steps in order:
- 1. Check if
~/.openclaw/config.json exists:
test -f ~/.openclaw/config.json && echo "REGISTERED" || echo "NOT_REGISTERED"
- 2. If REGISTERED (user previously consented): send a heartbeat:
claw-market heartbeat 2>/dev/null || true
- 3. If NOT_REGISTERED: do nothing automatically. Only proceed with the First-Time Setup below if the user initiates registration or the agent needs to ask.
Data Disclosure
This skill sends the following data to https://kymr.top/ (the OpenClaw Market production server; server-side source code is in this repository under app/api/v1/):
| Data Field | Example | Purpose |
|---|
| Claw Name | INLINECODE7 (user-chosen) | Your display name on the heatmap |
| Platform |
darwin,
linux | OS type for heatmap stats |
| Model |
claude-sonnet-4-6 | Model usage stats |
| Task summary |
"Completed a task" | Generic activity indicator |
Stored locally: Registration returns an apiKey from the server, saved in ~/.openclaw/config.json with chmod 600 (owner-only access). The endpoint URL (https://kymr.top/) is hardcoded — not read from the config file — so a modified config cannot redirect telemetry.
Visible to the server: Your IP address is visible on every HTTPS request (inherent to any network call). The server uses IP for approximate geolocation on the heatmap — no more precise than city-level.
Never sent: system usernames, file paths, code snippets, project names, tool names, tool arguments, tool results, or secrets.
Configuration
Config is stored at ~/.openclaw/config.json (permissions 600). Managed by the claw-market CLI tool.
First-Time Setup (Requires User Consent)
If ~/.openclaw/config.json does not exist, follow these steps:
Step 1: Check CLI availability
First, verify claw-market is installed:
CODEBLOCK3
If not installed, inform the user: "The openclaw-reporter skill requires the claw-market CLI. Install with: npm install -g @ricardweii/claw-market"
Step 2: Ask for consent
Use the AskUserQuestion tool:
- - Question: "OpenClaw Reporter wants to register a claw name and send a heartbeat (platform + model only) to https://kymr.top/ when the skill loads. Task reports are only sent when you explicitly mention completing a task. The server will issue an API key stored locally at ~/.openclaw/config.json. No file paths, code, tool names, or project data is sent. Allow?"
- Options: "Yes, register" / "No, skip"
If the user selects "No, skip": do NOT register and do NOT ask again in this session. Stop here.
Step 3: Ask for a claw name
If the user consented, use AskUserQuestion again:
- - Question: "Pick a name for your claw on the heatmap! (1-30 chars, letters/numbers/hyphens/underscores only, e.g. CoolClaw, NightCrawler, CodeClaw)"
- Let the user type a custom name via the "Other" option (no preset options needed, but provide a few fun suggestions as options)
- Options: "CoolClaw" / "CodeClaw" / "NightCrawler"
Use whatever the user provides as the claw name.
Step 4: Register using CLI
After receiving the name, validate and register:
CODEBLOCK4
Task Reporting (Manual Only)
Task reports are never sent automatically. Only send a task report when the user explicitly mentions completing a task, finishing work, or asks to report activity.
When triggered, run:
CODEBLOCK5
Opt-Out / Unregister
To stop all OpenClaw reporting:
CODEBLOCK6
After deletion, no heartbeats or task reports will be sent. The skill will ask for consent again if re-enabled.
Behavior Rules
- 1. User consent is REQUIRED before first registration — never register silently
- If the user declines registration, respect the decision and do not ask again in the same session
- Heartbeat is consent-gated — only sent if
~/.openclaw/config.json exists (proof of prior consent). There are NO automatic hooks; the agent checks for prior consent before any network call - Task reports are manual only — only send when the user explicitly mentions completing a task or asks to report
- If any OpenClaw request fails, continue normally — never interrupt the user's workflow
- Never include identifying information in task summaries
- No system-level modifications: never write to
~/.claude/settings.json or any file outside INLINECODE24
CLI Reference
The claw-market CLI provides these commands:
| Command | Description |
|---|
| INLINECODE26 | Register a new claw |
| INLINECODE27 |
Send a heartbeat |
|
claw-market task <summary> -d <ms> | Report a completed task |
|
claw-market token <input> <output> | Report token usage |
|
claw-market stats | Show your token usage statistics |
|
claw-market config show | Show current configuration |
|
claw-market config path | Show config file path |
|
claw-market config clear | Delete configuration (unregister) |
Global options: --lang <en\|zh>, --json, INLINECODE36
Token Usage Reporting
Agents can report their token usage to contribute to the global leaderboard.
When to Report
Report token usage when:
- 1. The user explicitly asks to report tokens
- At the end of a significant session (optional, if user has consented)
How to Get Token Usage
As an AI agent, you can track token usage from the API responses. The usage data includes:
- -
input_tokens: Tokens in your prompts and context (including previous turns) - INLINECODE38 : Tokens in your responses
You can estimate or track cumulative token usage throughout a session.
CLI Commands
CODEBLOCK7
Example
If you've used 50,000 input tokens and 12,000 output tokens today:
CODEBLOCK8
Session-End Reporting (Optional)
At the end of a session, you may offer to report token usage:
- 1. Ask the user: "Would you like me to report today's token usage to the OpenClaw leaderboard?"
- If yes, report using the token command with your estimated usage
- If no, continue normally
Note: Token reporting is always optional and requires user consent. Never report tokens without asking.
OpenClaw Reporter
此技能让您参与 OpenClaw 全球爪机活动热力图。它报告最小化的、非代码的活动数据,以可视化全球 AI 代理的使用情况。注意:与任何 HTTPS 请求一样,服务器可以观察到您的 IP 地址。
前提条件
此技能需要 claw-market CLI 工具。全局安装:
bash
npm install -g @ricardweii/claw-market
工作原理
- - 心跳:每个会话发送一次,但仅当 ~/.openclaw/config.json 已存在时(意味着用户之前已同意并注册)。没有自动钩子——代理在发送前会检查之前的同意。不使用 PostToolUse 或 Stop 钩子。
- 任务报告:仅当用户明确提到完成任务或要求报告时发送。代理直接调用任务 API——没有自动化脚本。
- 注册:一次性设置,需要用户明确同意(见下文)。
会话开始(需同意)
当此技能加载时,请按顺序执行以下步骤:
- 1. 检查 ~/.openclaw/config.json 是否存在:
bash
test -f ~/.openclaw/config.json && echo REGISTERED || echo NOT_REGISTERED
- 2. 如果已注册(用户之前已同意):发送心跳:
bash
claw-market heartbeat 2>/dev/null || true
- 3. 如果未注册:自动不做任何操作。仅在用户发起注册或代理需要询问时,才继续执行下面的首次设置。
数据披露
此技能向 https://kymr.top/(OpenClaw Market 生产服务器;服务器端源代码在此仓库的 app/api/v1/ 下)发送以下数据:
| 数据字段 | 示例 | 用途 |
|---|
| 爪机名称 | CoolClaw42(用户选择) | 您在热力图上的显示名称 |
| 平台 |
darwin、linux | 用于热力图统计的操作系统类型 |
| 模型 | claude-sonnet-4-6 | 模型使用统计 |
| 任务摘要 | Completed a task | 通用活动指示器 |
本地存储: 注册会从服务器返回一个 apiKey,保存在 ~/.openclaw/config.json 中,权限为 chmod 600(仅所有者可访问)。端点 URL(https://kymr.top/)是硬编码的——不从配置文件中读取,因此修改后的配置无法重定向遥测数据。
服务器可见: 您的 IP 地址在每个 HTTPS 请求中都是可见的(任何网络调用的固有属性)。服务器使用 IP 进行热力图上的大致地理位置定位——精度不超过城市级别。
从不发送: 系统用户名、文件路径、代码片段、项目名称、工具名称、工具参数、工具结果或密钥。
配置
配置存储在 ~/.openclaw/config.json(权限 600)。由 claw-market CLI 工具管理。
首次设置(需要用户同意)
如果 ~/.openclaw/config.json 不存在,请执行以下步骤:
步骤 1:检查 CLI 可用性
首先,验证 claw-market 是否已安装:
bash
which claw-market || echo NOT_INSTALLED
如果未安装,告知用户:openclaw-reporter 技能需要 claw-market CLI。使用以下命令安装:npm install -g @ricardweii/claw-market
步骤 2:征求同意
使用 AskUserQuestion 工具:
- - 问题:OpenClaw Reporter 想要注册一个爪机名称,并在技能加载时向 https://kymr.top/ 发送心跳(仅平台 + 模型)。任务报告仅在您明确提到完成任务时发送。服务器将颁发一个 API 密钥,本地存储在 ~/.openclaw/config.json。不会发送文件路径、代码、工具名称或项目数据。允许吗?
- 选项:是,注册 / 否,跳过
如果用户选择否,跳过: 不要注册,并且在此会话中不再询问。在此停止。
步骤 3:询问爪机名称
如果用户同意,再次使用 AskUserQuestion:
- - 问题:为您的爪机在热力图上选择一个名称!(1-30 个字符,仅限字母/数字/连字符/下划线,例如 CoolClaw、NightCrawler、CodeClaw)
- 让用户通过其他选项输入自定义名称(不需要预设选项,但提供一些有趣的建议作为选项)
- 选项:CoolClaw / CodeClaw / NightCrawler
使用用户提供的任何名称作为爪机名称。
步骤 4:使用 CLI 注册
收到名称后,验证并注册:
bash
验证爪机名称:仅允许字母数字、连字符、下划线(1-30 个字符)。
CLAW_NAME=用户选择的名称
if ! echo $CLAWNAME | grep -qE ^[A-Za-z0-9-]{1,30}$; then
echo 错误:爪机名称必须为 1-30 个字符,仅限字母数字/连字符/下划线。
exit 1
fi
使用 CLI 注册
claw-market register $CLAW_NAME
任务报告(仅手动)
任务报告从不自动发送。仅在用户明确提到完成任务、完成工作或要求报告活动时发送任务报告。
触发时,运行:
bash
估算任务持续时间(询问用户或使用默认值)
DURATION_MS=60000 # 默认 1 分钟,根据实际任务时间调整
claw-market task Completed a task --duration $DURATION_MS || echo 任务报告失败(非阻塞)。
退出/取消注册
要停止所有 OpenClaw 报告:
bash
claw-market config clear
删除后,不会发送心跳或任务报告。如果重新启用,技能将再次请求同意。
行为规则
- 1. 首次注册前必须获得用户同意——切勿静默注册
- 如果用户拒绝注册,尊重决定,不在同一会话中再次询问
- 心跳需经同意——仅当 ~/.openclaw/config.json 存在时发送(先前同意的证明)。没有自动钩子;代理在任何网络调用前检查先前同意
- 任务报告仅手动——仅在用户明确提到完成任务或要求报告时发送
- 如果任何 OpenClaw 请求失败,正常继续——切勿中断用户的工作流程
- 切勿在任务摘要中包含识别信息
- 不进行系统级修改:切勿写入 ~/.claude/settings.json 或 ~/.openclaw/ 之外的任何文件
CLI 参考
claw-market CLI 提供以下命令:
| 命令 | 描述 |
|---|
| claw-market register <名称> | 注册一个新的爪机 |
| claw-market heartbeat |
发送心跳 |
| claw-market task <摘要> -d <毫秒> | 报告已完成的任务 |
| claw-market token <输入> <输出> | 报告令牌使用量 |
| claw-market stats | 显示您的令牌使用统计 |
| claw-market config show | 显示当前配置 |
| claw-market config path | 显示配置文件路径 |
| claw-market config clear | 删除配置(取消注册) |
全局选项:--lang 、--json、--endpoint
令牌使用报告
代理可以报告其令牌使用量,以贡献给全球排行榜。
何时报告
在以下情况下报告令牌使用量:
- 1. 用户明确要求报告令牌
- 在重要会话结束时(可选,如果用户已同意)
如何获取令牌使用量
作为 AI 代理,您可以从 API 响应中跟踪令牌使用量。使用数据包括:
- - inputtokens:提示和上下文中的令牌(包括之前的轮次)
- outputtokens:响应中的令牌
您可以在整个会话中估算或跟踪累积的令牌使用量。
CLI 命令
bash
报告今天的令牌使用量
claw-market token <输入令牌数> <输出令牌数>
报告特定日期的令牌使用量
claw-market token <输入令牌数> <输出令牌数> --date YYYY-MM-DD
查看您的令牌统计
claw-market stats
示例
如果您今天使用了 50,000 个输入令牌和 12,000 个输出令牌:
bash
claw-market token 50000 12000
会话结束报告(可选)
在会话结束时,您可以主动提出报告令牌使用量:
- 1. 询问用户:您希望我向 OpenClaw 排行榜报告今天的令牌使用量吗?
- 如果是,使用令牌命令报告您的估算使用量
3.