takopi
🐙 he just wants to help-pi
telegram bridge for codex and claude code. runs the agent cli, streams progress, and supports resumable sessions.
features
stateless resume, continue a thread in the chat or pick up in the terminal.
progress updates while agent runs (commands, tools, notes, file changes, elapsed time).
robust markdown rendering of output with a lot of quality of life tweaks.
parallel runs across threads, per thread queue support.
/cancel a running task.
requirements
uvfor installation (curl -LsSf https://astral.sh/uv/install.sh | sh)- at least one engine installed:
codexon PATH (npm install -g @openai/codexorbrew install codex)claudeon PATH (npm install -g @anthropic-ai/claude-code)
install
uv tool install takopito install astakopi- or try it with
uvx takopi
setup
- get
bot_tokenfrom @BotFather - get
chat_idfrom @myidbot - send
/startto the bot (telegram won't let it message you first) - run your agent cli once interactively in the repo to trust the directory
config
global config ~/.takopi/takopi.toml, repo-level config .takopi/takopi.toml
bot_token = "123456789:ABCdefGHIjklMNOpqrsTUVwxyz"
chat_id = 123456789
[codex]
# optional: profile from ~/.codex/config.toml
profile = "takopi"
[claude]
model = "sonnet"
allowed_tools = ["Bash", "Read", "Write", "WebSearch"]
dangerously_skip_permissions = false
# uses subscription by default, override to use api billing
use_api_billing = false
usage
start takopi in the repo you want to work on:
cd ~/dev/your-repo
takopi codex
# or
takopi claude
send a message to the bot.
to continue a thread, reply to a bot message containing a resume line. you can also copy it to resume an interactive session in your terminal.
to stop a run, reply to the progress message with /cancel.
default: progress is silent, final answer is sent as a new message so you receive a notification, progress message is deleted.
if you prefer no notifications, --no-final-notify edits the progress message into the final answer.
notes
- private chat only: the bot only responds to the configured
chat_id - run only one takopi instance per bot token: multiple instances will race telegram's
getUpdatesoffsets and cause missed updates
development
see docs/specification.md and docs/developing.md.