SkillAgentSearch skills...

aiusage

Open-source AI usage tracker β€” tokens, cost, and sessions across Claude Code, Codex, Hermes, Qoder, and more

Install / Use

npx skills add juliantanx/aiusage

Installs into whichever agent you are using.

About this skill
πŸ“¦

Other

Other agent config

Quality Score

85/100

Supported Platforms

Claude Code
OpenAI Codex

Our assessment of aiusage

aiusage scores 85/100 on our quality scale, 443rd of 600 Data & Analytics skills we index.

Its Other is 11 KB long, well organised into 13 sections with 5 code examples: a thorough specification that gives an agent plenty to work with.

It has 141 GitHub stars, a meaningful sign that others use it.

Substance
29/30
Structure
20/20
Description
12/15
Adoption
9/20
Freshness
15/15

Maintenance, license and trust

  • The repository was last updated 3 days ago, so aiusage is actively maintained.
  • Our last check on 2026-10-21 found the source still online.
  • It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
  • Its trust signals score 100/100, with no cautions. These come from repository metadata, not a code audit β€” read the skill file before letting an agent act on it.

Safety scan

No issues found

Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful.

AI review by kimi-k2.7-code on 2026-09-24. Automated pattern scan on 2026-09-24. It catches known dangerous patterns, not every risk β€” read a skill before letting an agent act on it.

aiusage compared with similar skills

All 4 of these similar skills score higher than aiusage; compare them before choosing.

SkillScoreStarsUpdatedFormat
aiusage (this skill)by juliantanx851413d agoOther
claude-memby thedotmack100114.2ktodayCLAUDE.md
headroomby headroomlabs-ai10079.1ktodayCLAUDE.md
rufloby ruvnet10081.1ktodayMCP Server
sr-screenerby Imbad020210054.8k7d agoSKILL.md

Frequently asked questions

How do I install aiusage?
Run npx skills add juliantanx/aiusage. The install tabs above show the steps for each supported agent.
Which AI agents does aiusage work with?
It is written for Claude Code and OpenAI Codex, as a Other file. Other agents that read the same format can often use it too.
Is aiusage safe to use?
Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful. It is MIT-licensed and scores 100/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
Is aiusage still maintained?
The repository was last updated 3 days ago, so aiusage is actively maintained.
<h1 align="center"> <img src="https://cdn.jsdelivr.net/gh/juliantanx/aiusage@main/packages/site/static/logo-icon.svg" alt="AIUsage logo" width="42" align="absmiddle" /> AIUsage </h1> <p align="center"> Local-first usage tracker for AI coding assistants. </p> <p align="center"> <a href="https://www.npmjs.com/package/@juliantanx/aiusage"><img src="https://img.shields.io/npm/v/@juliantanx/aiusage" alt="npm version" /></a> <a href="https://www.npmjs.com/package/@juliantanx/aiusage"><img src="https://img.shields.io/npm/dm/@juliantanx/aiusage" alt="npm downloads" /></a> <a href="https://github.com/juliantanx/aiusage/actions/workflows/test.yml"><img src="https://github.com/juliantanx/aiusage/actions/workflows/test.yml/badge.svg" alt="CI" /></a> <a href="./LICENSE"><img src="https://img.shields.io/badge/License-MIT-blue.svg" alt="License: MIT" /></a> </p> <p align="center"> <strong><a href="https://aiusage.jtanx.com">Website</a></strong> Β· <strong><a href="https://aiusage.jtanx.com/docs">Docs</a></strong> Β· <strong><a href="https://aiusage.jtanx.com/leaderboard">Leaderboard</a></strong> Β· English | <a href="https://github.com/juliantanx/aiusage/blob/main/README_zh.md">δΈ­ζ–‡</a> </p>

Track tokens, cost, sessions, models, projects, tool calls, and quota pressure across 20+ AI coding tools in one local dashboard. Local use needs no account, sends no telemetry, and does not require cloud sync.

<p align="center"> <img src="https://cdn.jsdelivr.net/gh/juliantanx/aiusage@main/packages/site/static/screenshots/aiusage-demo.gif" alt="AIUsage dashboard demo" width="92%" /> </p>

