Crawler Summary

tokenmeter answer-first brief

Track AI token usage and costs across providers. Import sessions, view dashboard, costs breakdown, and compare Max plan savings. --- name: tokenmeter description: "Track AI token usage and costs across providers. Import sessions, view dashboard, costs breakdown, and compare Max plan savings." user-invocable: true metadata: {"openclaw":{"emoji":"๐Ÿ“Š"}} --- tokenmeter - AI Usage & Cost Tracking for OpenClaw Track your AI token usage and costs across all providers โ€” locally, privately. Slash Command Examples - /tokenmeter โ€” show today's dashboard Published capability contract available. No trust telemetry is available yet. Last updated 3/1/2026.

Freshness

Last checked 3/1/2026

Best For

Contract is available with explicit auth and schema references.

Not Ideal For

tokenmeter is not ideal for teams that need stronger public trust telemetry, lower setup complexity, or more explicit contract coverage before production rollout.

Evidence Sources Checked

editorial-content, capability-contract, runtime-metrics, public facts pack

Claim this agent
Agent DossierGitHubSafety: 89/100

tokenmeter

Track AI token usage and costs across providers. Import sessions, view dashboard, costs breakdown, and compare Max plan savings. --- name: tokenmeter description: "Track AI token usage and costs across providers. Import sessions, view dashboard, costs breakdown, and compare Max plan savings." user-invocable: true metadata: {"openclaw":{"emoji":"๐Ÿ“Š"}} --- tokenmeter - AI Usage & Cost Tracking for OpenClaw Track your AI token usage and costs across all providers โ€” locally, privately. Slash Command Examples - /tokenmeter โ€” show today's dashboard

OpenClawself-declared

Public facts

6

Change events

1

Artifacts

0

Freshness

Mar 1, 2026

Verifiededitorial-contentNo verified compatibility signals

Published capability contract available. No trust telemetry is available yet. Last updated 3/1/2026.

Schema refs publishedTrust evidence available

Trust score

Unknown

Compatibility

OpenClaw

Freshness

Mar 1, 2026

Vendor

Jugaad Lab

Artifacts

0

Benchmarks

0

Last release

Unpublished

Executive Summary

Key links, install path, and a quick operational read before the deeper crawl record.

Verifiededitorial-content

Summary

Published capability contract available. No trust telemetry is available yet. Last updated 3/1/2026.

Setup snapshot

git clone https://github.com/jugaad-lab/tokenmeter.git
  1. 1

    Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.

  2. 2

    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.

Evidence Ledger

Everything public we have scraped or crawled about this agent, grouped by evidence type with provenance.

Verifiededitorial-content
Vendor (1)

Vendor

Jugaad Lab

profilemedium
Observed Mar 1, 2026Source linkProvenance
Compatibility (2)

Protocol compatibility

OpenClaw

contractmedium
Observed Feb 24, 2026Source linkProvenance

Auth modes

api_key

contracthigh
Observed Feb 24, 2026Source linkProvenance
Artifact (1)

Machine-readable schemas

OpenAPI or schema references published

contracthigh
Observed Feb 24, 2026Source linkProvenance
Security (1)

Handshake status

UNKNOWN

trustmedium
Observed unknownSource linkProvenance
Integration (1)

Crawlable docs

6 indexed pages on the official domain

search_documentmedium
Observed Apr 15, 2026Source linkProvenance

Release & Crawl Timeline

Merged public release, docs, artifact, benchmark, pricing, and trust refresh events.

Self-declaredagent-index

Artifacts Archive

Extracted files, examples, snippets, parameters, dependencies, permissions, and artifact metadata.

Self-declaredGITHUB OPENCLEW

Extracted files

0

Examples

6

Snippets

0

Languages

typescript

Parameters

Executable Examples

bash

# 1. Clone repo if it doesn't exist
if [ ! -d ~/clawd/tokenmeter ]; then
  cd ~/clawd
  git clone https://github.com/jugaad-lab/tokenmeter.git
fi

# 2. Setup Python venv if it doesn't exist
cd ~/clawd/tokenmeter
if [ ! -d ".venv" ]; then
  python3 -m venv .venv
  source .venv/bin/activate
  pip install -e .
fi

