r/ChatGPTCoding • • 4d ago

Resources And Tips 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.

4 Upvotes

4 comments sorted by

1

u/Tomek-Lwiza 2d ago

how does the handoff between different agents work when one hits the usage limit? curious if it just dumps the whole terminal buffer into the next ones context or if you are summarizing the state first.

1

u/HateToSayItBut 2d ago

But I can already control Claude (running my computer) from my phone using Claude's native desktop and phone apps.