Model or dataset
yding-git/personal-edge-proxy avatar
yding-git/personal-edge-proxy

personal-edge-proxy: separating the Hysteria2 entrance from the WARP and SOCKS5 exits

A practical multi-inbound, multi-outbound personal proxy setup with Xray, Hysteria2, REALITY Vision, WARP and optional static SOCKS5 routing.

1,226 stars134 forksUnknownMIT

At a glance

What is it?
yding-git/personal-edge-proxy is a documentation-and-examples repository for a single-VPS Xray setup: Hysteria2 as the daily entrance, Cloudflare WARP as the exit for AI traffic, and an optional fixed SOCKS5 exit for Claude and Anthropic.
Who is it for?
Take this if you already run or plan to run one small Ubuntu VPS and want a worked example of splitting entrance from exit with Xray. Do not expect an installer, a release, or any promise that WARP or a fixed SOCKS5 will satisfy a given service.
Can I use it commercially?
Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
Is it still maintained?
Yes. The repository last received commits 73 days ago.
What is it written in?
GitHub does not report a main language for this repository.

Answers come from the project's GitHub data, last synced on November 22, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • yding-git/personal-edge-proxy1,226 ★ · +250
Star history
Repository2026-09-212026-11-22
yding-git/personal-edge-proxy9761.2k

250 Stars in the last 62 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

Hysteria2 decides how you get in, WARP and SOCKS5 decide where you leave

The one idea that organizes the whole repository is a split between the entrance and the exit of a VPS. Hysteria2 over UDP is the daily entrance. VLESS with REALITY over TCP and VLESS over WebSocket through a Cloudflare Tunnel are backup entrances. None of them change the address that a destination site sees. That is the job of the exit side: Direct, Cloudflare WARP, or an optional fixed SOCKS5 upstream.

The author's own routing sketch makes the split concrete. Ordinary traffic leaves through VPS Direct. OpenAI, ChatGPT and Codex traffic goes to WARP. Gemini and Google AI traffic goes to WARP. Claude and Anthropic traffic can go to an optional fixed SOCKS5. The client only needs to send China mainland and private network traffic DIRECT and everything else to the VPS. All the finer routing lives in the Xray server config, so no client device has to hold WARP or upstream SOCKS5 credentials.

The consequence for a reader is practical. If you add REALITY because UDP is flaky on your home network, you have fixed a connection problem and nothing else. The repository says it plainly: if the final outbound is still VPS Direct, the exit identity has not changed.

Tier B adds a second door but leaves the exit exactly where it was

The repository grades setups from A to E, and the tiers are meant as a way to ask what each layer solves, not as an install order. A is Hysteria2 to VPS Direct, the minimal working form. B adds a REALITY backup entrance, which lowers the risk when UDP is unavailable, but the exit is still VPS Direct, so exit-side problems are the same as in A. C routes chosen AI domains through WARP and does not make WARP take over the whole machine. D is C plus Claude and Anthropic through a fixed SOCKS5, and it is the tier the author calls the most useful. E is D plus REALITY, Cloudflare Tunnel or similar backup entrances, suggested when you keep changing between Wi-Fi, campus networks and company networks.

The author's own advice is blunt about the low end: if you only want something that works, one Hysteria2 inbound is enough, and if it is stable on your network and you do not mind AI services seeing the VPS datacenter address, you can stop there.

What this does not give you is a promise about the services. The text says the layout is not a guarantee of getting around any terms of service, and it cannot guarantee that an account will avoid risk controls. You are expected to confirm that the target service supports your region and to follow its terms.

WARP runs as a local SOCKS5 on 127.0.0.1:40000 and never owns the default route

The WARP layer is built so that only traffic selected by Xray touches it. The Linux default route stays on the VPS native network. Xray picks a warp-official outbound, which talks SOCKS5 to 127.0.0.1:40000, where warp-svc runs in Local Proxy mode over MASQUE and connects to Cloudflare WARP.

The repository lists five reasons for this shape. AI traffic does not have to use the native datacenter exit. A WARP failure does not take down SSH, system updates or the upstream SOCKS5. Routing can be done per domain. Reconnecting WARP does not require rebuilding the client nodes. And the Direct, WARP and fixed SOCKS5 exits can each be tested on their own.

The limits are stated just as directly. WARP is not a residential IP, and nothing guarantees that a given service will accept it. It is described only as an independent exit that is easy to maintain. If a service rejects Cloudflare ranges, this setup has no second answer except the fixed SOCKS5 tier, and that one depends on an upstream you supply yourself. Details are in docs/warp-outbound.md.

The fixed SOCKS5 exit is optional, unencrypted by itself, and meant to fail closed

For Claude and Anthropic traffic, the repository adds a route through Xray to a static-socks outbound and then to a fixed public exit. The point is that switching between Hysteria2 and REALITY, migrating the VPS or reconnecting WARP can all happen without touching this one stable exit.

The caveats come with it. Claude does not require a residential IP at the protocol level. A fixed SOCKS5 is an optional policy. SOCKS5 is not an encrypted tunnel by itself. And if the VPS and WARP exits already meet your needs, you can leave the layer out. Details are in docs/static-socks.md.