# 3. Activate and use
source .venv/bin/activate
tokenmeter import --auto

bash

if [ ! -d ~/clawd/tokenmeter ]; then
  cd ~/clawd
  git clone https://github.com/jugaad-lab/tokenmeter.git
  cd tokenmeter
  python3 -m venv .venv
  source .venv/bin/activate
  pip install -e .
fi

bash

cd ~/clawd/tokenmeter
source .venv/bin/activate
tokenmeter import --auto

bash

tokenmeter costs --period week

text

Model                    Cost      % of Total
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
anthropic/claude-opus-4  $741.95   65.0%
anthropic/claude-sonnet-4 $400.26  35.0%
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
Total                    $1,142.22

bash

cd ~/clawd/tokenmeter && source .venv/bin/activate && tokenmeter [command]

Docs & README

Full documentation captured from public sources, including the complete README when available.

Self-declaredGITHUB OPENCLEW

Docs source

GITHUB OPENCLEW

Editorial quality

ready

Track AI token usage and costs across providers. Import sessions, view dashboard, costs breakdown, and compare Max plan savings. --- name: tokenmeter description: "Track AI token usage and costs across providers. Import sessions, view dashboard, costs breakdown, and compare Max plan savings." user-invocable: true metadata: {"openclaw":{"emoji":"๐Ÿ“Š"}} --- tokenmeter - AI Usage & Cost Tracking for OpenClaw Track your AI token usage and costs across all providers โ€” locally, privately. Slash Command Examples - /tokenmeter โ€” show today's dashboard

Full README

name: tokenmeter description: "Track AI token usage and costs across providers. Import sessions, view dashboard, costs breakdown, and compare Max plan savings." user-invocable: true metadata: {"openclaw":{"emoji":"๐Ÿ“Š"}}

tokenmeter - AI Usage & Cost Tracking for OpenClaw

Track your AI token usage and costs across all providers โ€” locally, privately.

Slash Command Examples

  • /tokenmeter โ€” show today's dashboard
  • /tokenmeter how much did we spend this week? โ€” weekly cost report
  • /tokenmeter costs breakdown by model โ€” model split analysis
  • /tokenmeter import latest sessions โ€” pull in new usage data
  • /tokenmeter compare max plan savings โ€” show API vs subscription savings

Overview

tokenmeter is a CLI tool that tracks LLM API usage and calculates real-time cost estimates. For OpenClaw users on the Claude Max plan, it helps:

  1. Prove Max plan value - Show what you would have paid on API billing
  2. Monitor usage patterns - Understand which models you use most
  3. Catch overages early - Know if you're using expensive models too much
  4. Unified tracking - Track usage across multiple OpenClaw instances

All data stays local (SQLite at ~/.tokenmeter/usage.db). No telemetry, no cloud sync.


Installation

The bot handles everything automatically.

When first needed, the bot will:

# 1. Clone repo if it doesn't exist
if [ ! -d ~/clawd/tokenmeter ]; then
  cd ~/clawd
  git clone https://github.com/jugaad-lab/tokenmeter.git
fi

# 2. Setup Python venv if it doesn't exist
cd ~/clawd/tokenmeter
if [ ! -d ".venv" ]; then
  python3 -m venv .venv
  source .venv/bin/activate
  pip install -e .
fi

# 3. Activate and use
source .venv/bin/activate
tokenmeter import --auto

After first setup: Bot just activates venv and runs commands.

No admin action needed - the bot clones, installs, and configures automatically when you first ask it to check usage or costs.


How the Bot Uses This Tool

When You Ask: "How much did I spend this week?"

Step 1: Bot reads this SKILL.md

  • Skill matching triggers on keywords: "spend", "cost", "usage", "tokens"
  • Bot loads this entire file into context

Step 2: Bot checks if tokenmeter exists

if [ ! -d ~/clawd/tokenmeter ]; then
  cd ~/clawd
  git clone https://github.com/jugaad-lab/tokenmeter.git
  cd tokenmeter
  python3 -m venv .venv
  source .venv/bin/activate
  pip install -e .
fi

Step 3: Bot imports latest usage

cd ~/clawd/tokenmeter
source .venv/bin/activate
tokenmeter import --auto

This reads all OpenClaw session files and logs them to the database.

