Chat with your Pi AI agent CLI from Telegram instead of a terminal.
Drop a file into a watched directory to automatically feed a prompt into your active Pi session, for example from a cron job.
Switch between named Pi sessions using Telegram slash commands to keep separate task contexts.
| kkovacs/kklaw | 0xradioac7iv/tempfs | abboskhonov/hermium | |
|---|---|---|---|
| Stars | 0 | 0 | 0 |
| Language | TypeScript | TypeScript | TypeScript |
| Setup difficulty | easy | moderate | moderate |
| Complexity | 2/5 | 3/5 | 4/5 |
| Audience | developer | developer | developer |
Figures from each repo's GitHub metadata at analysis time.
Requires the Pi CLI and Bun installed, plus a Telegram bot token and user ID in a .env file.
kklaw is a lightweight, self-hosted Telegram bot that connects the Pi AI agent CLI to your phone. Pi is a command-line AI agent harness, kklaw acts as a personal gateway so you can chat with your Pi agent from Telegram, switch between sessions, run shell commands, and feed automated prompts to the agent, all without leaving your phone. The design philosophy is deliberately minimal: one user, one chat, one Pi instance. There is no multi-user support and no built-in scheduler. Instead, kklaw watches an inject directory on the filesystem. Any script, a cron job, a webhook, a monitoring alert, can drop a text file into that directory, and kklaw picks it up and fires its contents as a prompt into the active Pi session. The response streams back to Telegram. This makes it a general-purpose automation hook: you can schedule morning briefings, forward email notifications, or chain multiple kklaw instances together. You can switch between named Pi sessions from within Telegram using slash commands like /new, /resume, and /delete, keeping separate contexts for different tasks. Files sent as photos are passed directly to the Pi agent, files sent as documents are saved to a configurable upload directory instead. The runtime is TypeScript built with Bun. To use it, you install Pi and Bun, clone the repository, set a Telegram bot token and your Telegram user ID in a .env file, and run the bot. It can also be compiled into a standalone binary. The full README is longer than what was provided.
A self-hosted Telegram bot that lets you chat with your Pi AI agent from your phone and feed it automated prompts from scripts.
Mainly TypeScript. The stack also includes TypeScript, Bun, Telegram Bot API.
Setup difficulty is rated easy, with roughly 30min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Verify against the repo before relying on details.