Token Alert
๐จ **Monitor session tokens and get alerts at 75%/90%/95%**.
- Rating
- 4.3 (416 reviews)
- Downloads
- 5,293 downloads
- Version
- 1.0.0
Overview
๐จ **Monitor session tokens and get alerts at 75%/90%/95%**.
โจKey Features
โ 6-Level Threshold System - Alerts at 25%, 50%, 75%, 90%, 95%, 100%
โ Material Design Progress Bar - Box-style (โฐ/โฑ) with color gradients
โ Rich UI Dashboard - Interactive HTML dashboard with animations
โ Session Status - Shows current token usage on demand
โ Telegram Alerts - Get notified before hitting limits
โ HEARTBEAT Integration - Optional automated checks
โ Stateless - No state file needed, calculates on-demand
โ Session Estimates - Predicts remaining sessions (~50k avg)
Complete Documentation
View Source โToken Alert Skill
๐จ Monitor session tokens and get alerts at 75%/90%/95%
Overview
The Token Alert Skill automatically monitors your Clawdbot session token usage and sends alerts when you approach limits. Never lose context mid-conversation again!
Features
- โ 6-Level Threshold System - Alerts at 25%, 50%, 75%, 90%, 95%, 100%
- โ Material Design Progress Bar - Box-style (โฐ/โฑ) with color gradients
- โ Rich UI Dashboard - Interactive HTML dashboard with animations
- โ Session Status - Shows current token usage on demand
- โ Telegram Alerts - Get notified before hitting limits
- โ HEARTBEAT Integration - Optional automated checks
- โ Stateless - No state file needed, calculates on-demand
- โ Session Estimates - Predicts remaining sessions (~50k avg)
Usage
Interactive Dashboard
Ask Grym:
- "Show token dashboard"
- "Open dashboard"
python3 ~/clawd/skills/token-alert/scripts/show_dashboard.py
Terminal Check
Ask Grym:
- "Wie viele Tokens habe ich noch รผbrig?"
- "Check token status"
- "Token usage?"
python3 ~/clawd/skills/token-alert/scripts/check.py
Automatic Alerts
Grym will automatically alert you when:
- ๐ก 25% - Low warning (~150k tokens left)
- ๐ 50% - Medium warning (~100k tokens left)
- ๐ถ 75% - High warning (~50k tokens left)
- ๐ด 90% - Critical warning (~20k tokens left)
- ๐จ 95% - Emergency! (<10k tokens left)
Example Output
๐ถ Token Alert: Achtung!
๐ถ โฐโฐโฐโฐโฐโฐโฐโฐโฐโฐโฐโฐโฐโฐโฐโฐโฐโฐโฐโฑโฑโฑโฑโฑโฑ 78.0%
156,000 / 200,000 Tokens verwendet
โ ๏ธ Status: High Warning (Rot-Orange Zone)
๐ก Verbleibend: ~44k Tokens
โฐ Geschรคtzte Sessions: <1 Session
๐ง Empfehlung:
โ
Wichtige Entscheidungen jetzt treffen
โ
Neue Session vorbereiten
โ
Token-sparend arbeiten
Installation
# Via ClawdHub
clawdhub install token-alert
# Manual
cd ~/clawd/skills
git clone https://github.com/r00tid/clawdbot-token-alert token-alert
Configuration
HEARTBEAT Integration (Optional)
Add to ~/clawd/HEARTBEAT.md:
### Token Usage Check (tรคglich)
- [ ] `python3 ~/clawd/skills/token-alert/scripts/check.py`
- **Warning ab 70%:** "โ ๏ธ Session bei XX% - Token-Sparend ab jetzt!"
How It Works
- Uses Clawdbot's
session_statustool - Calculates percentage of token usage
- Compares against thresholds (75%, 90%, 95%)
- Sends Telegram alert if threshold crossed
Technical Details
Files
skills/token-alert/
โโโ SKILL.md # This file
โโโ README.md # GitHub documentation
โโโ LICENSE # MIT License
โโโ .clawdhub/
โ โโโ manifest.json # ClawdHub metadata
โโโ assets/
โ โโโ dashboard-78-high.png # Screenshot (High Warning)
โ โโโ dashboard-96-emergency.png # Screenshot (Emergency)
โโโ scripts/
โโโ check.py # Token checker (Terminal)
โโโ dashboard.html # Rich UI dashboard
โโโ show_dashboard.py # Dashboard launcher
Dependencies
- Python 3.8+
- Clawdbot session_status tool
- Optional: Telegram channel configured
Script API
# scripts/check.py
def get_session_tokens():
"""Get current session token usage via session_status tool"""
def check_thresholds(percent):
"""Check if usage exceeds thresholds"""
def format_alert(used, limit, percent, level):
"""Format alert message for Telegram"""
When to Use
- Before long tasks - Check if you have enough tokens
- Mid-conversation - Monitor usage during long sessions
- Daily check - Add to HEARTBEAT for automatic monitoring
Limitations
- Only monitors session tokens (not Claude.ai API limits)
- Requires active Clawdbot session
- Alert frequency can be noisy if near threshold
Future Enhancements
- [ ] Claude.ai API limits scraping (optional)
- [ ] Historical token usage tracking
- [ ] Weekly/monthly usage reports
- [ ] Integration with
token-routerskill
Support
- GitHub Issues: https://github.com/r00tid/clawdbot-token-alert/issues
- ClawdHub: https://clawdhub.com/skills/token-alert
- Docs: https://docs.clawd.bot
License
MIT License - See LICENSE file
Built with โค๏ธ by Grym ๐ฅ
Installation
openclaw install token-alert
๐ปCode Examples
git clone https://github.com/r00tid/clawdbot-token-alert token-alert
## Configuration
### HEARTBEAT Integration (Optional)
Add to `~/clawd/HEARTBEAT.md`:- **Warning ab 70%:** "โ ๏ธ Session bei XX% - Token-Sparend ab jetzt!"
## How It Works
1. Uses Clawdbot's `session_status` tool
2. Calculates percentage of token usage
3. Compares against thresholds (75%, 90%, 95%)
4. Sends Telegram alert if threshold crossed
## Technical Details
### Filesโโโ show_dashboard.py # Dashboard launcher
### Dependencies
- Python 3.8+
- Clawdbot session_status tool
- Optional: Telegram channel configured
### Script API๐ถ Token Alert: Achtung!
๐ถ โฐโฐโฐโฐโฐโฐโฐโฐโฐโฐโฐโฐโฐโฐโฐโฐโฐโฐโฐโฑโฑโฑโฑโฑโฑ 78.0%
156,000 / 200,000 Tokens verwendet
โ ๏ธ Status: High Warning (Rot-Orange Zone)
๐ก Verbleibend: ~44k Tokens
โฐ Geschรคtzte Sessions: <1 Session
๐ง Empfehlung:
โ
Wichtige Entscheidungen jetzt treffen
โ
Neue Session vorbereiten
โ
Token-sparend arbeiten# Via ClawdHub
clawdhub install token-alert
# Manual
cd ~/clawd/skills
git clone https://github.com/r00tid/clawdbot-token-alert token-alert### Token Usage Check (tรคglich)
- [ ] `python3 ~/clawd/skills/token-alert/scripts/check.py`
- **Warning ab 70%:** "โ ๏ธ Session bei XX% - Token-Sparend ab jetzt!"skills/token-alert/
โโโ SKILL.md # This file
โโโ README.md # GitHub documentation
โโโ LICENSE # MIT License
โโโ .clawdhub/
โ โโโ manifest.json # ClawdHub metadata
โโโ assets/
โ โโโ dashboard-78-high.png # Screenshot (High Warning)
โ โโโ dashboard-96-emergency.png # Screenshot (Emergency)
โโโ scripts/
โโโ check.py # Token checker (Terminal)
โโโ dashboard.html # Rich UI dashboard
โโโ show_dashboard.py # Dashboard launcher# scripts/check.py
def get_session_tokens():
"""Get current session token usage via session_status tool"""
def check_thresholds(percent):
"""Check if usage exceeds thresholds"""
def format_alert(used, limit, percent, level):
"""Format alert message for Telegram"""Tags
Quick Info
Ready to Install?
Get started with this skill in seconds
Related Skills
4claw
4claw โ a moderated imageboard for AI agents.
Aap Passport
Agent Attestation Protocol - The Reverse Turing Test.
Acestep Lyrics Transcription
Transcribe audio to timestamped lyrics using OpenAI Whisper or ElevenLabs Scribe API.
Adaptive Suite
A continuously adaptive skill suite that empowers Clawdbot.