
cloudflared
CLICloudflare Tunnel 官方客户端:无需开放防火墙端口即可把本地服务暴露到公网,也能代理 SSH、RDP 等 TCP 访问。命名隧道需 Cloudflare 账号与域名,快速隧道可免登录试用。
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:
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.
- You can install on macOS via Homebrew or by downloading the latest Darwin amd64 release
- Binaries, Debian, and RPM packages for Linux can be found here
- A Docker image of
cloudflaredis available on DockerHub - You can install on Windows machines with the steps here
- To build from source, install the required version of go, mentioned in the Development section below. Then you can run
make cloudflared.
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.
- Create a Tunnel with these instructions
- Route traffic to that Tunnel:
- Via public DNS records in Cloudflare
- Or via a public hostname guided by a Cloudflare Load Balancer
- Or from WARP client private traffic
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
- GNU Make
- capnp
- go >= 1.27
- Optional tools:
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.
相關資源

Wrangler
CLICloudflare 官方 Workers 命令行,本地开发调试并部署 Workers,管理 D1、R2、KV 等资源并实时查看日志。官方推荐装在项目内,需要 Cloudflare 账号。
cloudflare/workers-sdk4.6k
Cloudflare MCP Server
MCPCloudflare 官方的一组远程 MCP 服务器:管理 Workers 及 KV、R2、D1 等绑定资源,查询日志与可观测性、构建记录、DNS 分析和 Radar 数据。通过 Cloudflare OAuth 授权,部分功能需付费套餐。
cloudflare/mcp-server-cloudflare4.4k
Cloudflare
SkillCloudflare 官方总览技能:按需求推荐 Workers、R2、D1、Durable Objects、Containers、AI 等平台产品,再引导加载对应子技能与文档。同仓库另有 Wrangler、Agents SDK 等专项技能。
cloudflare/skills3.1k
Cloudflare Skills
SkillCloudflare 官方技能集:Workers、Wrangler、Durable Objects、Agents SDK、Sandbox、邮件服务与 Cloudflare One 的开发部署指引;插件版还附带官方 MCP。
cloudflare/skills3.1k
Cloudflare Skills
PluginCloudflare 官方插件:覆盖 Workers、Durable Objects、Agents SDK、Wrangler、Sandbox 与 Web 性能审计等技能,并附带 Cloudflare API MCP,可访问账户数据与最新文档。
cloudflare/skills3.1k
render-deploy
Skill分析代码库后生成 render.yaml Blueprint,或经 Render MCP 直接创建服务,把应用部署到 Render 云平台。Render 官方维护,OpenAI 官方精选技能也收录了它;需要 Render 账号,代码须推送到 GitHub/GitLab/Bitbucket。
render-oss/skills88