
If you're running Xray or V2Ray and need to hide your origin server IP from censors, this skill walks you through deploying a relay on Vercel Edge Functions. The setup streams XHTTP traffic from your client through Vercel's CDN to your backend VPS without buffering, so Vercel's domain faces the internet instead of yours. It covers the full stack: installing Xray 1.8.16+ on Ubuntu, getting TLS certificates with acme.sh, configuring the XHTTP inbound on port 443, writing the 30-line Edge Function relay, and wiring up v2rayN clients with the right SNI and path. Works on Vercel's free tier for light personal use. Note that only XHTTP is supported here, no WebSocket or gRPC, since those don't play well with Edge runtime.
$ npx -y skills add aradotso/trending-skills --skill vercel-xhttp-relay --agent claude-codeInstalls into .claude/skills of the current project.
Skill by ara.so — Daily 2026 Skills collection.
A minimal Vercel Edge Function relay that forwards XHTTP traffic from Xray/V2Ray clients to a backend Xray server. Vercel's *.vercel.app domain acts as a CDN front, hiding your origin VPS IP from censors.
Client (v2rayN/Hiddify)
→ TLS (SNI=vercel.com) to *.vercel.app
→ Vercel Edge Function (relay, no buffer)
→ HTTP/2 to backend Xray XHTTP inbound
Supported transports: XHTTP only
Not supported on Vercel Edge: WebSocket, gRPC, TCP, mKCP, QUIC, Reality
# Update system
apt update && apt upgrade -y
apt install -y curl socat cron ufw
# Install Xray via official script
bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)" @ install
Sponsors