Open source · developer tool
OpenCode Telegram Bot
Controls local OpenCode sessions from a phone via Telegram — messages, model choice, reasoning level and language included.
Role
Fully self-developed
Status
Running and packaged
Technology
Python · Telegram Bot API · OpenCode REST · SQLite
The starting point
OpenCode runs locally but is not reachable on the go. Starting a task or checking a running session needs a secure path from phone to machine.
What was built
- Every Telegram conversation maps to a session; messages are forwarded to OpenCode and answers returned.
- Topics, model choice, reasoning level and language are controllable.
- Runs as a service on macOS or Linux; packaging and installer included.
My role
The bot is fully self-developed and packaged as an open-source project.
Technology in detail
- Python, python-telegram-bot, OpenCode REST API and SSE.
- SQLite via aiosqlite for persistence.
- systemd and launchd for operations; setuptools, wheel and deploy ZIP for distribution.
Status
Running and packaged.