Step 4: Bot runs the appropriate command

tokenmeter costs --period week

Step 5: Bot parses the output

Model                    Cost      % of Total
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
anthropic/claude-opus-4  $741.95   65.0%
anthropic/claude-sonnet-4 $400.26  35.0%
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
Total                    $1,142.22

Step 6: Bot responds to you in plain English

"You spent $1,142 this week (API-equivalent). Opus cost $742 (65%), Sonnet cost $400 (35%). Your Max plan ($100/month = ~$25/week) saved you $1,117 this week."


Bot Command Reference

Standard pattern:

cd ~/clawd/tokenmeter && source .venv/bin/activate && tokenmeter [command]

Common commands the bot will use:

# Import latest usage
tokenmeter import --auto

# Quick overview
tokenmeter dashboard

# Weekly breakdown
tokenmeter costs --period week

# Monthly summary
tokenmeter summary --period month

Usage

Quick Commands

# Discover session sources (OpenClaw, Claude Code, etc.)
tokenmeter scan

# Import all discovered sessions
tokenmeter import --auto

# Preview import without writing
tokenmeter import --auto --dry-run

# Show today's usage
tokenmeter dashboard

# Weekly summary
tokenmeter summary --period week

# Cost breakdown by model
tokenmeter costs --period month

# List all supported models + pricing
tokenmeter models

# View recent history
tokenmeter history --limit 20

Integration with OpenClaw

Automatic Import (Recommended)

OpenClaw writes token usage to session JSONL files at:

~/.clawdbot/agents/*/sessions/*.jsonl

Step 1: Discover session sources

cd ~/clawd/tokenmeter
source .venv/bin/activate
tokenmeter scan

This shows all discovered session directories:

  • .clawdbot/agents/main/sessions/ (OpenClaw)
  • .claude/projects/*/sessions/ (Claude Code)
  • Any other compatible session formats

Step 2: Import all at once

tokenmeter import --auto

This will:

  • Parse all discovered session files
  • Extract token usage from each LLM call
  • Log to tokenmeter with API-equivalent costs
  • Skip already-imported entries (idempotent)
  • Show total records and cost

Options:

tokenmeter import --auto --dry-run  # Preview without writing
tokenmeter import --path ~/.clawdbot/agents/main/sessions/  # Import specific directory

Recommended: Run tokenmeter import --auto daily via cron or manually after heavy usage.

Manual Logging (Fallback)

If you need to log usage manually:

tokenmeter log \
  --provider anthropic \
  --model claude-sonnet-4 \
  --input 1500 \
  --output 500 \
  --app openclaw

Options:

  • --provider / -p: anthropic, openai, google, azure
  • --model / -m: Model name (see tokenmeter models)
  • --input / -i: Input tokens
  • --output / -o: Output tokens
  • --app / -a: Application name (e.g., "openclaw")

Understanding the Data

Model Pricing (as of Feb 2026)

| Token Type | claude-sonnet-4 | claude-opus-4 | claude-3.5-haiku | |------------|----------------|---------------|------------------| | Input | $3.00/1M | $15.00/1M | $0.80/1M | | Output | $15.00/1M | $75.00/1M | $4.00/1M | | Cache Write | $3.75/1M | $18.75/1M | $1.00/1M | | Cache Read | $0.30/1M | $1.50/1M | $0.08/1M |

Understanding Cache Tokens

What are cache tokens?

OpenClaw (and Claude) use prompt caching to store parts of your conversation in memory. This means you don't send the same context repeatedly.

Two types of cache tokens:

  1. Cache WRITE tokens - Tokens sent ONCE and stored in cache

    • Example: Your entire codebase, documentation, system prompts
    • Slightly more expensive than regular input (~25% markup)
    • Only paid once, then reused for free (almost)
  2. Cache READ tokens - Tokens reused from cache

    • You're NOT sending these again - Claude reads them from memory
    • 90% cheaper than regular input tokens
    • This is where massive savings come from

Real example from our usage:

This Month:
Regular Input:    119.5K tokens  ($0.36)
Regular Output:     3.8M tokens  ($57.00)
Cache Write:      157.2M tokens  ($589.50 - paid once)
Cache Read:     1,024.3M tokens  ($307.29 - 90% discount!)
Total: $954.15

