Skip to content
Claude Code

AI Usage for Claude Code

io.github.mohitbansal321/ai-usage-mcp

Reports real token usage and cost from Claude Code and OpenCode data. Nothing leaves your machine.

client:Claude Code transport:stdio runtime:npm

Install AI Usage in Claude Code

run in your project directory

claude mcp add ai-usage-mcp -- npx -y ai-usage-mcp

Adds it for this project only. Append --scope user to make it available everywhere. Claude Code docs

AI Usage in other clients