Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
X

Xray-core

> 编程语言
Open source

Xray, Penetrates Everything. Also the best v2ray-core. Where the magic happens. An open platform for various uses.

40.8K stars0 likes4 views
WebsiteGitHub

About

Xray, Penetrates Everything. Also the best v2ray-core. Where the magic happens. An open platform for various uses.

Project X

Project X originates from XTLS protocol, providing a set of network tools such as Xray-core and REALITY.

README is open, so feel free to submit your project here.

Sponsors

Sponsor Xray-core

Donation & NFTs

Collect a Project X NFT to support the development of Project X!

  • TRX(Tron)/USDT/USDC: TNrDh5VSfwd4RPrwsohr6poyNTfFefNYan
  • TON: UQApeV-u2gm43aC1uP76xAC1m6vCylstaN1gpfBmre_5IyTH
  • BTC: 1JpqcziZZuqv3QQJhZGNGBVdCBrGgkL6cT
  • XMR: 4ABHQZ3yJZkBnLoqiKvb3f8eqUnX4iMPb6wdant5ZLGQELctcerceSGEfJnoCk6nnyRZm73wrwSgvZ2WmjYLng6R7sR67nq
  • SOL/USDT/USDC: 3x5NuXHzB5APG6vRinPZcsUv5ukWUY1tBGRSJiEJWtZa
  • ETH/USDT/USDC: 0xDc3Fe44F0f25D13CACb1C4896CD0D321df3146Ee
  • Project X NFT: https://opensea.io/item/ethereum/0x5ee362866001613093361eb8569d59c4141b76d1/1
  • VLESS NFT: https://opensea.io/collection/vless
  • REALITY NFT: https://opensea.io/item/ethereum/0x5ee362866001613093361eb8569d59c4141b76d1/2
  • Related links: VLESS Post-Quantum Encryption, XHTTP: Beyond REALITY, Announcement of NFTs by Project X

License

Mozilla Public License Version 2.0

Documentation

Project X Official Website

Telegram

Project X

Project X Channel

Project VLESS (Русский)

Project XHTTP (Persian)

Installation

  • Linux Script
    • XTLS/Xray-install (Official)
    • tempest (supports systemd and OpenRC; Linux-only)
  • Docker
    • ghcr.io/xtls/xray-core (Official)
    • teddysun/xray
    • wulabing/xray_docker
  • Web Panel
    • Remnawave
    • 3X-UI
    • PasarGuard
    • Xray-UI
    • X-Panel
    • Marzban
    • Hiddify
    • TX-UI
    • CELERITY
  • One Click
    • Xray-REALITY, xray-reality, reality-ezpz
    • Xray_bash_onekey, XTool, VPainLess
    • v2ray-agent, Xray_onekey, ProxySU
  • Magisk
    • Magic_V2Ray
    • Xray_For_Magisk
  • Homebrew
    • brew install xray

Usage

  • Example
    • VLESS-XTLS-uTLS-REALITY
    • VLESS-TCP-XTLS-Vision
    • All-in-One-fallbacks-Nginx
  • Xray-examples
    • XTLS/Xray-examples
    • chika0801/Xray-examples
    • lxhao61/integrated-examples
  • Tutorial
    • XTLS Vision
    • REALITY (English)
    • XTLS-Iran-Reality (English)
    • Xray REALITY with 'steal oneself' (English)
    • Xray with WireGuard inbound (English)

GUI Clients

  • OpenWrt
    • PassWall, PassWall 2
    • ShadowSocksR Plus+
    • luci-app-xray (openwrt-xray)
  • Asuswrt-Merlin
    • XRAYUI
    • fancyss
  • Windows
    • v2rayN
    • Furious
    • Invisible Man - Xray
    • AnyPortal
    • GenyConnect
    • OneXray
    • XrayUI-dev
  • Android
    • v2rayNG
    • X-flutter
    • SaeedDev94/Xray
    • SimpleXray
    • XrayFA
    • AnyPortal
    • OneXray
    • AsteriskNG
  • iOS & macOS arm64 & tvOS
    • Happ | Happ RU | Happ tvOS
    • Streisand
    • OneXray
    • INCY
  • macOS arm64 & x64
    • Happ | Happ RU
    • V2rayU
    • V2RayXS
    • Furious
    • OneXray
    • GoXRay
    • AnyPortal
    • v2rayN
    • GenyConnect
    • INCY
  • Linux
    • v2rayA
    • Furious
    • GorzRay
    • GoXRay
    • AnyPortal
    • v2rayN
    • GenyConnect
    • OneXray
  • HarmonyOS
    • Hey