Without caching, we'd send ~1.2 BILLION tokens as regular input ($3,600+). With caching: We only pay $307 for those cache reads.

Savings: $3,293 from caching alone this month! ๐ŸŽ‰

Reading the Dashboard

โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ tokenmeter โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚  TODAY  $122.42  (396.9K tokens)                 โ”‚
โ”‚  WEEK  $1142.22  (3.4M tokens)                   โ”‚
โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ

Provider   Input   Output  Cache R  Cache W  Total    Cost
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
Anthropic  12.2K   384.7K  116.4M   13.1M    396.9K   $122.42

Reading the columns:

  • Input: Fresh tokens sent to Claude
  • Output: Tokens Claude generated
  • Cache R: Tokens reused from cache (READ)
  • Cache W: Tokens written to cache (WRITE)
  • Total: Input + Output (regular tokens only)
  • Cost: API-equivalent cost

Why Cache R is so large: Every time you continue a conversation, Claude reads your entire context from cache instead of you sending it fresh. Over many turns, this adds up to billions of tokens reused.

Cost breakdown:

  • Regular tokens: Expensive ($3-15 per 1M)
  • Cache Write: Slightly more expensive (~25% markup)
  • Cache Read: 90% cheaper ($0.30-1.50 per 1M)

This is why the cost stays low despite huge cache numbers.

Comparing to Claude Max Plan

Your Max plan: $100/month flat rate

If tokenmeter shows $800 this month:

  • API-equivalent cost: $800
  • Max plan cost: $100
  • Savings: $700 โœ…

If tokenmeter shows $90 this month:

  • API-equivalent cost: $90
  • Max plan cost: $100
  • Overpaying by $10 (but you get peace of mind!)

Workflows

Daily Check-In

cd ~/clawd/tokenmeter
source .venv/bin/activate

# Import latest usage
tokenmeter import --auto

# Quick overview
tokenmeter dashboard

Weekly Review

tokenmeter summary --period week
tokenmeter costs --period week

Look for:

  • Heavy Opus usage (expensive!)
  • Unusual spikes
  • High output token counts (code generation, long responses)

Monthly Billing Comparison

At month end:

tokenmeter costs --period month

Compare to your Anthropic invoice:

  • Max plan: $100 flat
  • API-equivalent (tokenmeter): $XXX
  • Delta = savings (or loss)

Cron Automation (Optional)

Add to your HEARTBEAT.md or run via cron:

# Run daily at 11 PM
0 23 * * * cd ~/clawd/tokenmeter && source .venv/bin/activate && tokenmeter import --auto

This keeps tokenmeter in sync without manual effort.


Multi-Bot Tracking

If you run multiple OpenClaw instances (e.g., Cheenu + Chhotu):

  1. Both bots import to tokenmeter on their respective machines
  2. Each uses --app flag to distinguish:
    tokenmeter log -p anthropic -m claude-sonnet-4 -i 1000 -o 500 --app cheenu
    tokenmeter log -p anthropic -m claude-sonnet-4 -i 800 -o 400 --app chhotu
    
  3. Nagaconda can aggregate reports from both to see total team usage

Troubleshooting

"tokenmeter: command not found"

Activate the virtual environment:

cd ~/clawd/skills/tokenmeter
source .venv/bin/activate

Empty dashboard after import

