analytics

model-usage: Instantly Track AI Model Costs Across All Your CLI Tools

A zero‑config CLI that gives founders clear insight into usage and expenses for models like Claude, Codex, Gemini, and more—perfect for budgeting AI‑powered projects.

From the repo · “Zero-config CLI for analyzing AI model usage & costs across all local TUI tools — pi, Claude Code, Codex, Gemini CLI, OpenCode, and more”

21 stars4 forksJavaScriptGuide quality 8/10 · reviewed Oct 12Updated 9/16/2026100% free · open source
What it does

Model-Usage provides AI model usage insights and cost analysis across various local TUI tools with a zero-config CLI

When to use it
  • •When you need to track and optimize AI model usage costs across multiple local TUI tools
  • •When you want to analyze usage patterns and identify areas for improvement in your AI model deployment
  • •When you require a unified view of AI model usage across different tools like pi, Claude Code, and Codex
Ready-to-paste prompt
npx @evanlong/model-usage analyze --tools pi,ClaudeCode --date-range 2022-01-01,2022-12-31
Heads up: Make sure you have Node.js 16 or later installed, as Model-Usage relies on modern JavaScript features
Saves to your device
Use with Claude
New

Skip the builder — one click puts this in Claude, Cursor, Antigravity and more.

✅ Light setup

Installs with a command or two; your AI agent can do it for you.

Try it instantly — no install
Claude Code
mkdir -p ~/.claude/skills/model-usage && curl -fsSL https://workflowstacks.com/api/skills/model-usage/claude-skill -o ~/.claude/skills/model-usage/SKILL.md
Open in another AI app

Opens the app with this repo with the prompt ready to go — no copy-paste needed.

Connect the whole catalog (MCP)
claude mcp add --transport http workflowstacks https://workflowstacks.com/api/mcp

Adds a WorkflowStacks connector to Claude Code: search and load any skill here by chatting.

What's inside — free to inspect

No purchase needed

Read the entire source before you build — unlike paid marketplaces that hide it behind a buy button.

9
top-level files
2
folders
11.9M
source size
MIT
license
Key files
AGENTS.md
package.json
README.md
tsconfig.json
File tree
.github/
src/
.gitignore
AGENTS.md
CONTRIBUTING.md
LICENSE
package-lock.json
package.json
README.md
SECURITY.md
tsconfig.json
Quick Actions
Details
Creator
evanlong-me
Language
JavaScript
Category
analytics
Published
7/27/2025

Are you the creator of this tool? and earn 85% of every sale.

Show it off in your README:

Featured on WorkflowStacks
[![Featured on WorkflowStacks](https://workflowstacks.com/api/badge/model-usage.svg)](https://workflowstacks.com/skills/model-usage?utm_source=github&utm_medium=badge)
🔥 Hot this week, in your inbox
Skills like this, every Monday.

The five fastest-growing open-source AI skills, ranked by GitHub star growth. One email a week, unsubscribe anytime.

Do this with a working workflow

Pages we wrote and tested that put a skill like this to work — importable n8n templates, outcome guides and Claude Desktop configs.

Ready-to-run pack · one-time $29

Competitor Watch

Get emailed the moment a rival changes their price or pitch.

Includes the tested workflow and a written setup playbook. Needs: No extra API — just watches the pages you list.

See what you get