Dear Xray
About Us
This feature request is officially proposed by Robo Inc. (California). We are actively developing and scaling automated proxy management systems, and we look forward to contributing back to the Xray community.
Description
Currently, Xray's RPC API (HandlerService.AlterInbound) only supports dynamically managing users for protocols like VMess, VLESS, and Trojan. It does NOT support adding or modifying Account (username and password) fields dynamically inside a Socks inbound configuration.
Furthermore, we still cannot dynamically add or update routing rules in memory without restarting the Xray core.
For platforms managing Socks proxies, we desperately need to provision individual Socks authentication accounts (usernames/passwords) and pair them with dynamic routing rules on the fly, without interrupting other active connections.
Suggestion
I would like to propose adding the following features to the gRPC API:
- Socks Inbound Account Management: Extend
AlterInbound to accept socks.Account so we can dynamically add, update, or remove usernames and passwords inside an existing Socks inbound.
- Dynamic Routing Rules: Allow appending or modifying routing rules via API without a full config reload or service restart.
Why this is critical (Market Demand & Business Value)
We believe this feature is extremely important and carries massive market demand for the following reasons:
- Enterprise Multi-Tenant / Dynamic Provisioning: In modern proxy management systems, residential proxies and commercial Socks5 nodes need to generate and destroy user credentials in real-time. Currently, being forced to reload or restart Xray just to add a single Socks user interrupts thousands of other active connections, making Xray unusable for large-scale production environments.
- Socks5 is the Industry Standard for Scraping & Automation: While VLESS/VMess are great for anti-censorship, Socks5 remains the absolute standard protocol for local software, web scrapers, SEO tools, and multi-accounting browsers (like AdsPower, Multilogin). The lack of dynamic Socks management severely limits Xray's adoption in the multi-billion dollar data aggregation and automation industry.
- Granular Traffic Control: Combining dynamic Socks accounts with dynamic routing rules allows platforms to instantly restrict compromised accounts or dynamically route specific user traffic through different outbounds (e.g., rotating IPs) on the fly, providing a level of agility that static configs simply cannot match.
This feature will bridge the gap between Xray and commercial-grade proxy gateways, attracting a massive new user base from enterprise and automation developers.
🇨🇳 中文
關於我們
本功能需求由 加州羅博公司 (Robo Inc.) 正式提出。我們目前正致力於研發與擴展自動化代理管理系統,並期待未來能為 Xray 社群做出貢獻。
問題描述
目前,Xray 的 RPC API (HandlerService.AlterInbound) 僅支援動態管理 VMess、VLESS 和 Trojan 等協定的用戶。它不支援在 Socks 入站配置中動態添加或修改 Account(使用者名稱和密碼)欄位。
此外,我們目前仍然無法在不重啟 Xray 核心或重新載入配置的情況下,在記憶體中動態添加或更新路由規則(Routing Rules)。
對於管理 Socks 代理的平台來說,我們非常需要即時開通獨立的 Socks 認證帳號,並為其綁定動態路由規則,且整個過程不能中斷其他正在連線的活躍用戶。
建議方案
希望能為 gRPC API 增加以下功能支援:
- Socks 入站帳號動態管理:擴充
AlterInbound 使其能接收 socks.Account 結構,以便我們在現有的 Socks 入站中動態增刪改使用者名稱與密碼。
- 動態路由規則:允許透過 API 追加或修改路由規則,無需完整的配置重載或服務重啟。
為什麼這很關鍵(市場需求與商業價值)
我們認為這個功能極其重要,且在市場上存在巨大需求,原因如下:
- 企業級多租戶與動態開通:在現代代理管理系統中,住宅代理和商用 Socks5 節點需要即時生成和銷毀用戶憑證。目前每新增一個 Socks 用戶就必須重載或重啟 Xray,這會中斷其他成千上萬名在線用戶的連線,導致 Xray 無法應用於大規模的正式生產環境。
- Socks5 是自動化與爬蟲行業的絕對標準:雖然 VLESS/VMess 在防封鎖方面表現優異,但 Socks5 依然是本地軟體、網絡爬蟲、SEO 工具和指紋瀏覽器(如 AdsPower、Multilogin)的通用標準。Socks5 缺乏動態管理,嚴重限制了 Xray 在數十億美元規模的數據採集與自動化行業中的應用。
- 細粒度的流量控制:將動態 Socks 帳號與動態路由規則結合,可以讓平台即時限制異常帳號,或動態地將特定用戶的流量導向不同的出口(例如輪換 IP),這種靈活性是靜態配置完全無法比擬的。
Dear Xray
About Us
This feature request is officially proposed by Robo Inc. (California). We are actively developing and scaling automated proxy management systems, and we look forward to contributing back to the Xray community.
Description
Currently, Xray's RPC API (
HandlerService.AlterInbound) only supports dynamically managing users for protocols like VMess, VLESS, and Trojan. It does NOT support adding or modifyingAccount(username and password) fields dynamically inside a Socks inbound configuration.Furthermore, we still cannot dynamically add or update routing rules in memory without restarting the Xray core.
For platforms managing Socks proxies, we desperately need to provision individual Socks authentication accounts (usernames/passwords) and pair them with dynamic routing rules on the fly, without interrupting other active connections.
Suggestion
I would like to propose adding the following features to the gRPC API:
AlterInboundto acceptsocks.Accountso we can dynamically add, update, or remove usernames and passwords inside an existing Socks inbound.Why this is critical (Market Demand & Business Value)
We believe this feature is extremely important and carries massive market demand for the following reasons:
This feature will bridge the gap between Xray and commercial-grade proxy gateways, attracting a massive new user base from enterprise and automation developers.
🇨🇳 中文
關於我們
本功能需求由 加州羅博公司 (Robo Inc.) 正式提出。我們目前正致力於研發與擴展自動化代理管理系統,並期待未來能為 Xray 社群做出貢獻。
問題描述
目前,Xray 的 RPC API (
HandlerService.AlterInbound) 僅支援動態管理 VMess、VLESS 和 Trojan 等協定的用戶。它不支援在 Socks 入站配置中動態添加或修改Account(使用者名稱和密碼)欄位。此外,我們目前仍然無法在不重啟 Xray 核心或重新載入配置的情況下,在記憶體中動態添加或更新路由規則(Routing Rules)。
對於管理 Socks 代理的平台來說,我們非常需要即時開通獨立的 Socks 認證帳號,並為其綁定動態路由規則,且整個過程不能中斷其他正在連線的活躍用戶。
建議方案
希望能為 gRPC API 增加以下功能支援:
AlterInbound使其能接收socks.Account結構,以便我們在現有的 Socks 入站中動態增刪改使用者名稱與密碼。為什麼這很關鍵(市場需求與商業價值)
我們認為這個功能極其重要,且在市場上存在巨大需求,原因如下: