You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Feature Request: Add Zen balance API endpoint #10447
Add a public API endpoint to query the current Zen account balance programmatically.
Use Case
I'd like to display my Zen balance in my system status bar (waybar on Linux). Currently, the only way to check balance is through the web dashboard, which makes automation impossible.
A simple endpoint like GET /zen/v1/balance (authenticated with the existing API key) would enable:
Status bar widgets showing remaining credits
Alerts when balance drops below a threshold
Integration with budgeting/monitoring tools
CI pipelines that check balance before expensive runs
Currently using opencode stats to track local spending, but this doesn't reflect the actual account balance.
Additional Context
The auto-reload feature suggests the infrastructure to query balance already exists server-side. Exposing it via API would be a small addition with high utility for power users.
Activity
github-actions commentedon Jan 24, 2026
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.
kuba-lacz commentedon Jan 24, 2026
Closing - created from wrong account, will recreate.