Paul Kloppers 3647174c30 feat(redstone): /ai_use — OpenRouter key usage report
Admin-only command. Calls GET https://openrouter.ai/api/v1/key (the
REST equivalent of the @openrouter/sdk's apiKeys.getCurrent()) and
formats the result:

- active model (from the settings table)
- tier (🟢 free / 💰 paid)
- credit limit + remaining (or "none")
- credits spent today / week / month / all-time

Plus a note that free-model requests don't draw credits — they're
capped separately at 50/day (UTC-midnight reset), liftable to
1000/day with $10 credit. Kept fetch-based like the rest of the
OpenRouter integration rather than pulling in the SDK.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-14 08:23:08 +02:00
2026-05-11 21:51:59 +02:00
2026-04-21 20:33:22 +02:00
Description
No description provided
611 KiB
2026-05-14 21:39:15 +02:00
Languages
TypeScript 96.7%
Shell 2.6%
Dockerfile 0.7%