model-monitor
v1.0.1
Published
Modern TUI for monitoring OpenClaw AI model usage and costs
Downloads
25
Maintainers
Readme
Model Monitor
Beautiful TUI (Terminal User Interface) for monitoring OpenClaw AI model usage and costs.
✨ Features
- 📊 Real-time monitoring of AI model usage
- 💰 Cost tracking by model and session
- 📈 Visual charts for tokens and costs
- 🎨 Beautiful TUI with blessed-contrib
- 🔄 Auto-refresh every 5 seconds
- ⚡ Lightweight and fast
📦 Installation
Global Installation (Recommended)
npm install -g model-monitorLocal Installation
git clone https://github.com/cccarv82/model-monitor.git
cd model-monitor
npm install🚀 Usage
Global Command
model-monitorLocal Usage
npm start🎯 What It Shows
- Usage by Model: Tokens, costs, and session count per model
- Active Sessions: Recent sessions with age and cost
- Cost Charts: Visual representation of costs by model
- Token Charts: Token usage breakdown
⌨️ Keyboard Shortcuts
qorCtrl+C- Quit the application
📊 Dashboard Layout
┌─ OpenClaw Model Monitor ─────────────────────────────┐
│ Total Cost: $X.XX | Tokens: XXk | Time | Quit: q │
└──────────────────────────────────────────────────────┘
┌─ Usage by Model ──────┐ ┌─ Active Sessions ────────┐
│ Model Tokens Cost │ │ Session Model Age Cost│
│ claude 100K $0.30 │ │ main claude 5m $0.01│
└───────────────────────┘ └──────────────────────────┘
┌─ Cost by Model ($) ───┐ ┌─ Tokens by Model ────────┐
│ ████ claude │ │ ████████ claude │
│ ██ gemini │ │ ████ gemini │
└───────────────────────┘ └──────────────────────────┘🛠️ Requirements
- Node.js >= 14.0.0
- OpenClaw installed and configured
📝 License
MIT © Carlos
🤝 Contributing
Contributions, issues, and feature requests are welcome!
💖 Credits
Created with ❤️ by Freya for monitoring OpenClaw AI models.
Made with blessed-contrib for beautiful terminal dashboards.
