Cloudflare has announced Forge, an open-source, pluggable generation pipeline that anyone can deploy and run for free. According to the official Forge GitHub repo, “Forge is a schema-first OpenAPI code generation and surface tooling framework. It provides a plugin-based architecture for resolving OpenAPI 3.x specifications, applying JSONPath-based overlays, and generating typed SDKs, CLI interfaces, runtime helpers, and documentation.”
Forge was born out of the need to treat agents as customers. With an API that has over 3,500 operations and hundreds of services that power its APIs, Cloudflare saw a need to simplify this process. To that end, the company decided it was time to build a CLI for the entire Cloudflare API, which included SDKs and API docs. They needed a code gen pipeline capable of doing this at scale while offering enough flexibility to work across multiple languages and workflows.
To help reduce the overhead between teams, Cloudflare needed to be able to use a preview build before merging changes and shipping to customers, which would ensure the generation pipeline didn’t break. They needed something that could be extended to generate SDKs, Cap’n Web, MCP, and beyond.
And so, they created a tool to fix and avoid all of those problems. That tool is Forge.
Forge runs in CI to lint every change and generate preview builds with only specific changes highlighted that can be installed and tested. Prior to Forge, a workflow might look like: Feature API spec -> PR merged -> Aggregate API spec -> PR merged -> Centralized config -> PR merged -> SDK generator -> Failure detected.
With Forge, it’s more like Feature API spec -> Forge in CI -> Failure detected.
With a dramatically truncated workflow, development becomes more reliable and efficient.
Forge even makes it possible to use an OpenAPI spec and generate Cap’n Web directly. Cap’n Web is Cloudflare’s RPC system that allows TypeScript to call a remote API as if it were local.
Forge is open-source and free, runs directly in CI on team API repos, generates custom copies of CLIs, docs, and SDKs, supports OpenAPI input (with more formats planned), allows chaining targets together, and clearly defines API operations, lifecycle states, and deprecations.
“Forge is also setting us up for better API versioning. Cloudflare’s v4 API has been the one major version of our API for 10 years,” wrote Dimitri Mitropoulos, Matt “TK” Taylor, and Samuel Macleod on the official Forge announcement. They continued, “Since then, it appears like we haven’t launched any new major versions, but by SemVer definitions we’ve made quite a few changes worthy of a new major version. At the same time, several operations across our API feature internal ‘v2’ tags or ‘beta’ identifiers that have long outlived that part of the product’s lifecycle.”
Although Forge is still in the early stages of development, it can already generate the necessary output for cf (the agentic CLI used for the entire Cloudflare API). You can view and download the code for Forge from the official Forge GitHub repository.

