SkillsLLM
CategoriesBlogAI NewsAbout
HomeCLI Toolsclaudetop

claudetop

by liorwn

Pending

htop for your Claude Code sessions — real-time cost, cache efficiency, model comparison, and smart alerts

115stars
5forks
Shell
Added 3/17/2026
View on GitHubDownload ZIP
CLI Toolsai-toolsanthropicclaudeclaude-codeclicost-trackingdeveloper-toolsdevtoolsstatus-lineterminaltokens
Installation
# Add to your Claude Code skills
git clone https://github.com/liorwn/claudetop
README.md
<p align="center"> <h1 align="center">claudetop</h1> <p align="center"><strong>You're spending $20/day on Claude Code and can't see it.</strong></p> <p align="center">claudetop shows you exactly where your tokens and dollars go — in real time.</p> <p align="center"> <a href="#install"><img src="https://img.shields.io/badge/install-1_command-blue" alt="Install"></a> <a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-green" alt="MIT License"></a> <a href="#plugins"><img src="https://img.shields.io/badge/plugins-8_included-orange" alt="Plugins"></a> </p> </p>
<p align="center"> <img src="demo.png" alt="claudetop in action — healthy session (top) vs problem session (bottom)" width="800"> </p>
14:32  my-project/src/app  Opus  20m 0s  +256/-43  #auth-refactor
152.3K in / 45.2K out  ████░░░░░░ 38%  $3.47  $5.10/hr  ~$174/mo
cache: 66%  efficiency: $0.012/line  opus:~$3.20  sonnet:~$0.88  haiku:~$0.23
in:80% out:20% (fresh:15% cwrite:7% cread:76%)
$5 MARK  |  main*  |  ♫ Artist - Song  |  PROJ-123  |  CI ✓

The problem

Claude Code doesn't show you what you're spending. You finish a session, check your billing dashboard, and discover a $65 charge for what felt like 30 minutes of work. You have no idea which session caused it, which model was wasteful, or whether your cache was even working.

I built claudetop after noticing my model estimate showed $10 but the actual bill was $65. Turns out, compaction was hiding 80% of my token usage. The cost was real — the visibility wasn't.

Install

Clone and install (recommended)

git clone https://github.com/liorwn/claudetop.git
cd claudetop && ./install.sh

One-liner

curl -fsSL https://raw.githubusercontent.com/liorwn/claudetop/main/install.sh | bash

As a Claude Code plugin

claude plugin marketplace add liorwn/claudetop
claude plugin install claudetop

This gives you the SessionEnd hook + all slash commands (/claudetop:stats, /claudetop:dashboard, /claudetop:branch, /claudetop:export, /claudetop:pricing) automatically.

Then restart Claude Code.

What you see

Before claudetop

>

A blank prompt. No context. No cost. No idea.

After claudetop

14:32  my-project/src/app  Opus  20m 0s  +256/-43  #auth-refactor
152.3K in / 45.2K out  ████░░░░░░ 38%  $3.47  $5.10/hr  ~$174/mo
cache: 66%  efficiency: $0.012/line  opus:~$3.20  sonnet:~$0.88  haiku:~$0.23
$5 MARK  |  TRY /fast  |  main*  |  CI ✓  |  ♫ Bonobo - Kerala

Every response, you see:

  • What project you're in and how deep
  • What model is running and for how long
  • What it costs right now, per hour, and projected monthly
  • How efficient your cache is (are you wasting tokens?)
  • What it would cost on a different model (should you switch?)
  • Smart alerts when something is wrong

Features

Real-time cost tracking

Your actual session cost (green), burn rate per hour, and monthly forecast ext...

Comments (0)
to leave a comment.

No comments yet. Be the first to share your thoughts!

Related Skills

n8n

by n8n-io

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.
179,495
55,855
TypeScript
MCP Serversaiapis
View details
gemini-cli

by google-gemini

An open-source AI agent that brings the power of Gemini directly into your terminal.
98,015
12,330
TypeScript
AI Agentsaiai-agents
View details
everything-claude-code

by affaan-m

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
80,898
10,398
JavaScript
AI Agentsai-agentsanthropic
View details
awesome-claude-skills

by ComposioHQ

A curated list of awesome Claude Skills, resources, and tools for customizing Claude AI workflows
44,833
4,538
Python
AI Agentsagent-skillsai-agents
View details
ui-ux-pro-max-skill

by nextlevelbuilder

An AI SKILL that provide design intelligence for building professional UI/UX multiple platforms
43,006
4,155
Python
CLI Toolsai-skillsantigravity
View details
chatgpt-on-wechat

by zhayujie

CowAgent是基于大模型的超级AI助理,能主动思考和任务规划、访问操作系统和外部资源、创造和执行Skills、拥有长期记忆并不断成长。同时支持飞书、钉钉、企业微信、微信公众号、网页等接入,可选择OpenAI/Claude/Gemini/DeepSeek/ Qwen/GLM/Kimi/LinkAI,能处理文本、语音、图片和文件,可快速搭建个人AI助手和企业数字员工。
42,246
9,830
Python
AI Agentsaiai-agent
View details