The author also states a preference called fail closed. For a target deliberately bound to a fixed exit, if the fixed upstream is down the request should fail, not fall back to VPS Direct, because a silent fallback can change the final exit without the user noticing. For anyone using this to keep an account on one address, that behaviour is the whole reason to run the layer. For anyone who prefers availability, it means errors instead of slow-but-working connections when the upstream disappears.

UDP 24443 is a port chosen after measurement, not a protocol requirement

The full example opens three ports:

text
TCP 22      SSH
TCP 443     REALITY
UDP 24443   HY2

A Hysteria2-only deployment does not need TCP 443 open just because the repository contains a REALITY example. The UDP port 24443 was selected after testing on the author's line and is not something Hysteria2 requires. If UDP 443 is stable on your route you can use it instead, and reachability should decide the port.

The stated server requirements are small: 1 vCPU, 1 GB RAM, Ubuntu 24.04 LTS or Debian 12 or newer, a public IPv4 address, and both TCP and UDP. What matters more is the route, packet loss, evening peak behaviour, UDP availability and whether the provider allows personal proxy or VPN use. Before buying, the author suggests testing a provider's test IP or Looking Glass from your own network:

powershell
ping TEST_IP -n 50
tracert -d TEST_IP

A stable 200 Mbps is described as more useful than a shared 1 Gbps with heavy evening loss. The longer procedure for choosing a provider, comparing UDP against 443 and handling mainland China cloud servers is in docs/vps-selection.md, which is the place to read if you have not bought a server yet.

The SSH bootstrap is deliberately a human step before an agent takes over

The repository is written to be handed to an AI agent, with AGENTS.md as the maintenance note for agents, but it insists that a person finishes the first SSH key login. The flow is: the human logs in once with the vendor's initial password or console, generates a key pair locally, puts only the public key in authorized_keys, confirms that key login works, and then lets Claude Code, Codex or another agent continue using the local ssh.

bash
ssh-keygen -t ed25519

The default pair is ~/.ssh/id_ed25519, which stays on your machine, and ~/.ssh/id_ed25519.pub, which can go to the server. On Linux or macOS the public key goes up with ssh-copy-id, and the human then verifies the login:

bash
ssh-copy-id root@YOUR_SERVER_IP
bash
ssh root@YOUR_SERVER_IP

There is also a Windows PowerShell form that pipes the public key into authorized_keys over ssh. Two warnings matter. Never paste an SSH private key or the VPS root password into chat, an issue or a public repository, since an agent that can call your working ssh, SSH agent or ~/.ssh/config does not need the key contents. And do not disable SSH password login before key login is confirmed, or you can lock yourself out of the server.

What was audited, what the examples are, and what is missing

The audited environment is stated with versions. Server side: Ubuntu 24.04 LTS, Xray 26.3.27, VLESS with REALITY and Vision on TCP 443, Hysteria2 on UDP 24443, and WARP as warp-svc Local Proxy on SOCKS5 127.0.0.1:40000, plus an optional fixed upstream SOCKS5. Windows client side: v2rayN 7.24.2, sing-box 1.13.14 when HY2 is active, Xray core for the REALITY profile, and TUN with Rule mode. Anything on other versions is outside what was checked.

The repository ships three examples. examples/xray-server.example.jsonc holds HY2, REALITY, Direct, WARP, the optional fixed SOCKS5 and sample routing. examples/v2rayn-hysteria2.example.md is the sing-box runtime structure from an active v2rayN node. examples/v2rayn-reality-vision.example.md was assembled by cross-checking v2rayN's node library, imported configs and current Xray fields. All of them use placeholders such as YOUR_UUID, YOUR_HY2_PASSWORD and YOUR_SOCKS_HOST, and the security section lists what must never be committed, from private keys and Reality shortId to subscription URLs.

The top level holds only AGENTS.md, README.md, docs, examples, LICENSE and .gitignore. There is no installer or script there, so every step is manual or agent-driven. The license is MIT and the repository has no GitHub releases. The last push was on 2026-09-11, so read the Xray and client versions above as a snapshot.

Editorial conclusion

Take this if you already run or plan to run one small Ubuntu VPS and want a worked example of splitting entrance from exit with Xray. Do not expect an installer, a release, or any promise that WARP or a fixed SOCKS5 will satisfy a given service. Check UDP reachability on your own line and your provider's rules before building anything.

Frequently asked questions

What is an edge proxy, as used in personal-edge-proxy?

Here it is a personal proxy on one VPS running Xray, with Hysteria2 as the main entrance and Direct, WARP or an optional fixed SOCKS5 as the exits.

Does personal-edge-proxy need REALITY if I already use Hysteria2?

No. A single Hysteria2 inbound is enough if it is stable on your network. REALITY is a backup entrance for when UDP is unreliable, and it does not change the exit IP.

Does personal-edge-proxy guarantee that AI services will accept the exit?

No. The repository says WARP is not a residential IP, a fixed SOCKS5 is optional, and nothing here guarantees that an account avoids risk controls or complies with a service's terms.

Official sources

  1. Issues
  2. License: MIT
  3. README
  4. yding-git/personal-edge-proxy on GitHub
Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/yding-git-personal-edge-proxy.svg)](https://hysenlabs.com/projects/yding-git-personal-edge-proxy)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/yding-git-personal-edge-proxy.svg)](https://hysenlabs.com/projects/yding-git-personal-edge-proxy)

Was this useful?