mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #5118] [Feature]: #3597
Labels
No labels
backlog
bug
clarification needed
documentation
duplicate
enhancement
github_actions
good first issue
invalid
javascript
New Feature
PR welcomed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MHSanaei/3x-ui#3597
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @DoctorCat92 on GitHub (Jun 9, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5118
Is your feature request related to a problem?
no
Describe the solution you'd like
Is it possible to add the ability to receive config in JSON format? This format would be convenient for Linux, since the xray client service is installed from a package and only has a config.json file.
To import a config from x-ui to a Linux desktop, you have to first transfer it to your smartphone, and then import it as JSON from there. So, if the v2rayTun app has import functionality, maybe there's a library that can be integrated into x-ui and directly retrieve JSON from it?
Alternatives you've considered
I didn't consider alternatives because they are graphical, and Linux is often conveniently managed via SSH, so installing a graphical shell on machines to get a proxy isn't rational.
Concrete use case
No response
Mockups, screenshots, or examples
No response
Which parts of the panel would this affect?
No response
Are you willing to help?
Before submitting
@github-actions[bot] commented on GitHub (Jun 9, 2026):
Good news — the feature you're describing already exists in 3x-ui as the JSON Subscription endpoint. It generates a complete, ready-to-use
config.jsonfor xray-core clients, including inbounds (SOCKS5+HTTP on ports 10808/10809), outbounds, DNS, and routing rules. It's exactly what you need to run `xray run -c config.json` on a headless Linux machine.How to enable it
subJsonEnable) to on./json/(configurable in the same tab).How to get your config
Once enabled, each client's JSON subscription URL is shown in the Client Info dialog (the info/QR icon on the inbound). The URL looks like:
On your Linux desktop:
The generated config sets up a local
mixed(SOCKS5+HTTP) proxy on port 10808 and an HTTP-only proxy on port 10809, so your applications can use either.Supported protocols
The JSON generator covers VMess, VLESS, Trojan, Shadowsocks, and Hysteria. WireGuard, SOCKS, and Dokodemo-door inbounds don't produce JSON subscription output.
If you have multiple inbounds linked to the same
subId, the endpoint returns an array of configs rather than a single object, so you can pick the one you want or loop over them in a script.