- A registered domain name and access to its DNS records
 - A Cloudflare account and API key
 - A server running Ubuntu or a derivative
 - curl and python3 installed on the server
 
- Log in to your Cloudflare account.
 - Click on the profile icon on the top right corner and select "My profile".
 - Click on the "API Tokens" tab.
 - Under the "Global API Key" section, click on the "View" button.
 
git clone https://github.com/rrouzbeh/xray
cd xray
chmod +x install.sh
./install.sh
python client.py
This script assumes that curl and python3 are installed on your server. If not, install them with sudo apt-get install curl python3.