Cloudflare has released an open-source command-line interface (CLI) tool designed to simplify debugging for privacy-preserving protocols, particularly Oblivious HTTP (OHTTP). The tool, named pvcli, aims to reduce the complexity of testing and troubleshooting multi-party protocols by automating binary parsing and encryption steps that previously required manual intervention or custom scripts.
The company identified growing friction in development and incident response as its privacy product suite expanded. Operators faced challenges in isolating failures across relay, gateway, and origin servers, often resorting to one-off client scripts for customer-specific deployments. Binary HTTP encoding and cryptographic operations further complicated debugging, requiring painstaking manual inspection of hex strings and RFC references.
How pvcli works
The tool consolidates multiple privacy protocols into a single interface modeled after curl, with familiar argument structures. A basic OHTTP request that previously required manual key parsing, binary HTTP encoding, and wrapper construction can now be executed with a single command:
pvcli --ohttp \
--first-hop https://relay.example.com \
--proxy https://gateway.example.com \
-X POST \
--data '{"test":1}' \
https://target.example.com
Verbose logging (-vvv) provides step-by-step protocol execution details, including decoded client configurations, request headers, and encrypted payloads. The tool also supports advanced scenarios like relay authentication via mTLS (--first-hop-client/--first-hop-key) and custom headers for specific hops (--first-hop-header).
Background: Oblivious HTTP (OHTTP) is a protocol that separates request metadata from content by routing traffic through two non-colluding servers (relay and gateway). This prevents any single party from knowing both the requester's identity and the requested content. The protocol is used in services like Apple's Private Relay and Microsoft's Edge Secure Network VPN.
Practical impact for operators
Cloudflare's internal debugging process previously involved:
- Manually parsing binary-encoded public keys from gateways
- Crafting bespoke scripts to convert HTTP requests to binary format
- Constructing wrapper requests with cryptographic headers
- Coordinating log reviews with customers to isolate failures
A typical debugging session could take hours to identify simple issues like malformed binary encoding. The company reports that pvcli reduces this to minutes by handling protocol steps automatically and surfacing errors in human-readable logs.
The tool currently supports OHTTP and plans to add CONNECT proxying, MASQUE, and Privacy Pass protocols. Future updates include post-quantum cryptography support, latency measurement, and chunked OHTTP capabilities. Installation requires Rust and is available via:
cargo install --git https://github.com/cloudflareresearch/pvcli
Industry context
While existing open-source implementations of OHTTP exist in Rust and Go, Cloudflare's tool distinguishes itself by combining multiple privacy protocols in one interface. The company positions pvcli as particularly valuable for operators implementing OHTTP at scale, citing its ability to test live systems end-to-end with minimal setup.
Cloudflare operates OHTTP relays and gateways used by major technology companies, though the tool itself is protocol-agnostic and can work with any compliant implementation. The Apache-2.0 licensed project is accepting external contributions through its GitHub repository.
Companies mentioned
Automated pipeline · SaaS
Synthesized from 1 industry feed on 27 Jul 2026. Passed independent editor verification (score 92/100) before publication. Style guide v1.4.
Sources
Decision trail
- Checking for duplicates — Deduped batch of 1 candidates
- Checking for duplicates — Failed no verdict returned
- Checking for duplicates — Deduped batch of 1 candidates
- Checking for duplicates — New story No recent or in-pipeline article covers Cloudflare's open-sourcing of a privacy proxy CLI tool.
- Writing the article — Draft created article_id=363 slug=cloudflare-open-sources-privacy-proxy-debugging-cli
-
Editor review — Approved
- Score: 92/100
- Style compliance: Headline exceeds 90-character limit (92 characters).
- No copied phrasing: The command example in the 'How pvcli works' section closely mirrors the source text's command structure and argument names. While the functionality is identical, the phrasing should be restructured to avoid echoing the source.
- Style compliance: The 'Background' block includes a definition of OHTTP that is accurate but could be more concise (e.g., 'OHTTP separates request metadata from content by routing traffic through two non-colluding servers'). The current phrasing is slightly verbose.
- Factual grounding: The draft states 'Future updates include post-quantum cryptography support, latency measurement, and chunked OHTTP capabilities.' The source mentions these as planned contributions but does not explicitly frame them as 'future updates' from Cloudflare. The claim is defensible but should be rephrased to reflect the source's phrasing (e.g., 'Planned contributions include...').
- Generating reader Q&A — Generated 4 items
- Assigning hero image — Reused library image reused image #285
- Linking related stories — Linked 5 relations from 308 candidates
- Publishing — Published cloudflare-open-sources-privacy-proxy-debugging-cli
- Mastodon — Posted https://mstdn.social/@hostingpaper/116992742622773224



Discussion · coming soon
Be the first to join the thread when community discussion launches.