AI API Cost Tracker screenshot thumbnail

AI API Cost Tracker

AI API Cost Tracker is an open-source ledger that prices every OpenAI, Anthropic and Gemini request and charges it to the customer, feature or agent run behind it. Apps report token counts through one HTTP endpoint, dependency-free client libraries or OpenTelemetry traces. Prompts and responses are never stored. Each request is costed at the price in force that day, so a rate change never rewrites history. Dashboards break spend down by project, provider, model, customer, feature and run, forecast month-end spend and flag spikes. Budgets, monthly or per run, alert at 80% and 100% by signed webhook, Slack or email. Agents can check a budget before they spend, or reserve it so concurrent steps cannot overspend. A "Why spend changed" page splits a rise into volume, model mix, tokens per request and price, and savings estimates size batching, caching and cheaper models. Outcomes turn spend into cost per resolved ticket. Reconciliation compares recorded costs with Anthropic's cost report, OpenAI's costs API and Google Cloud's billing export. An optional billing ledger sets each customer's revenue against their AI cost, drafts Stripe invoices and shares read-only portal links. Exports cover CSV, FinOps FOCUS and a reporting API. Roles, invitations and an audit log serve teams, with OpenID Connect sign-in for providers such as Okta or Keycloak. Running on a dedicated VPS on RepoCloud with guaranteed CPU, RAM, and SSD, full root SSH access, and a browser serial console. MIT licensed.

Deploy