Claude-Usage-Extension  by lugia19

Browser extension for tracking Claude.ai token usage

Created 1 year ago
251 stars

Top 99.8% on SourcePulse

GitHubView on GitHub
Project Summary

This browser extension, Claude Usage Tracker, addresses the need for users to monitor their Claude.ai token consumption across various interactions. It provides a clear overview of remaining quota, benefiting users who need to manage their usage effectively within defined limits.

How It Works

The extension calculates token usage by analyzing data from uploaded files, project knowledge bases, chat history, AI responses, system prompts, and enabled tools. Token consumption is determined either via Anthropic's API, requiring a user-provided key, or through the gpt-tokenizer library. This approach offers a comprehensive, client-side view of resource utilization within the Claude.ai interface. Data synchronization across devices is facilitated using Firebase, leveraging the user's organization ID.

Quick Start & Requirements

Installation is available for Chrome and Firefox browsers, as well as a dedicated MacOS/Windows installer. No specific non-default prerequisites are detailed, though an Anthropic API key may be optionally used for token calculation.

Highlighted Details

  • Comprehensive token tracking covers uploaded documents, project knowledge files, custom instructions, message history, system prompts, and tool usage (analysis, artifacts).
  • User interface elements, including cost and estimate indicators, feature tooltips for detailed explanations.
  • Cross-device synchronization of usage data is managed via Firebase.

Maintenance & Community

No specific details regarding contributors, community channels, or roadmap were provided in the README.

Licensing & Compatibility

The license type and compatibility notes for commercial use were not specified in the provided README.

Limitations & Caveats

The extension cannot accurately track token usage for web search results, as their full content is not exposed in the conversation history. Similarly, backend research activities are not monitored. Certain inaccessible "Knowledge" objects returned by the backend may also present tracking limitations.

Health Check
Last Commit

1 week ago

Responsiveness

Inactive

Pull Requests (30d)
0
Issues (30d)
3
Star History
31 stars in the last 30 days

Explore Similar Projects

Feedback? Help us improve.