Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
W

wgcf

> 安全
Open source

Cross-platform, unofficial CLI for Cloudflare Warp

8.6K stars0 likes8 views
WebsiteGitHub

About

Cross-platform, unofficial CLI for Cloudflare Warp

wgcf

wgcf is an unofficial, cross-platform CLI for Cloudflare Warp

Features

  • 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

Download

You can find pre-compiled binaries on the releases page.

Usage

Run wgcf in a terminal without any arguments to display the help screen. All commands and parameters are documented.

Register new account

Run the following command in a terminal:

bash
wgcf register

The new account will be saved under wgcf-account.toml

Generate WireGuard profile

Run the following command in a terminal:

bash
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.

Maximum transmission unit (MTU)

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.

Add a license key

If you have an existing Warp+ subscription, for 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 limit of 5 maximum devices linked at a time. You can remove linked devices from the 1.1.1.1 app on your phone.

[!CAUTION] Only subscriptions purchased directly from the official 1.1.1.1 app are supported. Keys obtained by any other means, including referrals, will not work and will not be supported.

First, get your Warp+ account license key. To view it on Android:

  1. Open the 1.1.1.1 app
  2. Click on the hamburger menu button in the top-right corner
  3. Navigate to: Account > Key

Now, back to wgcf.

[!WARNING] There's a bug on Cloudflare's side that prevents existing accounts from getting Warp+ even after you bind a correct license key. If you have ever connected to Warp VPN, then your account is affected. You will need to make a new account via:

wgcf
wgcf register

Then immediately proceed with the steps below, without running any other commands. For more details, check !85

Run the following commands:

bash
wgcf update --license-key "YOUR_LICENSE_KEY_GOES_HERE"
wgcf generate

Check device status

Run the following command in a terminal:

bash
wgcf status

Verify Warp/Warp+ works

Connect to the WireGuard profile generated by this tool, then run:

bash
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.

[!WARNING] If you're seeing warp=on even after you bound a Warp+ license key, you are likely experiencing a known bug, please refer to the Add a license key section.

Development

The API client code is auto-generated from the OpenAPI spec openapi-spec.yml and stored under the openapi/ package. Do not touch any code under that package, instead, change the spec file and regenerate the API client code. To do this, install openapi-generator, then run:

bash
go generate

Notice of Non-Affiliation and Disclaimer

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.

Issues· 29 open

View all issuesOpen on GitHub
  • #619

    Handshake succeeds, but HTTPS to non-Cloudflare sites times out on Linux

    Updated Aug 21, 2026
  • #601

    New wgcf/WARP registrations are IPv4-only while older profiles still support IPv6

    Updated Jun 28, 2026
  • #279

    Alternative Endpoint

    Updated Mar 26, 2026
  • #542

    Often initial connection issues at random

    Updated Nov 9, 2025
  • #539

    Permission to add the binary release to Chocolatey

    Updated Oct 30, 2025
  • #85

    WARP+ not work

    bugUpdated Sep 21, 2025
  • #515

    Some API endpoints return 500 Internal Server Error since Aug 7, 2025

    Updated Aug 22, 2025
  • #56

    Support Teams/Zero Trust

    enhancementUpdated Aug 13, 2025
  • #50

    Internet access does not work (system issue)

    bugUpdated Aug 12, 2024
  • #394

    Request support of Cloudflare Security DNS

    enhancementUpdated May 17, 2024

> Tags

Goclientcloudflareplussecurity

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 30, 2026
Category安全
PricingOpen source

> Related tools

O
OWASP ZAP
开源 Web 应用安全扫描器
O
owasp-wstg-tracker
Simple web app to track OWASP WSTG security testing progress
H
homebridge-mi-gateway-security
XiaoMi Gateway Security plugin for HomeBridge.