Others that support VLESS, XTLS, REALITY, XUDP, PLUX...

  • iOS & macOS arm64 & tvOS
    • Anywhere
    • Shadowrocket
    • Loon
    • Egern
    • Quantumult X
  • Xray Tools
    • xray-knife
    • xray-checker
  • Xray Wrapper
    • XTLS/libXray
    • xtls-sdk
    • xtlsapi
    • AndroidLibXrayLite
    • flutter_vless
    • Xray-core-python
    • xray-api
  • XrayR
    • XrayR-release
    • XrayR-V2Board
  • Cores
    • Amnezia VPN
    • mihomo
    • sing-box

Contributing

Code of Conduct

Credits

  • Xray-core v1.0.0 was forked from v2fly-core 9a03cc5, and we have made & accumulated a huge number of enhancements over time, check the release notes for each version.
  • For third-party projects used in Xray-core, check your local or the latest go.mod.

Bundled Third-Party Components Redistribution

Certain optional features dynamically load third-party components. These optional components are separate works distributed under their own licenses, and are bundled into the ZIP package for ease of use. Users may replace these components under the licenses from these components.

These components include:

Wintun

This distribution contains unmodified official precompiled and pre-signed Wintun binaries.

  • Project: Wintun
  • Copyright: Copyright (C) 2018-2021 WireGuard LLC. All Rights Reserved.
  • Redistribution License: Prebuilt Binaries License (PBL) bundled with official precompiled and pre-signed binaries from wintun.net
  • Component(s): wintun.dll
  • Source: https://www.wintun.net/
  • Included in:
    • Windows x86 (windows-32, win7-32)
    • Windows x86-64 (windows-64, win7-64)
    • Windows AArch64 (windows-arm64)
  • Notes: Wintun is an optional runtime-loaded component only used for TUN inbound functionality on supported Windows platforms.

One-line Compilation

Windows (PowerShell)

powershell
$env:CGO_ENABLED=0
go build -o xray.exe -trimpath -buildvcs=false -ldflags="-s -w -buildid=" -v ./main

Linux / macOS

bash
CGO_ENABLED=0 go build -o xray -trimpath -buildvcs=false -ldflags="-s -w -buildid=" -v ./main

Reproducible Releases

Make sure that you are using the same Go version, and remember to set the git commit id (7 bytes):

bash
CGO_ENABLED=0 go build -o xray -trimpath -buildvcs=false -gcflags="all=-l=4" -ldflags="-X github.com/xtls/xray-core/core.build=REPLACE -s -w -buildid=" -v ./main

For Android:

bash
GOOS=android GOARCH=arm64 CGO_ENABLED=1 CC=/path/to/aarch64-linux-android24-clang go build -o xray -trimpath -buildvcs=false -gcflags="all=-l=4" -ldflags="-X github.com/xtls/xray-core/core.build=REPLACE -s -w -buildid= -checklinkname=0" -v ./main
GOOS=android GOARCH=amd64 CGO_ENABLED=1 CC=/path/to/x86_64-linux-android24-clang go build -o xray -trimpath -buildvcs=false -gcflags="all=-l=4" -ldflags="-X github.com/xtls/xray-core/core.build=REPLACE -s -w -buildid= -checklinkname=0" -v ./main

If you are compiling a 32-bit MIPS/MIPSLE target, use this command instead:

bash
CGO_ENABLED=0 go build -o xray -trimpath -buildvcs=false -gcflags="-l=4" -ldflags="-X github.com/xtls/xray-core/core.build=REPLACE -s -w -buildid=" -v ./main

Stargazers over time

Issues· 61 open

View all issuesOpen on GitHub
  • #6872

    [Windows] TUN inbound: outbound connections stall with Mobile Hotspot enabled despite autoOutboundsInterface

    Updated Sep 30, 2026
  • #6870

    Mux client: data race on Session.input/output between ClientWorker.Dispatch and SessionManager.Close

    Updated Sep 30, 2026
  • #6861

    REALITY aborts an authenticated session when dest returns HelloRetryRequest

    Updated Sep 29, 2026
  • #6797

    XHTTP: xmux.maxConnections is ineffective in Go 1.27 builds (v26.9.8+, main) — one TCP connection per session while TLS handshakes hang, leading to OOM

    Updated Sep 28, 2026
  • #6846

    XHTTP over HTTP/2: reducing per-stream memory

    Updated Sep 28, 2026
  • #4846

    [feature request] XHTTP Support packet down & retransmission

    enhancementUpdated Sep 26, 2026
  • #6794

    [Vision] direct copy 后外层 TLS 的 close_notify 泄入内层字节流, 内层报 bad record MAC

    Updated Sep 25, 2026
  • #6121

    關於vless-cracker-v1的檢測

    Updated Sep 23, 2026
  • #4878

    vless+xtls-rprx-vision+reality偶发ERR_SSL_PROTOCOL_ERROR

    Updated Sep 21, 2026
  • #6780

    Cannot use existing Wintun adapter by name (breaking change since latest official v26.3.27)

    Updated Sep 18, 2026

> Tags

Goanticensorshipdnsnetworkproxy

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 30, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言