Highlights

  • One local dashboard for tokens, cost, sessions, models, projects, tool calls, and quotas.
  • Broad parser support for Claude Code, Codex, OpenCode, Cursor, Copilot, Gemini CLI, and more.
  • Optional sync through GitHub, S3, R2, or MinIO.
  • Optional public leaderboard with signed aggregate uploads only.
  • Desktop widget for a tray/menu-bar glance at recent usage.
  • Private by default: local parsing and local dashboards do not upload your prompts, completions, source code, or file paths.

Quick Start

Requirements: Node.js 20+ on macOS, Linux, or Windows.

npm install -g @juliantanx/aiusage
aiusage serve

Open http://localhost:3847 to use the dashboard. serve parses once on startup and then serves the local web UI.

Prefer pnpm:

pnpm add -g @juliantanx/aiusage

Use Docker:

docker run -d \
  -p 3847:3847 \
  -v ~/.aiusage:/root/.aiusage \
  juliantanx/aiusage

Docker persists AIUsage data with the ~/.aiusage mount. To parse AI tool logs from the host, also mount each source log directory and configure the matching AIUSAGE_*_PATH variable. See the Docker docs.

Common Commands

| Command | What it does | |---|---| | aiusage / aiusage summary | Print a terminal summary | | aiusage parse | Parse supported local AI tool logs | | aiusage serve | Start the local dashboard on port 3847 | | aiusage status | Show data source and local database status | | aiusage export --range month | Export usage data | | aiusage init | Configure optional sync | | aiusage sync | Sync with the configured backend | | aiusage widget | Launch the desktop tray widget | | aiusage leaderboard | View public leaderboard rankings | | aiusage login / aiusage upload | Authorize this device and upload aggregate leaderboard data | | aiusage pm2-start | Run dashboard and widget as PM2 background services |

Full CLI reference: aiusage.jtanx.com/docs#cli-reference.

Supported Tools

| | | | | | |---|---|---|---|---| | Claude Code | Codex | OpenCode | Cursor | Hermes | | Qoder | OpenClaw | KiloCode | Kelivo | Copilot | | Gemini CLI | Kimi Code | CodeBuddy | Kiro | Grok Build | | Antigravity | Roo Code | Zed | Goose | oh-my-pi | | pi | Craft | Droid | ZCode | CodeFuse |

Default paths and environment variable overrides are documented in Data Sources and Source Env Vars.

Dashboard Password

The local dashboard is open on localhost by default. Set AIUSAGE_DASHBOARD_PASSWORD to protect dashboard APIs.

| Shell | Command | |---|---| | macOS / Linux | AIUSAGE_DASHBOARD_PASSWORD="change-me" aiusage serve | | Windows PowerShell | $env:AIUSAGE_DASHBOARD_PASSWORD="change-me"; aiusage serve | | Windows CMD | set AIUSAGE_DASHBOARD_PASSWORD=change-me && aiusage serve |

For PM2 background services, pass the same variable when starting aiusage pm2-start, and use pm2 restart aiusage-server --update-env after changing it. Details: Dashboard Password and PM2.

Privacy and Data

AIUsage is designed to be local-first.

  • Local parsing reads tool logs and stores parsed usage in ~/.aiusage/cache.db.
  • Local dashboard mode does not require an account and does not send telemetry.
  • Optional sync is user-configured and can use GitHub, S3, R2, or MinIO.
  • Optional leaderboard uploads contain aggregate token totals for ranking periods. They do not include prompts, completions, source code, file paths, or local cost estimates.
  • Cost is an estimate based on pricing metadata and can change when pricing is refreshed or recalculated.
  • Historical totals depend on whether each AI tool still retains its source logs or local databases.

Security issues should be reported privately when possible. See SECURITY.md.

Sync and Leaderboard

Sync and leaderboard are independent optional features.

  • Sync keeps your own devices aligned through GitHub, S3, R2, or MinIO. Configure it with aiusage init, then run aiusage sync.
  • Leaderboard is public ranking for users who explicitly upload aggregate totals. Authorize a device with aiusage login, then run aiusage upload.
  • Anonymous mode is available in site settings for leaderboard participation.

The official site handles accounts, OAuth login, profile settings, authorized devices, upload review status, and admin moderation. The CLI handles local parsing, local dashboards, sync, terminal summaries, and signed uploads.

Desktop Widget

Install the optional tray/menu-bar widget:

npm install -g @juliantanx/aiusage-widget
aiusage-widget

