Introduction#
Recently, I have often seen cases of using warp with surge 4 (and above). However, not everyone is willing to spend money to purchase surge, so I will record how to use the wireguard client to use cloudfare warp.
-
Get the Warp license key#
First, you need to obtain a key with 24 PB of traffic from the telegram bot. With 24 PB of traffic, most people can use it for a very long time.
- Open https://t.me/generatewarpplusbot in your browser.
- Follow the prompts to enter Telegram.
- The bot will ask you to follow its channel, where it will also send some private keys. Follow the instructions and first use
/start
, then/generate
to get the license key. -
Use wgcf to generate the wireguard configuration file#
First, use homebrew to install wgcf.
brew install wgcf
Register using wgcf.
wgcf register
After that, there will be a wgcf-accounttoml
configuration file in the root directory /Users/{your_username}
. Fill in the license key given by the telegram bot.
Then generate the wireguard configuration file using the following command.
wgcf generate
You will get wgcf-profile.conf
.
-
Configure the wireguard client#
Add an empty configuration.
Paste the configuration from wgcf-profile.conf
.
Now you can enjoy using wireguard.