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>
85 KiB
85 KiB