This is a fork of opencode-mystatus that adds a new terminal mode and is otherwise identical.
For usage inside opencode, see the original repository.
You can run mystatus directly from the terminal:
# Install dependencies first (if not already installed)
npm install
# Single run - check quotas once
npm run mystatus
# Watch mode - continuously monitor quotas (updates every 5 minutes)
npm run mystatus:watch
# Watch mode with 1-minute updates (for testing/rapid monitoring)
npm run mystatus:watch:fast
# Watch mode with custom interval (e.g., every 10 minutes)
npm run mystatus -- --watch --interval 10Command Line Options:
-w, --watch- Enable watch mode for continuous monitoring-i, --interval <minutes>- Set polling interval in minutes (default: 5)--show <sections>- Show only selected sections (header,summary,dashboard,dashboard-compact,footer)--width <columns>- Set max dashboard width (auto-detected by default)
Examples:
npm run mystatus -- --show dashboard,summary,footernpm run mystatus -- --show header,summary,dashboard-compact,footernpm run mystatus -- --watch --show summary
Watch Mode Features:
- 🔄 Automatically refreshes quota data at specified intervals
- ⏱️ Shows live countdown to next update
- 📊 Dashboard with color-coded health indicators
- 🎯 Press Ctrl+C to exit gracefully
Or if you prefer using Bun:
bun install
bun run cli.tsMIT
