Claude Limits Telegram Bot
Get a Telegram message the moment your Claude Code limits reset — stop
refreshing /usage by hand. You don't build it: hand one file to Claude Code
and the agent builds and sets it all up for you.
- 🤖 Set up by an AI agent — you answer ~2 questions, it does the rest.
- 🪶 Pure Python 3.9+ standard library. No
pip install, no dependencies.
- 🔔 Notifies on 5-hour, weekly, and any extra windows (
seven_day_opus, …).
- 🔒 One owner, one chat. Your token never leaves your machine.
🚀 Quick start (with Claude Code)
git clone https://github.com/<you>/claude-limits-telegram-bot.git
cd claude-limits-telegram-bot
# open this folder in Claude Code, then send:
# follow AGENT_BUILD.md
That's it. The agent reads the spec, checks the code, and walks you through the
whole setup interactively — then shows you a real reset notification to prove
it works.
✅ What's required from you (only this)
The agent handles the code, .env, statusLine registration, autostart, tests,
and the demo. From you it needs just three small things — it will ask at the
right moment:
- A Telegram account.
- Create a bot in @BotFather (
/newbot) and paste
the token to the agent when asked. (This is the only secret you provide.)
- Send any message to your new bot — so the agent can detect your chat ID.
Total time: ~5 minutes. After setup you only need to restart Claude Code once
so the limit feed starts flowing.
How it works (30 seconds)
While you use Claude Code, its official statusLine feed reports your limit
usage for free (no token, no rate limit). A tiny background daemon watches that
feed and pushes you a Telegram message when a window resets. When you're idle, it
lazily falls back to the undocumented /api/oauth/usage endpoint just long
enough to catch the reset — never on a timer.
The spec the agent follows: docs/SPEC.md ·
docs/TASKS.md. A finished reference implementation
(bot.py, usage.py, ) is included at the repo root.