Lifestyle

Cloudflare open-sources Forge, a free tool that automatically builds SDKs, command-line tools and documentation from an API description

On September 28, 2026, Cloudflare announced Forge, an open source pipeline that turns a description of an API into software kits, command-line tools and documentation. Cloudflare says it built Forge so its own tools and docs keep pace with API changes and serve AI agents. It matters to developers who publish APIs and to Cloudflare customers, including Terraform users.

About 7 min read

Cloudflare open-sources Forge, a free tool that automatically builds SDKs, command-line tools and documentation from an API description
Image: Mokaair (Original editorial artwork)

What Cloudflare announced

On September 28, 2026, Cloudflare published a post on its official blog, written by Dimitri Mitropoulos, Matt “TK” Taylor and Samuel Macleod, announcing Forge. According to Cloudflare, Forge is an open source, pluggable generation pipeline, meaning an automated series of steps that other people can extend with their own add-ons. It produces SDKs (software development kits), CLIs (command-line tools), documentation and libraries, and anyone can deploy and run it for free. These are the pieces developers use to work with an API, the interface that lets one program request data or actions from a service.

Cloudflare says Forge is still at an early stage but is already used to generate the output needed by the cf CLI, and will support Cloudflare's API documentation, SDKs and more over the coming months. Cloudflare also explains that it built Forge to serve AI agents, meaning AI software that carries out tasks on a user's behalf, as customers. In its view, a CLI, API SDKs, an MCP server (a connection point that lets AI agents use a service) and matching documentation are now baseline requirements for every product.

Cloudflare open-sources Forge, a free tool that automatically builds SDKs, command-line tools and documentation from an API description
Mokaair editorial verification flow · Image: Mokaair (Original editorial artwork)
Read the full description

Sources are collected, independently checked, then reviewed by Jev.

Why Cloudflare built Forge itself

According to Cloudflare, its API has more than 3,500 operations, backed by hundreds of services written in Rust, Go, TypeScript, Python and other languages. Cloudflare says it tried several hosted products, and relied on some of them in production, but none solved the problem, and some have shut down entirely. In one case, a change merged by one team unexpectedly broke the generation pipeline, and another team did not discover it until release.

Cloudflare says Forge runs in CI (continuous integration, the automated checks that run whenever code changes) on each team's API repository. It checks every change and produces installable, testable previews of the CLI, documentation and SDKs that highlight only that change, so problems are found before they affect anything downstream.

How Cloudflare describes the change; these are Cloudflare's own statements
AspectPast situation as described by CloudflareForge approach as described by Cloudflare
When problems are foundA change might only be discovered by another team at releaseEvery change is checked in CI and previews are generated
Control over toolingReliance on hosted tools outside its control, some of which shut downOpen source, free to deploy and run yourself
Input formatsNot detailed in the postCurrently supports OpenAPI; designed to support AsyncAPI, GraphQL, Cap’n Proto, Protobuf and others in future
Relationship between outputsOther generators usually decide how outputs are chainedTransformers can be chained, with the user in control

Forge's main design features

Multiple outputs, including Cap’n Web

Cloudflare says Forge can generate Cap’n Web directly from an OpenAPI specification, a standard format for describing what an API can do. Cap’n Web is Cloudflare's RPC (remote procedure call) system, which lets TypeScript call remote APIs as if they were local methods. Cloudflare says the same approach can be used to generate TanStack Query bindings, Zod or Valibot schemas, MCP servers and more. These are ready-made building blocks that make an API easier to use from other tools.

Chainable transformers

In Forge, a transformer is the part that turns one kind of input into a new output. According to Cloudflare, Forge's transformers can use the output of one target to generate other outputs, and users control how they are chained. Cloudflare cites the cf CLI as an example. It is written in TypeScript and includes hand-written commands such as cf dev and cf build, added on top of the generated output. Those commands need to call the TypeScript APIs of packages such as Vite. Cloudflare says it could not find an existing tool that feeds such hand-written commands back into the documentation, so it is building this capability into Forge.

Relationship to API versioning

According to Cloudflare, its v4 API has been its only major version for 10 years. Cloudflare says it is working on a versioning approach so that releasing a new major API version in future will not break older clients or SDKs. It says it will soon share more about its TypeScript, Rust, Python, Go, PHP and Terraform SDKs. It also says it will take extra care with the Terraform transition. Terraform is a widely used tool for managing infrastructure settings through configuration files.

Practical impact for general readers and developers

  • For everyday users: tools like this mostly work behind the scenes. If Cloudflare achieves its stated goals, its CLI, SDKs and documentation may keep up with API changes more consistently, but that depends on actual results.
  • For developers: Cloudflare says Forge is open source and free to deploy, so in principle it could be used to generate SDKs, CLIs and documentation for your own APIs. Because it is still early, take its maturity into account when evaluating it.
  • For the AI agent ecosystem: Cloudflare treats interfaces such as MCP servers as baseline requirements, reflecting how API providers are thinking about making their services easier for AI agents to use.
  • For existing Cloudflare users: Cloudflare mentions upcoming changes to API versioning and SDKs, including Terraform, so its follow-up announcements are worth watching.

Frequently asked questions

What is Forge?

According to Cloudflare, Forge is an open source, pluggable generation pipeline that produces SDKs, CLIs, documentation and libraries from API specifications, and anyone can deploy and run it for free.

Is Forge already in real use?

Cloudflare says Forge is still at an early stage but is already used to generate the output needed by the cf CLI, and will support Cloudflare's API documentation and SDKs in the coming months.

Which input formats does Forge support?

According to Cloudflare, Forge currently supports OpenAPI and is designed to support other input formats in future, such as AsyncAPI, GraphQL, Cap’n Proto and Protobuf.

Why didn't Cloudflare keep using existing hosted tools?

Cloudflare says it tried and relied on several hosted products, but none met its needs across teams and hundreds of repositories, and some have even shut down.

Will this affect the Cloudflare API or Terraform setup I use now?

Cloudflare says it is working on a way to release new major versions without breaking older clients or SDKs and will take extra care with the Terraform transition, but it has not announced specifics yet. Watch for Cloudflare's official follow-up announcements.

Have Forge's claims been independently verified?

No. The information in this article comes only from Cloudflare's official blog and represents the company's own statements.

Browse the latest news in this topic

Latest travel guides

Sources

Lifestyle