cloudflare/cloudflared

▲ 37 stars today★ 15,842⑂ 1,454

Cloudflare Tunnel client

About cloudflare/cloudflared

cloudflare/cloudflared is an open-source project on GitHub, mainly written in Go. Cloudflare Tunnel client It currently holds 15,842 stars and 1,454 forks with 546 open issues, and was last pushed on 2026-09-21 (repository created 2017-10-13).

Project Overview

Git Homed tracks it on the Today's Trending board, currently at rank #75 with 37 new stars today.

GitHub Repository Details

Repository cloudflare/cloudflared · default branch master · size 46146 KB · watchers 139 · source: GitHub REST API and repository README

README

Cloudflare Tunnel client

Contains the command-line client for Cloudflare Tunnel, a tunneling daemon that proxies traffic from the Cloudflare network to your origins. This daemon sits between Cloudflare network and your origin (e.g. a webserver). Cloudflare attracts client requests and sends them to you via this daemon, without requiring you to poke holes on your firewall --- your origin can remain as closed as possible. Extensive documentation can be found in the Cloudflare Tunnel section of the Cloudflare Docs. All usages related with proxying to your origins are available under cloudflared tunnel help.

You can also use cloudflared to access Tunnel origins (that are protected with cloudflared tunnel) for TCP traffic at Layer 4 (i.e., not HTTP/websocket), which is relevant for use cases such as SSH, RDP, etc. Such usages are available under cloudflared access help.

You can instead use WARP client to access private origins behind Tunnels for Layer 4 traffic without requiring cloudflared access commands on the client side.

Before you get started

Before you use Cloudflare Tunnel, you'll need to complete a few steps in the Cloudflare dashboard: you need to add a website to your Cloudflare account. Note that today it is possible to use Tunnel without a website (e.g. for private routing), but for legacy reasons this requirement is still necessary: 1. Add a website to Cloudflare 2. Change your domain nameservers to Cloudflare

Installing cloudflared

Downloads are available as standalone binaries, a Docker image, and Debian, RPM, and Homebrew packages. You can also find releases here on the cloudflared GitHub repository.

User documentation for Cloudflare Tunnel can be found at https://developers.cloudflare.com/cloudflare-one/networks/connectors/cloudflare-tunnel/

Creating Tunnels and routing traffic

Once installed, you can authenticate cloudflared into your Cloudflare account and begin creating Tunnels to serve traffic to your origins.

TryCloudflare

Want to test Cloudflare Tunnel before adding a website to Cloudflare? You can do so with TryCloudflare using the documentation available here.

Breaking Changes

Removal of CLI flags, environment variables, configuration keys, or commands is a breaking change. Such removals must be announced in the Cloudflare Tunnel changelog before the release that removes them.

Deprecated versions

Cloudflare currently supports versions of cloudflared that are within one year of the most recent release. Breaking changes unrelated to feature availability may be introduced that will impact versions released more than one year ago. You can read more about upgrading cloudflared in our developer documentation.

For example, as of January 2023 Cloudflare will support cloudflared version 2023.1.1 to cloudflared 2022.1.1.

Development

Requirements

Build

To build cloudflared locally run make cloudflared

Test

To locally run the tests run make test

Linting

To format the code and keep a good code quality use make fmt and make lint

Mocks

After changes on interfaces you might need to regenerate the mocks, so run make mocks

Git Hooks

To avoid CI errors, you can install pre-push hooks that run linting and tests before each push:
make install-hooks
This will configure git to use the hooks in .githooks/ that run make fmt-check lint test before each push.

GitHub Stars & Activity

15,842Stars
1,454Forks
546Open issues
GoLanguage

GitHub Popularity

GitHub stars15,842
Forks1,454
Open issues546
Primary languageGo
LicenseApache-2.0
Stars gained today37
Created2017-10-13
Last pushed2026-09-21

Trending History

Daily boardrank #75 · ▲ 37 stars

Related GitHub Projects

1

infiniflow / ragflow

Go★ 91,105⑂ 10,805▲ 63 stars
2

caddyserver / caddy

Go★ 75,934⑂ 4,986▲ 28 stars
3

multica-ai / multica

Go★ 51,006⑂ 6,606▲ 170 stars
4

QuantumNous / new-api

Go★ 48,608⑂ 11,663▲ 103 stars
5

esengine / DeepSeek-Reasonix

Go★ 35,663⑂ 2,415▲ 34 stars
6

larksuite / cli

Go★ 17,374⑂ 1,393▲ 38 stars
7

coder / coder

Go★ 16,378⑂ 1,562▲ 461 stars
8

guohuiyuan / go-music-dl

Go★ 4,661⑂ 447▲ 68 stars

More Trending Repositories