This project is a fork of the WGCF unofficial CloudFlare Warp CLI, which was created by ViRb3. The original code is available under the MIT License. I have modified the code to change the default DNS server from 1.1.1.1 to 94.140.14.14. All credit for the original software goes to the creators of WGCF. This means, that the exported .config file, will use AdGuards DNS, which will block ads, but it will still use the Warp VPN. For easy instuctions, read The Guide here.
wgcf is an unofficial, cross-platform CLI for Cloudflare Warp
- Register new account
- Change license key to use existing Warp+ subscription
- Generate WireGuard profile
- Check account status
- Print trace information to debug Warp/Warp+ status
You can find pre-compiled binaries on the releases page.
Run wgcf
in a terminal without any arguments to display the help screen. All commands and parameters are documented.
Run the following command in a terminal:
wgcf register
The new account will be saved under wgcf-account.toml
Run the following command in a terminal:
wgcf generate
The WireGuard profile will be saved under wgcf-profile.conf
. For more information on how to use it, please check the official WireGuard Quick Start.
To ensure maximum compatibility, the generated profile will have a MTU of 1280, just like the official Android app. If you are experiencing performance issues, you may be able to improve your speed by increasing this value. For more information, please check #40.
If you have an existing Warp+ subscription, for an example on your phone, you can bind the account generated by this tool to your phone's account, sharing its Warp+ status. Please note that there is a current limit of maximum 5 linked devices active at a time.
⚠️ This device's private key will be changed!
First, get your Warp+ account license key. To view it on Android:
- Open the
1.1.1.1
app - Click on the hamburger menu button on the top-right corner
- Navigate to:
Account
>Key
Edit wgcf-account.toml
directly with the new license key and run:
wgcf update
or, using an environment variable:
WGCF_LICENSE_KEY="123412341234" wgcf update
The license will be applied, and a new private key will be created for your account. Regenerate your WireGuard configuration and use the new private key.
Run the following command in a terminal:
wgcf status
Connect to the WireGuard profile generated by this tool, then run:
wgcf trace
If you look at the last line, it should say warp=on
or warp=plus
, depending on whether you have Warp or Warp+ respectively.
- api_tests - Tests for API documentation generation
- spec_format - OpenAPI3 specification formatter to post-process the spec generated by Optic
This project uses Optic to automatically generate API documentation using the tests defined in api_tests. These tests cover all endpoints used by wgcf. The documentation is exported as an OpenAPI3 specification, which is then used with openapi-generator to generate the Go client API code under wgcf/openapi.
To update the API documentation, install Optic, then run:
api start
Resolve and save all the differences in the Web UI.
To regenerate the Go client API code, install openapi-generator, then run:
bash generate-api.sh
This script supports both Linux and WSL.
We are not affiliated, associated, authorized, endorsed by, or in any way officially connected with any other company, agency or government agency. All product and company names are trademarks™ or registered® trademarks of their respective holders. Use of them does not imply any affiliation with or endorsement by them.
We are not affiliated, associated, authorized, endorsed by, or in any way officially connected with Cloudflare, or any of its subsidiaries or its affiliates. The official Cloudflare website can be found at https://www.cloudflare.com/.
The names Cloudflare Warp and Cloudflare as well as related names, marks, emblems and images are registered trademarks of their respective owners.
We are not affiliated, associated, authorized, endorsed by, or in any way officially connected with AdGuard, or any of its subsidiaries or its affiliates. The official AdGuard website can be found at https://adguard.com.
The names AdGuard DNS and AdGuard as well as related names, marks, emblems and images are registered trademarks of their respective owners.