laravel-ai-usage

Versie
v0.1.8
Downloads
146 downloads
Licentie
Apache-2.0
GitHub

Introduction

Tracks the tokens and cost of every laravel/ai call in your application and shows them on a filterable dashboard. Usage is recorded automatically from the laravel/ai events, priced with a model price list synced from OpenRouter, and attributed to a feature, a subject (any Eloquent model) and a user. The pages are standalone Livewire pages that ship their own compiled CSS, so they work without your application's Tailwind build.

  • Records agent prompts and streams, embeddings, images, transcriptions, reranking and failovers.
  • Prices every call when it is recorded (input, cached input, cache write and output tokens) and keeps the rates used.
  • A dashboard with a chart of cost, tokens or requests (per hour, day or month) and breakdowns, a record list with filters, sorting and CSV export, a detail page per call, and a model list with a sync button.
  • Budgets per day, week or month, with an event and an optional mail.
  • Prompt and response text are not stored unless you enable it.

The AI usage dashboard

Een fout gevonden of een vraag? Maak een issue aan op GitHub.