Analysis updated 2026-08-08 · repo last pushed 2025-05-22
Build a Telegram bot that automatically creates a proxy account when a user subscribes and sends them a QR code to connect.
Set and update traffic data caps for users when they renew their VPN subscription.
List existing connection setups on a 3x-ui server and find users by email to manage their accounts programmatically.
| izzzzzi/py3xui | 0xallam/posthog | 0xustaz/streamgate | |
|---|---|---|---|
| Stars | 1 | 1 | 1 |
| Language | Python | Python | Python |
| Last pushed | 2025-05-22 | 2026-03-26 | — |
| Maintenance | Stale | Maintained | — |
| Setup difficulty | moderate | moderate | hard |
| Complexity | 2/5 | 3/5 | 4/5 |
| Audience | developer | pm founder | developer |
Figures from each repo's GitHub metadata at analysis time.
Requires a running 3x-ui server (version 2.3.7 or newer) with login credentials accessible from your Python environment.
py3xui is a Python toolkit that lets you programmatically control a 3x-ui server. 3x-ui is a popular panel for managing proxy connections, the kind of thing you might use to run a personal VPN or proxy service. Instead of clicking around a web interface to add users, set traffic limits, or configure connection rules, this library lets your Python code do it automatically. You could use it to build a bot that provisions new proxy accounts for users, manage traffic quotas, or generate connection strings and QR codes that users scan to connect. The library gives you two ways to talk to a 3x-ui server: a standard synchronous mode and an asynchronous mode. Both expose the same capabilities, so you pick whichever fits your project. You create a connection object with your server address and credentials, call a login step, and then you can start doing things like listing existing connection setups (called "inbounds"), adding new ones, finding users by email, updating their traffic limits, or creating new client accounts. The data comes back as structured Python objects rather than raw JSON, which makes it easier to work with. Someone running a proxy or VPN service would find this useful. For example, if you run a Telegram bot where users pay for VPN access, you could use this library to automatically create a new client when someone subscribes, set their data cap to 100 GB, generate a QR code they can scan to connect, and update their limits when they renew. Without a library like this, you'd be writing raw HTTP requests and parsing JSON responses yourself. One practical note: the 3x-ui app itself is still under active development, and the library author isn't affiliated with that project, so compatibility isn't guaranteed with every version. The SDK requires 3x-ui version 2.3.7 or newer. The README doesn't go into detail about what happens when newer versions of 3x-ui introduce breaking changes, so if you're building something production-critical, that's worth keeping in mind.
A Python library that lets your code control a 3x-ui proxy/VPN panel, automating tasks like adding users, setting traffic limits, and generating QR codes instead of using the web interface.
Mainly Python. The stack also includes Python, asyncio, 3x-ui.
Stale — no commits in 1-2 years (last push 2025-05-22).
The explanation does not mention a license, so the terms of use are unknown.
Setup difficulty is rated moderate, with roughly 30min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Verify against the repo before relying on details.