tg-ws-proxy-telegram-socks5 — Claude Code skill: setup and usage
Guides the setup of a local SOCKS5 proxy routing Telegram Desktop traffic to data centers over WebSockets. Useful for bypassing connection blocks without remote servers.
npx skills add reason-machines/trending-skills --skill tg-ws-proxy-telegram-socks5 -a claude-codeWhat tg-ws-proxy-telegram-socks5 does
This skill instructs coding agents how to deploy and configure tg-ws-proxy. The proxy defaults to port 1080. It detects Telegram DC IDs inside MTProto packets and establishes TLS WebSocket tunnels. Direct TCP serves as a fallback whenever a WebSocket connection returns an HTTP 302 status.
The assistant learns commands for building the project with pip install -e . or running background systemd services on Linux. Guidance covers CLI flags like --dc-ip for datacenter mappings and system tray executables for desktop environments.
If port 1080 is already occupied, the proxy fails until pointed to another port via --port. The skill also provides integration snippets for Python scripts using telethon or requests.
What it helps with
- Deploy a local SOCKS5 proxy to route Telegram Desktop traffic
- Tunnel connections to Telegram data centers over WebSockets
- Build and run tg-ws-proxy from source
- Route Telethon and Requests scripts through the local proxy
- Change proxy listener ports during local port conflicts
Example prompts for the agent
- Help me build and start tg-ws-proxy from source for Telegram Desktop
- Telegram cannot connect, configure a local WebSocket tunnel proxy on port 1080
- Show me how to route a Telethon script through the local tg-ws-proxy instance
How to install tg-ws-proxy-telegram-socks5
1Skills CLI (Vercel)
npx skills add reason-machines/trending-skills --skill tg-ws-proxy-telegram-socks5 -a claude-code2Manually: put the files in place
~/.claude/skills/tg-ws-proxy-telegram-socks5/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/tg-ws-proxy-telegram-socks5/
1Skills CLI (Vercel)
npx skills add reason-machines/trending-skills --skill tg-ws-proxy-telegram-socks5 -a codex2Manually: put the files in place
.agents/skills/tg-ws-proxy-telegram-socks5/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add reason-machines/trending-skills --skill tg-ws-proxy-telegram-socks5 -a cursor2Manually: put the files in place
.cursor/skills/tg-ws-proxy-telegram-socks5/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install reason-machines/trending-skills tg-ws-proxy-telegram-socks52Manually: put the files in place
.github/skills/tg-ws-proxy-telegram-socks5/SKILL.md1Skills CLI (Vercel)
npx skills add reason-machines/trending-skills --skill tg-ws-proxy-telegram-socks5 -a gemini-cli2Platform CLI
gemini skills install https://github.com/reason-machines/trending-skills --path skills/tg-ws-proxy-telegram-socks5Manually: put the files in place
.devin/skills/tg-ws-proxy-telegram-socks5/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add reason-machines/trending-skills --skill tg-ws-proxy-telegram-socks5 -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about tg-ws-proxy-telegram-socks5
How do I install tg-ws-proxy-telegram-socks5 in Claude Code?
Run npx skills add reason-machines/trending-skills --skill tg-ws-proxy-telegram-socks5 -a claude-code in your terminal. This command registers the skill in Claude Code.
What does tg-ws-proxy-telegram-socks5 do?
It guides the assistant through deploying a local SOCKS5 proxy that encapsulates Telegram traffic inside WebSocket connections. This reconnects desktop clients and scripts to Telegram data centers without relying on remote third-party servers.
What should I do if port 1080 is already in use?
Start the proxy with an alternate port flag like tg-ws-proxy --port 1081. Afterwards, enter the new port number in the Telegram Desktop proxy settings.