# Send Token Usage Tracker to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "oken-usage-tracker",
    "name": "Token Usage Tracker",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/gerhardvr26/oken-usage-tracker",
    "canonicalUrl": "https://clawhub.ai/gerhardvr26/oken-usage-tracker",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/oken-usage-tracker",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=oken-usage-tracker",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "README.md",
      "skill-config.json",
      "SKILL.md",
      "scripts/context_summarizer.py",
      "scripts/dedupe_log.py",
      "scripts/migrate_timestamps.py"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "oken-usage-tracker",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-10T03:09:14.871Z",
      "expiresAt": "2026-05-17T03:09:14.871Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=oken-usage-tracker",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=oken-usage-tracker",
        "contentDisposition": "attachment; filename=\"oken-usage-tracker-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "oken-usage-tracker"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/oken-usage-tracker"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/oken-usage-tracker",
    "downloadUrl": "https://openagent3.xyz/downloads/oken-usage-tracker",
    "agentUrl": "https://openagent3.xyz/skills/oken-usage-tracker/agent",
    "manifestUrl": "https://openagent3.xyz/skills/oken-usage-tracker/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/oken-usage-tracker/agent.md"
  }
}
```
## Documentation

### token-usage-tracker

Quick start

Configure defaults in skill-config.json (timezone, log_folder).
Install scripts (examples provided) into your workspace and wire the interceptor into your message pipeline.
Use scripts/context_summarizer.py before sending large contexts to reduce token usage.

What this skill provides

Logging: token_tracker.py writes per-call token usage to a JSONL log. Includes timestamp normalization.
Interceptor: token_interceptor.py example that normalizes timestamps and forwards sanitized messages to the tracker.
Alerts: token_alerts.py example for threshold-based alerts (no external posting by default).
Compression: context_summarizer.py produces short summaries to reduce token payloads.
Utilities: migration and cleanup scripts (convert timestamps, dedupe log entries).

When to use

Use this skill when you want transparent per-call token accounting, to keep token usage low, or to protect sensitive/verbose contexts by summarizing before sending to the model.

Files

scripts/

token_interceptor.py — example interceptor (normalizes timestamps)
token_tracker.py — logging helper
token_alerts.py — alert examples
context_summarizer.py — compression helper
migrate_timestamps.py — migration utility
dedupe_log.py — dedupe utility


references/

examples/systemd/ — example unit files (install manually)


skill-config.json — configurable defaults
README.md — usage and install notes

Configuration

See skill-config.json for defaults. The skill exposes:

timezone: default UTC
log_folder: default ./skills/logs (relative to OpenClaw workspace)
compression settings: summary_target_tokens, max_context_tokens

Security and installation

The scripts are examples and safe by default. They do not change system state or install services automatically.
Example systemd/unit files are provided in references/systemd/ — apply them manually after review.

License: MIT (adapt as you prefer)
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: gerhardvr26
- Version: 1.0.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-10T03:09:14.871Z
- Expires at: 2026-05-17T03:09:14.871Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/oken-usage-tracker)
- [Send to Agent page](https://openagent3.xyz/skills/oken-usage-tracker/agent)
- [JSON manifest](https://openagent3.xyz/skills/oken-usage-tracker/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/oken-usage-tracker/agent.md)
- [Download page](https://openagent3.xyz/downloads/oken-usage-tracker)