{"repo":"heybardi/routersoup","free":true,"listed":false,"github":"https://github.com/heybardi/routersoup","clone":"git clone https://github.com/heybardi/routersoup.git","description":"Openrouter free self-hosted alternative for Laravel","language":"PHP","stars":12,"topics":[],"license":null,"category":"self-hosted-apps","readme_excerpt":"RouterSoup for Laravel Your self-hosted, free alternative to OpenRouter. Store multiple API keys per provider, rotate between them automatically, and monitor everything from a built-in dashboard. Requires PHP 8.3+, Laravel 11+, and Laravel AI Table of Contents - Installation - Usage - Rotation Strategies - Dashboard - Authorization - Pruning Old Events - Configuration - Development Installation ⚡️ Get started by requiring the package using Composer: Then run the install command — it publishes the config, migrations, and a service provider stub: Usage Open your AppServiceProvider and call RouterSoup::enable() : That's it. RouterSoup now intercepts all Laravel AI calls and rotates your provider keys automatically. Head to /routersoup in your browser, add a few API keys, and you're good to go. Rotation Strategies RouterSoup supports two strategies for picking which API key to use: Strategy Enum What it does --- --- --- Random RouterSoupRotation::Random Picks a random active key. Simple, stateless. Least Used RouterSoupRotation::LeastUsed Picks the key that hasn't been used the longest. Spreads load evenly. Set it in config/routersoup.php : Dashboard Visit /routersoup (or whatever you set path to) to access the admin panel: - Dashboard — Provider usage analytics over the last 30 days. - Providers — Add, edit, enable/disable, and delete API keys. - Monitoring — Browse every Laravel AI event with full payloads. - Exceptions — Failed provider calls with error details and traces. No ","default_branch":null,"files":null,"tree":[],"storefront":"/r/heybardi","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/heybardi/routersoup/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}