Skip to content

Deployment guide for an XHTTP relay on Vercel Edge Functions that fronts a self-hosted Xray server.

CCM score
45 of 100
skills.sh installs
180
GitHub stars
99
last updated
Jun 3, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the full setup: Xray install, TLS certificate issuance, Vercel Edge relay deployment, and client configuration for v2rayN or Hiddify
  • Includes the api/proxy.js streaming relay, vercel.json rewrite rules, and an XRAY_BACKEND_URL environment variable for the origin
  • Limits transport to XHTTP only, since WebSocket, gRPC, TCP, mKCP, QUIC, and Reality are not supported on Vercel Edge
  • Designed for operators who want to hide a VPS origin IP behind *.vercel.app with troubleshooting steps for 502 and DNS issues

Install

$ npx -y skills add reason-machines/trending-skills --skill vercel-xhttp-relay -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Vercel XHTTP Relay

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.


Architecture

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


Prerequisites

  • Linux VPS outside Iran (Ubuntu 22.04/24.04 recommended), min 1 vCPU / 1 GB RAM
  • A domain with an A record pointing to your VPS (DNS only, not proxied)
  • Vercel account (free Hobby tier works for light personal use)
  • Node.js + npm installed locally (for Vercel CLI)
  • Xray v1.8.16+ installed on VPS

Step 1 — Install Xray on VPS

# 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

Details

Repository
github.com/reason-machines/trending-skills
Categories
DevOps & Cloud, Backend & APIs
First seen
Jun 3, 2026

Questions

What does the vercel-xhttp-relay skill do?

vercel-xhttp-relay deploys an XHTTP relay on Vercel Edge Functions that forwards Xray or V2Ray traffic to a backend Xray server. The Vercel *.vercel.app domain acts as a CDN front, hiding the origin VPS IP behind it.

How do I install the vercel-xhttp-relay skill?

Run npx -y skills add reason-machines/trending-skills --skill vercel-xhttp-relay -y in a project. Once installed, vercel-xhttp-relay lets the agent walk through the XHTTP relay setup on Vercel Edge Functions.

What does vercel-xhttp-relay need before I start?

vercel-xhttp-relay assumes a Linux VPS outside Iran, a domain with a DNS-only A record, a Vercel account, Node.js with npm, and Xray v1.8.16 or newer on the VPS. Only XHTTP transport is supported on Vercel Edge.

Where does vercel-xhttp-relay sit in its category?

vercel-xhttp-relay is in the DevOps and Cloud category on Claude Marketplaces, next to the azure skills such as azure-diagnostics and azure-deploy. It covers a narrower job, proxying XHTTP traffic through Vercel edge functions.

More from reason-machines/trending-skills

All 251

Similar to Vercel Xhttp Relay

More DevOps & Cloud