claudecodex

token-usage

AI agent token profiler. On Claude Code and Cowork, attributes usage to the slash command, skill or subagent that consumed it.

3 on GitHubby Craig Fletcherv0.9.0MITupdated 13 days ago

Not in a marketplace yet, so it loads for one session with --plugin-dir.

Plugin token-usage in Wicked-Sick-Ltd/token-usage. Commands read from the repo's manifest — 12 days ago.

This plugin runs code on your machine — its hooks fire automatically on events like tool use and it starts local MCP servers. The exact commands are listed below; read them before installing.

What it installs

Skills (1)

  • report

    Report Codex token usage, expensive turns or skills, models, session comparisons, usage history, budget insights, live usage, dashboards and aggregate exports. Use when asked where tokens went, what a session cost, or to compare agent usage.

MCP servers (1)

  • token-usage

    runs: python3 ${CLAUDE_PLUGIN_ROOT}/scripts/mcp_server.py

Hooks (4)

  • Stop

    python3 "${CLAUDE_PLUGIN_ROOT}/scripts/token_usage.py" hook

  • Stop

    python3 "${CLAUDE_PLUGIN_ROOT}/scripts/activity_bridge.py" hook --runtime claude --stdout claude

  • SubagentStop

    python3 "${CLAUDE_PLUGIN_ROOT}/scripts/token_usage.py" hook

  • SubagentStop

    python3 "${CLAUDE_PLUGIN_ROOT}/scripts/activity_bridge.py" hook --runtime claude --stdout claude

View source on GitHub

Similar plugins

ecc

claudecodex

Harness-native ECC operator layer - 71 agents, 314 skills, 98 legacy command shims, reusable hooks, rules, selective install profiles, and production-ready workflows for Claude Code, Codex, OpenCode, Cursor, and related agent harnesses

200 skills · 98 commands · 71 agents · 1 MCP server · hooks

affaan-m/ECC 302,088

Token usage tracking, model cost attribution per agent, budget alerts, and optimization recommendations

24 skills · 1 command · 1 agent · hooks

ruvnet/ruflo 81,589

Skill: add headroom-ai compress() to a Python or TypeScript app to cut LLM input tokens (tool outputs, logs, JSON, chat history). No API key.

1 skill

headroomlabs-ai/headroom 79,508

mem0

claudecodex

Cross-session memory and token savings for coding agents.

6 skills · 1 agent · 1 MCP server · hooks

mem0ai/mem0 68,893

azure

claude

Transform Claude into an Azure expert. This plugin integrates the Azure MCP server and specialized Azure skills to move beyond generic advice. It enables Claude to perform real-world tasks: listing resources, validating deployments, diagnosing infrastructure issues, and optimizing costs across 50+ Azure services.

44 skills · 1 MCP server

anthropics/claude-plugins-official 47,076

ifixai

claudecodex

Independent auditing for AI agents, open source. Claude discovers your setup, confirms the cost, and audits your agent against the one question other tools skip: is it doing the job it's supposed to do, given your business rules and org structure? Test any model (Anthropic, OpenAI, Gemini, Azure, Bedrock, …) graded by self, one independent judge, or a cross-vendor panel; each provider is billed to its own account via a key in your settings, never the command line. Results render as an interactive artifact (with a static-report fallback).

1 skill · hooks

ifixai-ai/iFixAi 45,158

Maintain token-usage?

This page updates itself from your repo. Add the badge to your README, or get it Featured to pin it above the organic results with a followed link to your site.

claude & codex pluginslisted