Built something the r/selfhosted crowd might appreciate: Telechat β a self-hosted Claude AI bot that connects to Telegram, WhatsApp, Slack, and web chat from a single process.
#
Why self-hosted matters here
Anthropic launched Claude Code Channels recently β Claude on Telegram/Discord, managed by Anthropic. It works great, but every message goes through their cloud. Telechat takes the opposite approach:
- Runs on your machine (laptop, VPS, RPi, NAS β anything that runs Node.js or Python)
- Messages flow: phone β your server β Anthropic API β back to phone
- No relay server, no telemetry, no analytics
- SQLite for conversation history, stored locally
- The only external call is to Anthropic's chat-completions API for inference
Your messages, your hardware, your data.
#
Install
telechat init
walks you through an interactive setup β API key, bot tokens for whichever platforms you want, model preferences, budget limits.
#
What it does
Multi-platform β Telegram, WhatsApp, Slack, Web Chat. All running simultaneously from one process. #
Smart model routing β Routes queries to the cheapest Claude model that handles them. Saves ~60% on API costs vs always using Sonnet. #
Budget caps β Per-user daily and monthly limits. Set $5/day and forget about it. #
Persistent memory β SQLite-backed. Context carries across conversations. #
Desktop Bridge β If you run Claude Code on your desktop and it needs approval for a destructive action, you get a push notification on your phone. Approve/deny remotely. #
Media support β Send images for analysis, generate images if you have DALL-E configured.
#
Resource usage
Light. Single process, ~50MB RSS idle, spikes briefly during inference calls. SQLite means no database server. The bottleneck is always the Anthropic API latency, not local compute.
#
Self-hosting tips
- Run behind a reverse proxy (Caddy/nginx) for HTTPS if using webhooks
- Telegram supports long-polling (no public IP needed) β great for home setups
- WhatsApp requires the WhatsApp Business API (webhook-based, needs HTTPS)
- Set up systemd/Docker restart policies for reliability
Would love feedback from the self-hosting community. What would make this more useful for your setup?