tokentoll
tokentoll is a CI-oriented LLM cost gate tool that statically analyzes LLM API calls in Python, JavaScript, and TypeScript code, scores each Pull Request according to custom policies, and posts a PASS/WARN/FAIL conclusion on the PR; when a policy is violated, it can fail the workflow, thereby preventing cost regressions from being merged. It requires no API keys, sends no telemetry, ships pricing data with the package and can be used offline, and also includes an MCP server for hosts such as Claude Code to check the cost impact of code changes during conversations.