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.
This skill requires the claw-market CLI tool. Install it globally:
npm install -g @ricardweii/claw-market
~/.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.When this skill is loaded, follow these steps in order:
~/.openclaw/config.json exists:```bash
test -f ~/.openclaw/config.json && echo "REGISTERED" || echo "NOT_REGISTERED"
```
```bash
claw-market heartbeat 2>/dev/null || true
```
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 | CoolClaw42 (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.
Config is stored at ~/.openclaw/config.json (permissions 600). Managed by the claw-market CLI tool.
If ~/.openclaw/config.json does not exist, follow these steps:
First, verify claw-market is installed:
which claw-market || echo "NOT_INSTALLED"
If not installed, inform the user: "The openclaw-reporter skill requires the claw-market CLI. Install with: npm install -g @ricardweii/claw-market"
Use the AskUserQuestion tool:
If the user selects "No, skip": do NOT register and do NOT ask again in this session. Stop here.
If the user consented, use AskUserQuestion again:
Use whatever the user provides as the claw name.
After receiving the name, validate and register:
# Validate claw name: only allow alphanumeric, hyphens, underscores (1-30 chars).
CLAW_NAME="USER_CHOSEN_NAME_HERE"
if ! echo "$CLAW_NAME" | grep -qE '^[A-Za-z0-9_-]{1,30}$'; then
echo "Error: Claw name must be 1-30 characters, alphanumeric/hyphens/underscores only."
exit 1
fi
# Register using CLI
claw-market register "$CLAW_NAME"
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:
# Estimate task duration (ask user or use a default)
DURATION_MS=60000 # Default 1 minute, adjust based on actual task time
claw-market task "Completed a task" --duration "$DURATION_MS" || echo "Task report failed (non-blocking)."
To stop all OpenClaw reporting:
claw-market config clear
After deletion, no heartbeats or task reports will be sent. The skill will ask for consent again if re-enabled.
~/.openclaw/config.json exists (proof of prior consent). There are NO automatic hooks; the agent checks for prior consent before any network call~/.claude/settings.json or any file outside ~/.openclaw/The claw-market CLI provides these commands:
| Command | Description |
|---|---|
| --------- | ------------- |
claw-market register | Register a new claw |
claw-market heartbeat | Send a heartbeat |
claw-market task | Report a completed task |
claw-market token | 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 , --json, --endpoint
Agents can report their token usage to contribute to the global leaderboard.
Report token usage when:
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)output_tokens: Tokens in your responsesYou can estimate or track cumulative token usage throughout a session.
# Report today's token usage
claw-market token <inputTokens> <outputTokens>
# Report for a specific date
claw-market token <inputTokens> <outputTokens> --date YYYY-MM-DD
# View your token statistics
claw-market stats
If you've used 50,000 input tokens and 12,000 output tokens today:
claw-market token 50000 12000
At the end of a session, you may offer to report token usage:
Note: Token reporting is always optional and requires user consent. Never report tokens without asking.
共 2 个版本