SuperAPIAI Directory

token-meter

github.com · AI agents

Real-time token cost meter for AI coding agents with status bar mode. Watch your tokens burn as it happens.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)

About this tool

Purpose

token-meter is used to address the issue of real-time cost visibility during the operation of AI coding agents. Users can understand at any time during the agent's operation how many tokens each command consumes, rather than only learning the total cost after the entire session ends.

Main Capabilities

  • Real-time token consumption: Displays the token consumption of each message by conversation turn.
  • Timestamps: Annotates the time of occurrence and the AI response duration next to each message.
  • Cost accumulation: Accumulates and displays the estimated cost in real time.
  • Tool call tracking: Records the tools that are called and when they are called.
  • Status bar mode: Displays key metrics in a single line at the bottom of the terminal, including:
    • T:1.5M — cumulative number of tokens consumed
    • $4.54 — estimated cost
    • M:7 — number of messages in the current session
    • TL:9 — number of tool calls
    • S:252 — number of sessions detected
    • YOU/AI/TL — most recent event (user message, AI response, or tool call)

Status bar mode is suitable for running in parallel with an AI agent and will not obscure the main view.

How to Use

The tool works by monitoring local session files in real time and does not make network requests. It parses new content written to disk, extracts the token count, messages, and tool calls from each line, and displays them in the terminal in real time with timestamps. The specific installation and run commands are not yet provided in the existing materials.

Applicable Scenarios

  • Developers who need to monitor the cost overhead of AI coding agents in real time.
  • Users who want to continuously view token consumption and cost accumulation without interrupting the main view.
  • Analysis scenarios where users want to understand the specific cost of each command and each tool call.

Limitations and Security Notes

  • 100% local: Data does not leave the user's machine.
  • Read-only: Never modifies session files.
  • No API key required: Does not depend on external services.

Related Tools

agent-trace is a companion post-session analysis tool that provides cost breakdowns, tool health checks, and anomaly detection.

Detailed information such as supported agent types, installation steps, and specific commands is not yet provided.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools