A powerful, interactive Bash panel to deploy and manage VLESS XHTTP configurations.
Built specifically for GitHub Codespaces. Fully automated, lightweight, and efficient.
https://raw.githubusercontent.com/Code-Leafy/G2rayXCodeLeafy/main/configs.txt
Thank you to everyone who has contributed! Your donations help the community bypass restrictions with ease.
💡 Want to help? You can donate your config directly from the G2ray Panel CLI (Option 1) after generating it. Your privacy is fully protected!
👉Click here for the Step-by-Step Tutorial
[!IMPORTANT] Disclaimer: This project is provided for educational and research purposes only. The developer does not encourage or condone the use of this software for bypassing network restrictions in violation of local laws. Users are solely responsible for their actions and compliance with all applicable regulations in their region. The developer is not responsible for any misuse of this tool.
- ⚡ One-Click Deployment — Generate and start Xray engines in seconds.
- 🎛️ Interactive CLI Panel — A beautiful, menu-driven interface to manage your node.
- 🔄 Auto-Keepalive — Smart keepalive loops to prevent your Codespace from hibernating.
- 📡 Live Stats — Monitor traffic usage (RX/TX) and resource consumption in real-time.
- 🌍 Dynamic Routing — Switch between Auto-detect, Custom IPs, and CDN routes instantly.
- 🩺 Self-Healing — Auto-restart engine, public port management, and log monitoring.
- 📋 QR Generation — Generate shareable QR codes directly in your terminal.
| Requirement | Notes |
|---|---|
| GitHub Account | To use Codespaces |
| curl / jq | Used for API interaction and JSON parsing |
| Xray-Core | The core engine (automatically detected/run) |
# Clone the repository
git clone https://github.com/Code-Leafy/G2ray-Panel.git
cd G2ray-Panel
# Run the panel
bash g2ray.shIf you don't have Git installed or are using a phone, follow these steps:
- Fork the Repo: Click the Fork button at the top right of this page to copy it to your account.
- Create Codespace: Open your forked repository, click the green Code button, select the Codespaces tab, and then click Create codespace on main.
- Wait for Load: Wait a few minutes for the environment to build.
- Launch Panel: Once the terminal loads, the G2ray CLI panel will appear automatically!
First Run: The script will automatically detect that no configuration exists and prompt you to generate one.
The G2ray Panel provides a full suite of tools:
- Core Controls: Generate configs, start/stop/restart the engine, and view QR codes.
- Configuration: Modify routing, change IPs, and tune the Keepalive frequency.
- Analytics: View real-time data usage, CPU/RAM usage of the engine, and check your Codespace quota/uptime.
- Logs: View the last 15 lines of the engine log to troubleshoot connectivity.
1. Panel initialized via Bash
└─ Checks for existing config
├─ If missing: Runs setup/keygen
└─ If present: Loads existing environment
2. Xray Engine execution
└─ Configured with XHTTP protocol
└─ API enabled for stats tracking
3. Keepalive mechanism
└─ Background task prevents Codespace inactivity
└─ Customizable interval (Normal/Aggressive/Economy)
G2ray-Panel/
├── g2ray.sh # Main management panel
├── configs.txt # Community donated configs
├── data/ # Configs, UUIDs, and PIDs
├── logs/ # Engine log files
└── README.md # This file
This project is licensed under the MIT License — see the LICENSE file for details.