mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 19:11:53 +07:00
[GH-ISSUE #6427] [Feature]: New open source client support - OneXRAY #4353
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#4353
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 @ilya-practicum on GitHub (Sep 6, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/6427
Is your feature request related to a problem?
Have found a new xray client - https://github.com/OneXray/OneXray
It is open source, multiplatform, supports routing profiles and subscription encryption. Looks promising. It has different routing profile and config importing. Hope you may check it and add subcription support for it in 3xui
Describe the solution you'd like
Alternatives you've considered
No response
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 (Sep 6, 2026):
Thanks for the pointer. The short answer: 3x-ui has no per-client code path in its subscription server at all — the output format is chosen by URL path, not by which app is asking — so if OneXray imports standard share links or an Xray JSON config, it already works today with the subscription URLs you have, and there is nothing to add. To turn this into something actionable we need to know what OneXray specifically cannot accept.
What the panel serves today
The format is picked by path (
docs/config/subscription: "The format is chosen by path, each with its own enable toggle"):subPathvless:///vmess:///trojan:///ss:///hy2://, base64 whensubEncryptis onsubJsonPath(subJsonEnable)subClashPath(subClashEnable)Only enabled VLESS, VMess, Trojan, Shadowsocks and Hysteria2 inbounds appear in a subscription.
The one client-aware knob is already user-configurable. If OneXray sends a distinctive
User-Agentand you want it to get the Clash or JSON body from the base subscription path, that is a settings change, not a code change —internal/sub/controller.go:465:Enable
subClashAutoDetect/subJsonAutoDetect(both default"false",internal/web/service/setting.go:88and:91) and setsubClashUserAgentRegex/subJsonUserAgentRegexto a pattern that matches OneXray. The built-in Clash default is(?i)(clash|mihomo)(internal/web/service/setting.go:37); a value you set replaces it.On "subscription encryption" — be aware that the panel's
subEncryptsetting is not encryption. It is plain base64,internal/sub/controller.go:439-443:There is no encrypted-subscription support in the tree (no
ageor equivalent — greppinginternal/andgo.modforfilippo.io/age/age-secret-keyreturns nothing). If that is the part of OneXray you want, it overlaps with the already-open #6364 (age-encrypted Clash output) and #6363 — related, not duplicates of this.What would make this actionable (the form's "Describe the solution you'd like", "Concrete use case" and "Which parts of the panel would this affect?" were left blank, so this is the gap):
User-AgentOneXray sends when fetching a subscription, if you can see it in the sub server log.Note for transparency: this environment has no outbound network access beyond this repository, so I could not read the OneXray repository myself — everything above is from the 3x-ui source. Also worth knowing for whoever picks this up: link and subscription generation is implemented three times independently (
internal/util/link/+internal/sub/in Go,frontend/src/lib/xray/, anddocs/lib/xray/), so a genuinely new output format is a change in all three, not one.Keeping this open and labelled
clarification neededso it comes back around once there is a concrete gap to point at.Verdict: Feature request
This reply was generated automatically; a maintainer may follow up.