The widget reads the same local AIUsage database and can open the full dashboard from its tray menu. See Widget docs.

Development

git clone https://github.com/juliantanx/aiusage.git
cd aiusage
pnpm install
pnpm build
pnpm test
pnpm dev

Project layout:

| Path | Purpose | |---|---| | packages/core | Shared types, schema, pricing, and utilities | | packages/cli | Published CLI, parsers, local API server, sync, PM2 helpers | | packages/web | Local dashboard UI bundled into the CLI | | packages/widget | Electron tray/menu-bar widget | | packages/site | Official website, docs, accounts, uploads, leaderboard |

Contributions are welcome. Read CONTRIBUTING.md, use the issue templates, and run pnpm test before opening a PR.

Documentation

Contributors

Thanks to these wonderful people (emoji key):

<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --> <!-- prettier-ignore-start --> <!-- markdownlint-disable --> <table> <tbody> <tr> <td align="center" valign="top" width="14.28%"><a href="https://github.com/juliantanx"><img src="https://avatars.githubusercontent.com/u/59169896?v=4?s=100" width="100px;" alt="Julian"/><br /><sub><b>Julian</b></sub></a><br /><a href="https://github.com/juliantanx/aiusage/commits?author=juliantanx" title="Code">πŸ’»</a> <a href="https://github.com/juliantanx/aiusage/commits?author=juliantanx" title="Documentation">πŸ“–</a> <a href="#infra-juliantanx" title="Infrastructure">πŸš‡</a> <a href="#maintenance-juliantanx" title="Maintenance">πŸ”§</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/Fiveo9"><img src="https://avatars.githubusercontent.com/u/57358895?v=4?s=100" width="100px;" alt="Fiveonine"/><br /><sub><b>Fiveonine</b></sub></a><br /><a href="https://github.com/juliantanx/aiusage/commits?author=Fiveo9" title="Code">πŸ’»</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/joyshan1986"><img src="https://avatars.githubusercontent.com/u/105418356?v=4?s=100" width="100px;" alt="joyshan1986"/><br /><sub><b>joyshan1986</b></sub></a><br /><a href="https://github.com/juliantanx/aiusage/commits?author=joyshan1986" title="Code">πŸ’»</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/zhaolu83949426-hub"><img src="https://avatars.githubusercontent.com/u/260552457?v=4?s=100" width="100px;" alt="zhaolu83949426-hub"/><br /><sub><b>zhaolu83949426-hub</b></sub></a><br /><a href="https://github.com/juliantanx/aiusage/commits?author=zhaolu83949426-hub" title="Code">πŸ’»</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/Mnoisec"><img src="https://avatars.githubusercontent.com/u/28181883?v=4?s=100" width="100px;" alt="Mnoisec"/><br /><sub><b>Mnoisec</b></sub></a><br /><a href="https://github.com/juliantanx/aiusage/commits?author=Mnoisec" title="Code">πŸ’»</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/jlxyfll"><img src="https://avatars.githubusercontent.com/u/16436887?v=4?s=100" width="100px;" alt="jlxyfll"/><br /><sub><b>jlxyfll</b></sub></a><br /><a href="https://github.com/juliantanx/aiusage/commits?author=jlxyfll" title="Code">πŸ’»</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/Ed-Bg"><img src="https://avatars.githubusercontent.com/u/68063080?v=4?s=100" width="100px;" alt="Harlan Hu"/><br /><sub><b>Harlan Hu</b></sub></a><br /><a href="https://github.com/juliantanx/aiusage/commits?author=Ed-Bg" title="Code">πŸ’»</a></td> </tr> </tbody> </table> <!-- markdownlint-restore --> <!-- prettier-ignore-end --> <!-- ALL-CONTRIBUTORS-LIST:END -->

This project follows the all-contributors specification. Contributions of any kind welcome!

Community

linux.do - thanks to the linux.do community for support and inspiration during the development of this project.

License

MIT Β© Julian

Related Skills

View on GitHub
GitHub Stars141
CategoryData
Updated3d ago
Forks23

Languages

TypeScript

Trust signals

100/100

From repository metadata: license, adoption, age and documentation. Not a code audit β€” see the Safety scan above for what the skill file itself contains.

No cautions
aiusage β€” Other: Install & Safety Check | SkillAgent