Leak an AI API key today and whoever has it can spend everything behind it.
So I gave every key its own wallet.
Each key gets a small Cashu pocket with a budget, the models it may use, a max per request, and an expiry. Every request is paid from that pocket and nothing else.
Revoke the key and the leftover sats come home.
Built for @routstr. Tested on signet. @redshift @calle
github.com/welliv/routstrd/tree/per-key-pockets
So I gave every key its own wallet.
Each key gets a small Cashu pocket with a budget, the models it may use, a max per request, and an expiry. Every request is paid from that pocket and nothing else.
Revoke the key and the leftover sats come home.
Built for @routstr. Tested on signet. @redshift @calle
github.com/welliv/routstrd/tree/per-key-pockets