Skip to content

fulviofreitas/cloudcli-plugin-ccusage

Repository files navigation

Claude Code Cost

A CloudCLI UI plugin that displays Claude Code token usage and costs via ccusage.

Install

Option A — via CloudCLI UI: Open Settings > Plugins, paste this repository's Git URL, and click Install.

Option B — manual:

git clone <repo-url> ~/.claude-code-ui/plugins/ccusage
cd ~/.claude-code-ui/plugins/ccusage
npm install
npm run build

Screenshots

Daily Monthly
Daily view Monthly view
Session 5-Hour Blocks
Session view 5-Hour Blocks view

Update

Option A — via CloudCLI UI: Open Settings > Plugins, find Claude Code Cost, and click Update.

Option B — manual:

cd ~/.claude-code-ui/plugins/ccusage
git pull
npm install
npm run build

Then reload CloudCLI (refresh the browser or restart the container).

Requirements

  • Node.js (for npx to run ccusage)
  • ccusage reads from ~/.claude/projects/, so the plugin only sees usage from the same user account that runs CloudCLI.

Compatibility

The spawned ccusage version is pinned to ccusage@~20.0 in src/server.ts. ccusage has historically made breaking JSON-schema and flag changes between minors; bumping past ~20.0 requires updating the plugin's types and field reads in lockstep.

License

MIT

About

ccusage plugin for cloudcli — Claude Code usage analytics

Resources

License

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors