Import tg://socks proxies, browse through them directly, and automatically fail over when a proxy becomes unavailable.
TeleFox is an open-source Electron/Chromium browser designed specifically around Telegram SOCKS5 proxies.
Instead of changing your system proxy or relying on browser extensions, TeleFox provides its own proxy-routing layer so browser traffic can be sent through your selected Telegram SOCKS5 proxy.
| Capability | |
|---|---|
| π | Import Telegram tg://socks links |
| π | Support SOCKS5 username/password authentication |
| π | Route Chromium browser traffic through the selected proxy |
| β»οΈ | Detect failures and perform proxy failover |
| ποΈ | Manage multiple proxy configurations |
| π | Protect stored secrets with Electron safeStorage |
| π§© | Keep proxy credentials out of the renderer |
| π‘ | Store and identify tg://proxy MTProto links |
Paste a Telegram SOCKS5 link and use it as a browser proxy without manually configuring Windows or Chromium.
When an upstream proxy becomes unavailable, TeleFox can detect the failure and use its proxy-selection/failover logic to keep browsing moving.
Proxy routing happens through Chromium's browser session rather than through a conventional browser extension.
Sensitive proxy credentials are encrypted using Electron's safeStorage and are not exposed to the renderer process.
Chromium does not provide the SOCKS5 username/password authentication workflow required by TeleFox.
TeleFox solves this with a local loopback SOCKS5 bridge:
ββββββββββββββββββββββββ
β Chromium β
β β
β session.setProxy() β
ββββββββββββ¬ββββββββββββ
β
βΌ
ββββββββββββββββββββββββ
β 127.0.0.1:<random> β
β Local SOCKS5 β
β Bridge β
ββββββββββββ¬ββββββββββββ
β
β authenticated
βΌ
ββββββββββββββββββββββββ
β Telegram SOCKS5 β
β Proxy β
ββββββββββββ¬ββββββββββββ
β
βΌ
Internet
The local bridge:
- listens on
127.0.0.1 - uses a randomly selected local port
- requires no local authentication
- authenticates against the configured upstream SOCKS5 proxy
- forwards browser traffic to the upstream server
Because Chromium connections pass through this bridge, connection failures can also be observed as part of TeleFox's failover mechanism.
tg://socks?server=example.com&port=1080&user=username&pass=password
These proxies can be imported, connected, and used for Chromium browser traffic.
tg://proxy?server=example.com&port=443&secret=...
MTProto links are stored and labelled:
Telegram-only / MTProto
They are intentionally prevented from being used as browser proxies because MTProto is not a SOCKS5 browser-proxy protocol.
TeleFox is designed so that sensitive proxy credentials stay outside the renderer process.
Passwords and other secrets are protected using:
Electron safeStorage
The browser communicates with the local SOCKS5 bridge, while the bridge handles authentication with the upstream proxy.
This keeps the browser-facing layer separate from upstream proxy credentials.
- Windows
- Node.js
- npm
git clone https://github.com/ThaRealSolomon/TeleFox.git
cd TeleFoxnpm installLaunch TeleFox with DevTools available through F12:
npm run devCompile the main and renderer processes:
npm run buildCreate the Windows installer and portable executable:
npm run packageRelease artifacts are generated in:
release/
Run parser, selection, and failover tests:
npm test| Technology | Role |
|---|---|
| Electron | Desktop application runtime |
| Chromium | Browser engine |
| TypeScript | Application code |
| SOCKS5 Bridge | Authenticated upstream proxy routing |
| safeStorage | Local secret protection |
| session.setProxy | Chromium proxy configuration |
TeleFox
β
βββ Electron Main Process
β βββ Proxy management
β βββ SOCKS5 bridge
β βββ Authentication
β βββ Secure storage
β
βββ Chromium Renderer
β βββ Browser UI / pages
β
βββ Proxy Layer
βββ Telegram SOCKS5
βββ Authentication
βββ Failure detection
βββ Failover
Bug reports, technical feedback, improvements, and pull requests are welcome.
For bugs and feature requests:
https://github.com/ThaRealSolomon/TeleFox/issues
TeleFox is free and open source.
If you find it useful, consider giving the repository a β on GitHub. It helps more developers discover the project.
