Package Exports
- opencode-credit-dashboard
- opencode-credit-dashboard/credit-dashboard.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (opencode-credit-dashboard) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
opencode-credit-dashboard
Credit usage dashboard plugin for OpenCode.
Shows per-account quota, token usage (input/output/thinking), daily cost breakdown, and enable/disable toggles for Antigravity accounts. Syncs data across devices via Firebase.
Features
- Per-account quota display — see remaining quota for Gemini Pro, Flash, and Claude across all accounts
- Token breakdown — input, output, and thinking tokens per session and model
- Daily cost tracking — cost and token usage aggregated by day
- Model usage cards — sortable by tokens, cost, or messages
- Multi-device sync — Firebase Realtime Database keeps data in sync across machines
- Account management — enable/disable accounts, set nicknames for devices
- Session browser — view all sessions with cost and token details
- Auto-refresh — live updates every 15 seconds
Installation
Option A — Via plugin-updater (recommended)
If you have opencode-plugin-updater installed, add this entry to ~/.config/opencode/config/plugins.json:
{
"name": "opencode-credit-dashboard",
"url": "https://github.com/intisy/opencode-credit-dashboard.git",
"install": null,
"build": null,
"bundle": null,
"output": "credit-dashboard.js",
"pluginFile": "credit-dashboard.js",
"autoUpdate": true
}Restart OpenCode. The updater will clone the repo and deploy the plugin automatically.
Option B — npm
Add the package to your ~/.config/opencode/opencode.json:
{
"plugins": ["opencode-credit-dashboard@latest"]
}Restart OpenCode.
Option C — Manual
mkdir -p ~/.config/opencode/repos/intisy/opencode-credit-dashboard
git clone https://github.com/intisy/opencode-credit-dashboard.git ~/.config/opencode/repos/intisy/opencode-credit-dashboard
cp ~/.config/opencode/repos/intisy/opencode-credit-dashboard/credit-dashboard.js ~/.config/opencode/plugins/credit-dashboard.jsRegister the plugin in ~/.config/opencode/opencode.json:
{
"plugins": {
"credit-dashboard": "./plugins/credit-dashboard.js"
}
}Firebase Sync (optional)
To enable multi-device sync, place a Firebase service account JSON file at:
~/.config/opencode/config/firebase-service-account.jsonWithout this file, the dashboard works in local-only mode.
Usage
The plugin exposes a credit_dashboard tool. Ask OpenCode:
Show me my credit dashboardThis opens a web dashboard at http://localhost:3456 with full analytics.
License
MIT