{"repo":"azat-io/token-limit","free":true,"listed":false,"github":"https://github.com/azat-io/token-limit","clone":"git clone https://github.com/azat-io/token-limit.git","description":"🛰 Monitor how many tokens your code and configs consume in AI tools. Set budgets and get alerts when limits are hit","language":"TypeScript","stars":64,"topics":["ai","chatgpt","claude","context","tokens"],"license":"MIT","category":"analytics","readme_excerpt":"Token Limit Token Limit helps you monitor how many tokens your AI context files consume. Set token budgets for your prompts, documentation, and configs, then get alerts when limits are exceeded. Keep your AI costs predictable and avoid hitting context window limits that break your applications. Why AI context files are becoming a standard part of modern development workflows. Projects now commonly include .context/ , CLAUDE.md , .clinerules , .cursorrules , and other AI instruction files directly in their repositories. As these files grow in size and complexity, it becomes crucial to monitor their token consumption to avoid unexpected API costs and context window limitations. Key Features - Multi-model support for OpenAI GPT and Anthropic Claude - CI integration to catch budget overruns in pull requests - Flexible configuration for different AI use cases - Real token costs instead of inaccurate file sizes - Cost budgets in dollars and cents, not just tokens - Up-to-date pricing from OpenRouter API instead of hardcoded values How It Works 1. Configure your token budgets in token-limit.config.ts , package.json , or other supported formats 2. Analyze files using official tokenizers for each AI model (tiktoken, Anthropic) 3. Report which files exceed limits with detailed breakdowns 4. Prevent costly overruns by failing CI builds when budgets are exceeded Usage Quick Start 1. Install Token Limit: 2. Create a configuration file (e.g., token-limit.config.ts or .token-limit.json ): 3","default_branch":null,"files":null,"tree":[],"storefront":"/r/azat-io","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/azat-io/token-limit/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}