๋ณธ๋ฌธ์œผ๋กœ ๊ฑด๋„ˆ๋›ฐ๊ธฐ
TakoAPI
์Šคํ‚ฌ๋กœ ๋Œ์•„๊ฐ€๊ธฐ

token-alert

r00tid ์ œ์ž‘

AI & LLMs
โ€”์•„์ง ํ‰๊ฐ€ ์—†์Œ
๋‚ด ํ‰๊ฐ€

์š”์•ฝ

๐Ÿšจ **Monitor session tokens and get alerts at 75%/90%/95%**.

์„ค๋ช…

์ด ์Šคํ‚ฌ์ด ํ•˜๋Š” ์ผ

Monitors Clawdbot session token usage and sends alerts when usage crosses configurable thresholds (25%, 50%, 75%, 90%, 95%, 100%). Provides both a terminal script for on-demand checks and an HTML dashboard with a visual progress bar. Operates statelessly, calculating usage live via the session_status tool.

Because it runs statelessly with no file management, usage data is always calculated from the live session rather than a potentially stale snapshot.

์‚ฌ์šฉ ์‹œ์ 

  • Checking remaining token budget before starting a long research task
  • Getting a Telegram alert when a session reaches 90% capacity
  • Adding a daily token usage check to a Clawdbot HEARTBEAT routine
  • Opening a visual dashboard to monitor consumption mid-conversation
  • Deciding when to wrap up and start a fresh session before hitting the limit

์˜ˆ์‹œ ์›Œํฌํ”Œ๋กœ

์ž…๋ ฅ

User asks: Check token status

์—์ด์ „ํŠธ
  1. 1

    Runs check.py script

  2. 2

    Queries Clawdbot session_status tool for current token count

  3. 3

    Calculates usage percentage against the session limit

  4. 4

    Compares percentage against configured thresholds

  5. 5

    Displays progress bar with usage stats and a recommended action

์ถœ๋ ฅ

Terminal output: 'โ–ฐโ–ฐโ–ฐโ–ฐโ–ฐโ–ฐโ–ฐโ–ฐโ–ฐโ–ฐโ–ฐโ–ฐโ–ฐโ–ฐโ–ฐโ–ฐโ–ฐโ–ฐโ–ฐโ–ฑโ–ฑโ–ฑโ–ฑโ–ฑโ–ฑ 78.0% โ€” 156,000 / 200,000 tokens used, estimated <1 session remaining, recommendation: prepare new session'

์š”๊ตฌ ์‚ฌํ•ญ

  • Telegram channel configured for alert delivery (optional)

์„ค์น˜

clawhub install r00tid/token-alert

CLI ๋ช…๋ น์„ ์‹คํ–‰ํ•˜๊ฑฐ๋‚˜, ํ”„๋กฌํ”„ํŠธ๋ฅผ Claude Code, Cursor, Codex ๋“ฑ ์‚ฌ์šฉํ•˜๋Š” ์ฝ”๋”ฉ ์—์ด์ „ํŠธ์— ๋ถ™์—ฌ๋„ฃ์œผ์„ธ์š”.

๋งํฌ