# jonaaix/laravel-ai-costs

> Cost tracking for Laravel AI agents. Calculates API costs from usage metadata with pricing for 2,600+ models via LiteLLM.

Navigation: [Developer Tools](category/developer-tools.txt) · [Index](../llms.txt)

## Facts

- GitHub: https://github.com/jonaaix/laravel-ai-costs
- HTML: https://awesomeopensource.dev/project/jonaaix-laravel-ai-costs
- Website: https://jonaaix.github.io/laravel-ai-costs/
- License: MIT
- Language: PHP
- stars: 2
- Activity score: 3.1/5 (Maintained)
- Last commit (any branch): 2026-08-27

## Description

Cost tracking for Laravel AI agents that calculates API spend from the usage metadata returned by each response. A TracksAiCost trait replaces Promptable on an agent and exposes lastCost() and totalCostUsd(), so per-prompt and per-instance costs are available in code. Pricing for more than 2,600 models comes from the LiteLLM database, cached daily and overridable locally, with zero configuration. Installed through Composer.

## Maintenance activity

- Recency: 55% (weight 53%) — last commit: 77 days ago
- Commit volume: 45% (weight 33%)
- Bug fixes: 100% (weight 13%)
- Commits: 3 / 90d, 11 / 365d

## Similar projects

- [stablyai/orca](stablyai-orca.md): Run several coding agents in parallel, each in its own Git worktree · Activity score 5.0/5 (Thriving)
- [tauri-apps/tauri](tauri-apps-tauri.md): Build small desktop and mobile apps with a web frontend and a Rust core · Activity score 5.0/5 (Thriving)
- [microsoft/terminal](microsoft-terminal.md): Tabs, panes and GPU rendering for PowerShell, cmd, WSL and SSH on Windows · Activity score 5.0/5 (Thriving)
- [ant-design/ant-design](ant-design-ant-design.md): A UI Design Language. · Activity score 5.0/5 (Thriving)
- [microsoft/playwright](microsoft-playwright.md): End-to-end testing and browser automation across Chromium, Firefox and WebKit · Activity score 5.0/5 (Thriving)
- [nvm-sh/nvm](nvm-sh-nvm.md): POSIX shell script for installing and switching between Node.js versions · Activity score 5.0/5 (Thriving)
