usage
Skill64 starsChanged 2 months agoMITView on GitHub
Show usage cost summary — session, today, last 30 days. OpenClaw-compatible format. Works from CLI or messaging. Triggers on /usage, /agent:usage, "cuanto gasté", "agent usage", "cost".
6 other projects use a version of this.
Adopted by
Most recently taken up by
- sachingulati/claude-statuslinetheir own version, first seen Nov 1, 2026
- eltonylfgi-blip/claude-code-usage-guardtheir own version, first seen Oct 11, 2026
- jdx/usagetheir own version, first seen Oct 8, 2026
- Kakhramon/usage-analyzertheir own version, first seen Sep 22, 2026
- Miyamura80/MCP-Templatetheir own version, first seen Jun 29, 2026
- wlodarczyk-pawel/claude-usage-monitortheir own version, first seen Apr 2, 2026
Other versions6 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 6
- jdx/usage★ 1.1ksame name
- eltonylfgi-blip/claude-code-usage-guard★ 4same name
- sachingulati/claude-statusline★ 2same name
- Miyamura80/MCP-Template★ 1same name
- Kakhramon/usage-analyzer★ 0same name
- wlodarczyk-pawel/claude-usage-monitor★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository23 other files it gives its agents.
- AGENTS.mdAGENTS.md
- templates/AGENTS.mdAGENTS.md
- templates/CLAUDE.mdCLAUDE.md
- aboutSkill
- channelsSkill
- compactSkill
- createSkill
- cronsSkill
- doctorSkill
- heartbeatSkill
- helpSkill
- importSkill
- liveSkill
- messagingSkill
- newSkill
- scopeSkill
- serviceSkill
- settingsSkill
- skill-managerSkill
- statusSkill
- updateSkill
- voiceSkill
- whoamiSkill
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 1 is distinctive, and 1 is very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 42
Call agent_status MCP tool → get file/chunk counts
- Distinctive: line 73
Reply tool: if on messaging channel.
“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
/usage — Cost Summary
Show usage costs in the OpenClaw-compatible format. Works from CLI or messaging channels.
Output format (matches OpenClaw exactly)
💸 Usage cost
Session <cost> · <tokens> tokens
Today <cost>
Last 30d <cost>Subcommands
/usage— show the cost summary (default)/usage tokens— compact token display/usage full— verbose token + cost/usage cost— same as default
Steps
- Detect surface (CLI vs messaging channel).
Try to read session cost data from Claude Code's session store:
ls ~/.claude/projects/*/\*.jsonl 2>/dev/null | head -3NOTE: Claude Code stores session data in
~/.claude/projects/<slug>/*.jsonl. The plugin cannot reliably read these because:- The session slug depends on the current cwd
- The format is internal to Claude Code
- Token counts per session are not always available to skills
- Fall back to estimate from memory/dreams:
- Call
agent_statusMCP tool → get file/chunk counts - Bash:
du -sh memory/ | awk '{print $1}'→ memory dir size - Bash:
wc -l memory/.dreams/events.jsonl 2>/dev/null | awk '{print $1}'→ event count
- Call
- Build the response in OpenClaw format:
When cost data is available
💸 Usage cost
Session $0.42 · 125k tokens
Today $1.23
Last 30d $34.56When cost data is NOT available (most likely case)
💸 Usage cost
Session n/a (run native /cost or /usage in CLI for tokens)
Today n/a
Last 30d n/a
📊 Agent resources
Memory: <size>, <N> files, <M> chunks
Dreams: <events> events, <unique> unique memories- Format per surface:
- CLI: standard markdown
- WhatsApp: single
*bold* - Telegram:
**bold**
- Reply tool if on messaging channel.
Important
- Claude Code does not expose session cost data to plugin skills directly.
- The honest answer is "n/a — use native /cost on CLI for real token/cost data".
- Agent resources (memory, dreams, files) ARE available and we can show them.
- This matches OpenClaw's
/usage costformat but with the Claude Code limitation documented. - This is the agent-aware equivalent of OpenClaw's
/usage.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

