Install and manage a multi-protocol VPN server from one colorful terminal menu.
Developed by Eng. Abdelrahman Rabie
AutoscriptXRAY is a collection of Bash installers and small Go services that set up SSH over WebSocket-style/SSL transports, an Xray core (VMess, VLESS, Trojan, Shadowsocks), WireGuard and UDP tunnels on a fresh VPS, and manage them through a single interactive menu. Every screen shares one violet-to-magenta theme, defined once in theme.sh.
Status: personal project under active development. The feature list describes what the scripts are designed to install and manage. No independent installation or connectivity validation has been performed on this code, so treat the tables below as design intent, not a support guarantee.
| Category | Features |
|---|---|
| SSH WS | OpenSSH, Dropbear, SSH WS, SSH SSL WS, Enhanced Payload, UDP Custom, BadVPN UDPGW |
| XRAY Core | VMess, VLESS, Trojan, Shadowsocks, gRPC, NGINX Reverse Proxy, Auto SSL |
| WireGuard | WireGuard VPN, Client Generator, QR Code |
| UDP Tunnel | UDP Custom, ZIVPN UDP, BadVPN UDPGW |
| Management | Backup, Domain Manager, Speedtest, Service Checker, Traffic Monitor |
| Dashboard | Interactive Panel, Service Status, User Statistics, Traffic Statistics |
| Go Services | Native Dropbear WS, Native Stunnel WS, Multi-Connection Support |
Open the menu any time after installation:
menuNote: this script must be run as root, on a fresh VPS.
# update
apt update -y && apt upgrade -y
apt install git curl screen sudo -y
# disable ipv6
sysctl -w net.ipv6.conf.all.disable_ipv6=1
sysctl -w net.ipv6.conf.default.disable_ipv6=1
# clone the repo
git clone https://github.com/PacketBreaker/AutoscriptXRAY.git
cd AutoscriptXRAY
# run the main installer
chmod +x setup.sh
screen -S setup ./setup.sh| Service | Port |
|---|---|
| OpenSSH | 22 |
| Dropbear | 109,143 |
| SSH WS | 2082 |
| SSH SSL WS | 2096 |
| BadVPN UDPGW | 7300 |
| UDP Custom | 1-65535 |
| VMess TLS | 443 |
| VMess None TLS | 80 |
| VLESS TLS | 443 |
| Trojan TLS | 443 |
| Shadowsocks WS | 443 |
The SSH WS services (sshws/ws-dropbear.py, sshws/ws-stunnel.py and the Go variants in internal/go/) implement a minimal HTTP 101 Switching Protocols upgrade tunnel, the kind injector-style clients such as HTTP Injector or KPN Tunnel expect. They do not implement RFC 6455 WebSocket framing, so standards-compliant WebSocket clients are not interoperable with them. The Xray protocols are served by Xray-core behind NGINX with proper upgrade handling and are unaffected by this limitation.
Check listening ports:
ss -tulpnCheck NGINX:
nginx -t
systemctl status nginxCheck XRAY:
xray -test -config /etc/xray/config.json
systemctl status xrayCheck SSH WS:
systemctl status ws-dropbear
systemctl status ws-stunnelCheck the UDP tunnels:
systemctl status udp-custom
systemctl status udpgwThese are the installer's intended targets, as designed. They are not independently verified: behavior can vary between provider images and configurations.
| OS | Intended status |
|---|---|
| Debian 12 | ⭐ Recommended |
| Debian 11 | ✅ Intended |
| Ubuntu 22.04 | ✅ Intended |
| Ubuntu 20.04 | ⚠ Limited |
| Debian 10 | ❌ Deprecated |
| OpenVZ | ❌ Unsupported |
| KVM | ✅ Recommended |
| VMware | ✅ Recommended |
- Recommended on a fresh VPS, minimum 1 GB RAM
- A domain is required for XRAY TLS
- Cloudflare supported
- Enhanced payload supported
All screens share one palette defined in theme.sh (installed to /etc/autoscriptvpn/theme.sh).
Change the colours once and every menu follows. Requires a 256-colour terminal.
This project stands on the shoulders of:
- XTLS / Xray-core
- BadVPN
- WireGuard
- acme.sh
- NGINX
Copyright (c) 2026 Eng. Abdelrahman Rabie. Based on AutoscriptXRAY (MIT), see LICENSE and NOTICE.