subhashladumor1 / laravel-ai-guard
PublicLaravel AI Guard 🛡️💰🤖 - Control and optimize AI costs in Laravel AI SDK applications 🚀 Track OpenAI & LLM token usage 📊, estimate AI costs before execution ⚠️, enforce AI budgets 🧾, and prevent unexpected billing spikes in production 💥.
This package helps web app builders using Laravel track AI service costs, estimate expenses upfront, set spending limits per user or group, and block overuse to avoid bill shocks.
How It Works
You hear about a handy tool that helps keep AI features in your web app affordable and predictable, preventing surprise bills.
You simply add this tool to your existing web project with a quick setup, like plugging in a safety net.
You choose easy rules, like how much each person or your whole app can spend on AI thinking each month.
Whenever your app wants to use smart AI, it first checks the budget, lets it go if okay, and notes down the cost afterward.
You check simple summaries to see total costs, top users, and where money goes, all in plain reports.
Your AI-powered app delights users without unexpected bills, everything tracked and under control.
Star Growth
Repurpose is a Pro feature
Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.
Unlock RepurposeSimilar repos coming soon.