sleep3r / mtproto.zig
git clone https://github.com/sleep3r/mtproto.zig.git
v1.15.4 · 21d ago
🔥 on GitHub Trending today
Keep the people you love connected — a tiny self-hosted Telegram proxy that hides in plain HTTPS
+1
stars, 24h · #7,712
+~7
stars, 7 days · #8,364
+~30
stars, 30 days · #14,324
2.1k
★ total · +0% this week
75
forks · 6 open issues
Star history (as recorded here)
LanguageZig
LicenseMIT
Created2026-03-29 (6mo ago)
Last push21d ago
Watchers3
OwnerUser
Seen on GitHub Trending
- 2026-10-21 — #8 daily in zig · +7 ★
- 2026-10-20 — #8 daily in zig · +6 ★
GitHub topics
amnezia-vpnanti-censorshipdpidpi-bypassmtprotomtproto-proxymtprotoproxymtproxynfqwsprivacyproxytelegramtelegramzaprettlstunnelvlesswireguardzapretzig
Links
README excerpt
# mtproto.zig **Keep the people you love connected.** A tiny Telegram proxy you run on your own server. It hides inside ordinary HTTPS, so censorship can't find it — and your family can't lose it. One command to set up, one link to share. `177 KB · under 1 MB RAM · 0 dependencies` — yes, it's that lean *(details below ↓)* Technically: a tiny, dependency-free MTProto proxy in Zig that disguises Telegram traffic as standard TLS 1.3 HTTPS. | **🇬🇧 English** | 🇷🇺 Русский | 🇨🇳 中文 | 🇮🇷 فارسی | 🇻🇳 Tiếng Việt | | :-: | :-: | :-: | :-: | :-: | --- Why this one? · Install · Update · Commands · Routing · Config · Dashboard · Build · Docker · Trust · Compatibility · FAQ --- ## Who it's for - **You live somewhere Telegram is throttled or blocked** and you just want it back. - **You're the one your family asks for help** — and you want to protect your parents and friends with a link they tap once and never think about again. It runs on **your own server** — your messages never pass through ours, and there's nothing to sign up for. Open source under MIT; the proxy deliberately never logs secrets or who connects. ## Why not just a VPN? A VPN announces itself — censors recognize the protocol and block it, and a whole-device VPN is slow and drains the battery. This looks like a plain HTTPS website, carries only Telegram, and the people you share it with **install nothing**: they tap one link and Telegram does the rest. Small enough for the cheapest VPS you can rent, it starts instantly, and there's nothing else to set up. ## Compared to other MTProto proxies Most MTProto proxies are large, dependency-heavy, and use lots of memory. This one is different: | Proxy | Language | Binary | Baseline RSS | Startup | Dependencies | |---|---|---:|---:|---|---| | **mtproto.zig** | Zig | **177 KB** | **0.75 MB** | ** --user alice --yes # Disable all DPI modules (bare proxy only) sudo mtbuddy install --port 443 --domain rutube.ru --no-dpi --yes # Install using an existing config file (auto-maps port and domain) sudo mtbuddy install --config /path/to/config.toml --yes # Explicitly allow unsigned mode (not recommended) sudo mtbuddy install --insecure --port 443 --domain rutube.ru --yes [code] bash sudo mtbuddy --interactive [code] bash # Update to latest release (verifies minisign + checksum, checks CPU compat, auto-rollback on failure) sudo mtbuddy update # Pin to a specific version sudo mtbuddy update --version v0.11.1 # Explicitly allow unsigned mode (not recommended) sudo mtbuddy update --insecure [code] bash # Show proxy and module status sudo mtbuddy status # Validate and inspect config sudo mtbuddy config validate sudo mtbuddy config doctor sudo mtbuddy config doctor --network sudo mtbuddy config print-effective # Print Telegram proxy links from config.toml (FakeTLS ee by default; +dd when fake_tls_only=false; sensitive output) sudo mtbuddy links sudo mtbuddy links --server proxy.example.com --config /opt/mtproto-proxy/config.toml # Generate a fresh 32-hex user secre