r/coolgithubprojects • u/LowerCod6549 • 8h ago
I made a tool to run Claude Code from Telegram, approve its commands from my phone, and resume tasks after usage limits
I kept leaving Claude Code running on long tasks and coming back to find it stuck on a permission prompt or stopped at its usage limit. So I built baton.
It runs Claude Code (also Codex and OpenCode) on your own machine inside herdr panes and connects them to a Telegram bot:
- queue a task and walk away
- when the agent wants to run a command, you get an Approve / Deny card on your phone
- if it hits its usage limit, baton resumes the task after the reset, or hands it to another agent that still has quota
- /status and /budget to check on things, "stop" to halt everything
40-second demo with a real Claude Code run: https://youtu.be/n8ng7doyO1A
Code: https://github.com/selorito/baton-herdr
It's also on Agensi as a paid skill that sets it all up for you: https://agensi.io/skills/baton-run-claude-code-codex-opencode-from-telegram
Disclosure: I'm the author. Supported on Ubuntu and WSL1 so far; macOS, native Windows and other distros are in beta. Happy to answer questions, and I'd really like to hear what breaks.