Now with cloud agents & scheduled tasks

Your Telegram, supercharged with AI

Sovereign is a self-hosted agentic Telegram client. It reads your chats, searches messages, sends replies, and runs autonomous tasks — all through a clean chat interface you control.

Everything you need

A complete toolkit for managing your Telegram through AI — from reading messages to running autonomous background tasks.

Chat Interface

A familiar chat UI where you talk to an AI agent that has full access to your Telegram account. Ask it anything about your chats.

Granular Permissions

Three permission levels — read-only, read-write, and full autonomy. You decide how much power the agent has, and you can change it anytime.

Self-Hosted

Your data never leaves your infrastructure. Run it on your own server with Docker Compose. No third-party access to your messages.

Cloud Agents

Schedule long-running tasks and CRON jobs that execute autonomously in the cloud. Summarize daily chats, monitor channels, auto-reply — hands-free.

Agentic Loop

Powered by GPT-4o with a tool-calling loop. The agent reasons, picks the right tool, executes it, and iterates until your request is fulfilled.

Multi-Conversation

Multiple chat threads with full history persistence. Pick up where you left off, or start a new conversation for a different task.

13+ Telegram tools

The agent has a growing set of tools that map to Telegram's API. Each tool is gated by the permission level you choose.

list_chatsRead

List all dialogs with unread counts

search_messagesRead

Global or per-chat message search

list_foldersRead

List chat folders and filters

list_contactsRead

Browse your contact list

send_messageWrite

Send messages on your behalf

forward_messageWrite

Forward messages between chats

pin_messageWrite

Pin or unpin messages in chats

mark_as_readWrite

Mark conversations as read

+ edit_message, delete_message, create_group, get_chat_info, get_user_info, read_messages, and more

Simple, powerful architecture

Three containers. One command. Full control.

docker-compose.yml
services:
  postgres:       # PostgreSQL 17
  backend:        # FastAPI + Telethon + GPT-4o
  frontend:       # Next.js chat UI

Frontend

Next.js 16, React 19, Tailwind, shadcn/ui

Backend

FastAPI, Telethon, OpenAI, SQLAlchemy, WebSockets

Database

PostgreSQL 17 with Alembic migrations

Take control of your Telegram

Self-host Sovereign in minutes. Open source, extensible, and yours.