Introducing Forge: the open source pipeline for generating SDKs, CLIs, docs, and more
Source
blog.cloudflare.com
Date
Key takeaways · AI-distilled
Cloudflare says its API has more than 3,500 operations served by hundreds of services written in Rust, Go, TypeScript and Python. Hosted SDK generators it tried did not solve the cross-team breakage problem, and some of those vendors have shut down.
Forge runs in CI on each team's API repo. It lints every API change and builds installable previews of the CLI, SDKs and docs with that change highlighted, so a change that would break generation shows up before merge instead of at release time.
Forge lets users chain generators so one output feeds another. Cloudflare needed this because its cf CLI is written in TypeScript and has handwritten commands such as cf dev and cf build that still have to appear in the generated docs.
Forge transformers can emit more than SDKs, including Cap'n Web RPC bindings, TanStack Query bindings, Zod or Valibot schemas and MCPThe Model Context Protocol — an open standard that lets any AI assistant plug into any tool or data source without custom integration code.Full definition → servers. Input is OpenAPI today, and Cloudflare names AsyncAPI, GraphQL and Protobuf as possible future formats.
Cloudflare's v4 API has been its only major version for 10 years despite many SemVer-breaking changes. The company says Forge prepares it to ship new major versions without breaking old clients, and plans extra care for Terraform. Forge is licensed Apache 2.0.
Terms in this piece · Glossary
MCP — The Model Context Protocol — an open standard that lets any AI assistant plug into any tool or data source without custom integration code.
AI agent — An AI system that doesn't just answer once but works toward a goal in a loop — taking actions, reading the results, and deciding what to do next.
Why it matters
Forge is a concrete, open-source answer to generating AI agentAn AI system that doesn't just answer once but works toward a goal in a loop — taking actions, reading the results, and deciding what to do next.Full definition →-consumable interfaces (CLI, SDK, MCP, docs) from a single API definition, useful for anyone standardizing how agents interact with their own services.