Check:

  1. OpenClaw session files exist: ls ~/.clawdbot/agents/*/sessions/*.jsonl
  2. Import command ran successfully (no errors)
  3. Database has entries: sqlite3 ~/.tokenmeter/usage.db "SELECT COUNT(*) FROM usage;"

Prices seem wrong

Pricing is based on API rates as of Feb 2026. If Anthropic changes pricing, update tokenmeter/pricing.py or open an issue on GitHub.


Examples

Example 1: Check today's usage

$ tokenmeter dashboard
โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ tokenmeter โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚  TODAY  $4.23  (141,000 tokens)                  โ”‚
โ”‚  WEEK   $28.90  (963,000 tokens)                 โ”‚
โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ

Analysis: $4.23 today, trending toward ~$30/week. Well within Max plan ($100/mo).

Example 2: Weekly cost breakdown

$ tokenmeter costs --period week

Provider   Model              Input      Output     Cost      %
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
Anthropic  claude-sonnet-4    450K       180K       $4.05    45%
Anthropic  claude-opus-4       90K        30K       $3.60    40%
Anthropic  claude-3.5-haiku   800K       200K       $1.44    15%
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
Total                        1,340K      410K       $9.09   100%

Analysis: Using Opus for 40% of costs but only ~7% of token volume. Consider using Sonnet more.

Example 3: Month-end comparison (Real Data - Feb 2026)

$ tokenmeter import --auto
Imported 13,713 records
Total cost: $1,246.55

$ tokenmeter costs --period month

Model                    Input   Output    Cost      % of Total
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
anthropic/claude-opus-4  47.3K   1.6M      $743.35   59.6%
anthropic/claude-sonnet-4 70.8K  2.2M      $501.75   40.3%
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
Total                    118.8K  3.8M      $1,246.55 100%

$ tokenmeter summary --period month

Provider   Input    Output   Total    Cost        Requests
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
Anthropic  118.8K   3.8M     3.9M     $1,246.55   12,552

Analysis:

  • API-equivalent cost: $1,246.55
  • Max plan cost: $100.00
  • Savings: $1,146.55 โœ…

Opus usage (59.6% of cost) shows heavy extended-thinking use. Max plan absolutely paid for itself this month!


FAQ

Q: Does tokenmeter send data anywhere? A: No. Everything is stored locally in ~/.tokenmeter/usage.db. Zero telemetry.

Q: What if I delete the database? A: You lose history, but can rebuild by re-importing OpenClaw sessions (idempotent).

Q: Can I use this with non-OpenClaw tools? A: Yes! It supports Claude Code, Cursor, and manual logging for any LLM tool.

Q: Will this slow down OpenClaw? A: No. Import runs separately and reads logs after-the-fact.

Q: What about cache tokens? A: tokenmeter includes cache read/write tokens in its calculations (OpenClaw tracks them).


References

  • GitHub: https://github.com/jugaad-lab/tokenmeter
  • OpenClaw Docs: https://docs.openclaw.ai
  • Anthropic Pricing: https://anthropic.com/pricing

Changelog

2026-02-06 (v2)

  • โœ… tokenmeter scan - Auto-discover session sources
  • โœ… tokenmeter import --auto - Import all discovered sessions
  • โœ… Real data example showing $1,146 monthly savings on Max plan
  • โœ… Updated workflows with new commands
  • โœ… Tested on actual OpenClaw + Claude Code sessions

2026-02-06 (v1)

  • Initial skill creation
  • Documented installation and usage
  • Added workflow examples

Built to answer the question: "How much is my Max plan really saving me?" ๐Ÿ’ฐ

Contract & API

Machine endpoints, protocol fit, contract coverage, invocation examples, and guardrails for agent-to-agent use.

Verifiedcapability-contract

Contract coverage

Status

ready

Auth

api_key

Streaming

No

Data region

global

Protocol support

OpenClaw: self-declared

Requires: openclew, lang:typescript

Forbidden: none

Guardrails

Operational confidence: medium

Contract is available with explicit auth and schema references.
Trust confidence is not low and verification freshness is acceptable.
Invocation examples
curl -s "https://xpersona.co/api/v1/agents/jugaad-lab-tokenmeter/snapshot"
curl -s "https://xpersona.co/api/v1/agents/jugaad-lab-tokenmeter/contract"
curl -s "https://xpersona.co/api/v1/agents/jugaad-lab-tokenmeter/trust"

Reliability & Benchmarks

Trust and runtime signals, benchmark suites, failure patterns, and practical risk constraints.

Missingruntime-metrics

Trust signals

Handshake

UNKNOWN

Confidence

unknown

Attempts 30d

unknown

Fallback rate

unknown

Runtime metrics

Observed P50

unknown

Observed P95

unknown

Rate limit

unknown

Estimated cost

unknown

No benchmark suites or observed failure patterns are available.

Media & Demo

Every public screenshot, visual asset, demo link, and owner-provided destination tied to this agent.

Missingno-media
No screenshots, media assets, or demo links are available.

Related Agents

Neighboring agents from the same protocol and source ecosystem for comparison and shortlist building.

Self-declaredprotocol-neighbors
GITHUB_REPOSactivepieces

Rank

70

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

Traction

No public download signal

Freshness

Updated 2d ago

OPENCLAW
GITHUB_REPOScherry-studio

Rank

70

AI productivity studio with smart chat, autonomous agents, and 300+ assistants. Unified access to frontier LLMs

Traction

No public download signal

Freshness

Updated 6d ago

MCPOPENCLAW
GITHUB_REPOSAionUi

Rank

70

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!

Traction

No public download signal

Freshness

Updated 6d ago

MCPOPENCLAW
GITHUB_REPOSCopilotKit

Rank

70

The Frontend for Agents & Generative UI. React + Angular

Traction

No public download signal

Freshness

Updated 23d ago

OPENCLAW
Machine Appendix

Contract JSON

{
  "contractStatus": "ready",
  "authModes": [
    "api_key"
  ],
  "requires": [
    "openclew",
    "lang:typescript"
  ],
  "forbidden": [],
  "supportsMcp": false,
  "supportsA2a": false,
  "supportsStreaming": false,
  "inputSchemaRef": "https://github.com/jugaad-lab/tokenmeter#input",
  "outputSchemaRef": "https://github.com/jugaad-lab/tokenmeter#output",
  "dataRegion": "global",
  "contractUpdatedAt": "2026-02-24T19:42:04.117Z",
  "sourceUpdatedAt": "2026-02-24T19:42:04.117Z",
  "freshnessSeconds": 4432624
}

Invocation Guide

{
  "preferredApi": {
    "snapshotUrl": "https://xpersona.co/api/v1/agents/jugaad-lab-tokenmeter/snapshot",
    "contractUrl": "https://xpersona.co/api/v1/agents/jugaad-lab-tokenmeter/contract",
    "trustUrl": "https://xpersona.co/api/v1/agents/jugaad-lab-tokenmeter/trust"
  },
  "curlExamples": [
    "curl -s \"https://xpersona.co/api/v1/agents/jugaad-lab-tokenmeter/snapshot\"",
    "curl -s \"https://xpersona.co/api/v1/agents/jugaad-lab-tokenmeter/contract\"",
    "curl -s \"https://xpersona.co/api/v1/agents/jugaad-lab-tokenmeter/trust\""
  ],
  "jsonRequestTemplate": {
    "query": "summarize this repo",
    "constraints": {
      "maxLatencyMs": 2000,
      "protocolPreference": [
        "OPENCLEW"
      ]
    }
  },
  "jsonResponseTemplate": {
    "ok": true,
    "result": {
      "summary": "...",
      "confidence": 0.9
    },
    "meta": {
      "source": "GITHUB_OPENCLEW",
      "generatedAt": "2026-04-17T02:59:08.414Z"
    }
  },
  "retryPolicy": {
    "maxAttempts": 3,
    "backoffMs": [
      500,
      1500,
      3500
    ],
    "retryableConditions": [
      "HTTP_429",
      "HTTP_503",
      "NETWORK_TIMEOUT"
    ]
  }
}

Trust JSON

{
  "status": "unavailable",
  "handshakeStatus": "UNKNOWN",
  "verificationFreshnessHours": null,
  "reputationScore": null,
  "p95LatencyMs": null,
  "successRate30d": null,
  "fallbackRate": null,
  "attempts30d": null,
  "trustUpdatedAt": null,
  "trustConfidence": "unknown",
  "sourceUpdatedAt": null,
  "freshnessSeconds": null
}

Capability Matrix

{
  "rows": [
    {
      "key": "OPENCLEW",
      "type": "protocol",
      "support": "unknown",
      "confidenceSource": "profile",
      "notes": "Listed on profile"
    },
    {
      "key": "aggregate",
      "type": "capability",
      "support": "supported",
      "confidenceSource": "profile",
      "notes": "Declared in agent profile metadata"
    },
    {
      "key": "rebuild",
      "type": "capability",
      "support": "supported",
      "confidenceSource": "profile",
      "notes": "Declared in agent profile metadata"
    },
    {
      "key": "i",
      "type": "capability",
      "support": "supported",
      "confidenceSource": "profile",
      "notes": "Declared in agent profile metadata"
    },
    {
      "key": "claude",
      "type": "capability",
      "support": "supported",
      "confidenceSource": "profile",
      "notes": "Declared in agent profile metadata"
    }
  ],
  "flattenedTokens": "protocol:OPENCLEW|unknown|profile capability:aggregate|supported|profile capability:rebuild|supported|profile capability:i|supported|profile capability:claude|supported|profile"
}

Facts JSON

[
  {
    "factKey": "docs_crawl",
    "category": "integration",
    "label": "Crawlable docs",
    "value": "6 indexed pages on the official domain",
    "href": "https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fopenclaw%2Fskills%2Ftree%2Fmain%2Fskills%2Fasleep123%2Fcaldav-calendar",
    "sourceUrl": "https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fopenclaw%2Fskills%2Ftree%2Fmain%2Fskills%2Fasleep123%2Fcaldav-calendar",
    "sourceType": "search_document",
    "confidence": "medium",
    "observedAt": "2026-04-15T05:03:46.393Z",
    "isPublic": true
  },
  {
    "factKey": "vendor",
    "category": "vendor",
    "label": "Vendor",
    "value": "Jugaad Lab",
    "href": "https://github.com/jugaad-lab/tokenmeter",
    "sourceUrl": "https://github.com/jugaad-lab/tokenmeter",
    "sourceType": "profile",
    "confidence": "medium",
    "observedAt": "2026-03-01T06:03:42.532Z",
    "isPublic": true
  },
  {
    "factKey": "protocols",
    "category": "compatibility",
    "label": "Protocol compatibility",
    "value": "OpenClaw",
    "href": "https://xpersona.co/api/v1/agents/jugaad-lab-tokenmeter/contract",
    "sourceUrl": "https://xpersona.co/api/v1/agents/jugaad-lab-tokenmeter/contract",
    "sourceType": "contract",
    "confidence": "medium",
    "observedAt": "2026-02-24T19:42:04.117Z",
    "isPublic": true
  },
  {
    "factKey": "auth_modes",
    "category": "compatibility",
    "label": "Auth modes",
    "value": "api_key",
    "href": "https://xpersona.co/api/v1/agents/jugaad-lab-tokenmeter/contract",
    "sourceUrl": "https://xpersona.co/api/v1/agents/jugaad-lab-tokenmeter/contract",
    "sourceType": "contract",
    "confidence": "high",
    "observedAt": "2026-02-24T19:42:04.117Z",
    "isPublic": true
  },
  {
    "factKey": "schema_refs",
    "category": "artifact",
    "label": "Machine-readable schemas",
    "value": "OpenAPI or schema references published",
    "href": "https://github.com/jugaad-lab/tokenmeter#input",
    "sourceUrl": "https://xpersona.co/api/v1/agents/jugaad-lab-tokenmeter/contract",
    "sourceType": "contract",
    "confidence": "high",
    "observedAt": "2026-02-24T19:42:04.117Z",
    "isPublic": true
  },
  {
    "factKey": "handshake_status",
    "category": "security",
    "label": "Handshake status",
    "value": "UNKNOWN",
    "href": "https://xpersona.co/api/v1/agents/jugaad-lab-tokenmeter/trust",
    "sourceUrl": "https://xpersona.co/api/v1/agents/jugaad-lab-tokenmeter/trust",
    "sourceType": "trust",
    "confidence": "medium",
    "observedAt": null,
    "isPublic": true
  }
]

Change Events JSON

[
  {
    "eventType": "docs_update",
    "title": "Docs refreshed: Sign in to GitHub ยท GitHub",
    "description": "Fresh crawlable documentation was indexed for the official domain.",
    "href": "https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fopenclaw%2Fskills%2Ftree%2Fmain%2Fskills%2Fasleep123%2Fcaldav-calendar",
    "sourceUrl": "https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fopenclaw%2Fskills%2Ftree%2Fmain%2Fskills%2Fasleep123%2Fcaldav-calendar",
    "sourceType": "search_document",
    "confidence": "medium",
    "observedAt": "2026-04-15T05:03:46.393Z",
    "isPublic": true
  }
]

Sponsored

Ads related to tokenmeter and adjacent AI workflows.