Telebrain is a fork of Telegram Desktop with an integrated AI Copilot that brings powerful AI assistance directly into your Telegram experience. Chat with AI in the context of your conversation to get contextually-aware responses. The Completions API endpoint is fully configurable, allowing you to connect to most cloud LLM providers (OpenAI, Anthropic, DeepSeek) or run against a local model (via LM Studio or similar). This repository contains the complete source code and build instructions, based on the official Telegram messenger desktop client.
The source code is published under GPLv3 with OpenSSL exception, the license is available here.
- OpenAI - default:
https://api.openai.com/v1, modelsgpt-5(default),gpt-4.1,gpt-4o- requires API key - Anthropic:
https://api.anthropic.com/v1, modelsclaude-sonnet-4-20250514,claude-opus-4-1-20250805- requires API key - DeepSeek:
https://api.deepseek.com, modelsdeepseek-chat,deepseek-reasoner- requires API key - LM Studio:
http://localhost:1234/v1, modelgoogle/gemma-3-12b,openai/gpt-oss-20b(prints reasoning tokens without proper formatting) - doesn't require API key
- Qt 6 (LGPL) and Qt 5.15 (LGPL) slightly patched
- OpenSSL 3.2.1 (Apache License 2.0)
- WebRTC (New BSD License)
- zlib (zlib License)
- LZMA SDK 9.20 (public domain)
- liblzma (public domain)
- Google Breakpad (License)
- Google Crashpad (Apache License 2.0)
- GYP (BSD License)
- Ninja (Apache License 2.0)
- OpenAL Soft (LGPL)
- Opus codec (BSD License)
- FFmpeg (LGPL)
- Guideline Support Library (MIT License)
- Range-v3 (Boost License)
- Open Sans font (Apache License 2.0)
- Vazirmatn font (SIL Open Font License 1.1)
- Emoji alpha codes (MIT License)
- xxHash (BSD License)
- QR Code generator (MIT License)
- CMake (New BSD License)
- Hunspell (LGPL)
- Ada (Apache License 2.0)
- Windows (32-bit) (64-bit)
- macOS
- GNU/Linux using Docker

