openrouter-balance
PLUGINLive OpenRouter credit balance in the Ulpi status bar — "OR $12.34 left", with total/used/remaining on hover, amber below 15% remaining, click to refetch.
by maeinomatic · v1.0.3
What it does
Live OpenRouter credit balance in the Ulpi status bar — "OR $12.34 left", with total/used/remaining on hover, amber below 15% remaining, click to refetch. Polls every 5 minutes idle and refetches ~8 s after each chat turn.
The plugin's Python half resolves the profile's OPENROUTER_API_KEY through agent.secret_scope (profile-scope aware, safe under multiplexing; the key never leaves the backend) and proxies the free openrouter.ai /api/v1/credits endpoint, mounted at /api/plugins/openrouter-balance/* behind the dashboard auth gate. The desktop half registers a statusBar.right chip via @ulpi/plugin-sdk.
The Python register is a no-op — no tools, hooks or middleware. Disclosure — the only network egress is the openrouter.ai credits call authenticated with the user's own key; no telemetry; no file reads outside Ulpi's own env resolution; no shell commands or background processes.
Honest error chips (no key / bad key / offline / error) instead of silent failures; offline retries every 2 minutes.
Review notes
What an owner reads and accepts before the install is approved.
- Ulpi has not reviewed this version: it is listed in the public plugin catalog, and the install still fetches it at its pinned commit, checks its shape and scans it before you approve