After Stainless's shutdown, Cloudflare open-sources the generator behind its cf CLI
Cloudflare open-sourced Forge, an Apache 2.0 pipeline that generates SDKs, CLIs and docs from an API definition. Teams that lost Stainless's hosted generator can run it themselves, though Cloudflare so far uses it only for its cf CLI.
The Engineer · Build desk

What happened
- Anthropic acquired Stainless on May 18, and Stainless then said it would wind down its products, including the SDK generator that kept client libraries current.
- Customers including OpenAI, Google and Cloudflare kept the SDKs already generated for them but lost the service that regenerated them as their APIs changed.
- Google said on September 17 that it had partnered with Speakeasy to open-source Speakeasy's OpenAPI code-generation suite under the AGPLv3 license.
- Forge grew out of the TypeScript-based schema and generation system Cloudflare built for the April technical preview of its unified cf command-line interface.
Why it matters
- Who's exposed exposure Any API vendor on a hosted generator has tied its SDK release process to whoever owns that vendor, and an acquisition can freeze its client libraries at their last generated version.
- Who has to decide decision Teams replacing a hosted generator now have to choose a license along with a tool, because the two open generators released after the Stainless shutdown carry different terms.
- What it costs cost Self-hosting moves the generator's upkeep, including transformers, upgrades and CI time, onto the API team that used to pay a vendor to carry it.
- What it limits constraint Teams that need multi-language client libraries must judge Forge's SDK generators on their own before Cloudflare itself ships SDKs from them.
Next story · Leadership · 5d ago
Ninth State of AI Report credits better tooling with a 13-point coding gain on an older modelConfirmed2 publishers
Cloudflare's post describes a problem with timing: when a break gets found. "One team would merge a change that inadvertently would break the generation pipeline, another team would discover this at release time," the company wrote [8]. Generation ran after changes merged. The first team to see a broken build was often not the team that caused it. The API involved has more than 3,500 operations, served by hundreds of services written in Rust, Go, TypeScript and Python [7].
In my view this is the right design for an API owned by many teams. Forge moves generation to before the merge. It runs in CI on each team's API repos. It lints every change and builds preview versions of the CLI, docs and SDKs with that change highlighted, and an engineer can install those previews and test them [15]. Cloudflare says the premise is the same as Workers Previews, applied to SDK generation [16].
Outputs are pluggable. Forge ships generators for CLIs, SDKs and docs, and its transformers can be chained so one output feeds the next [17]. Cloudflare's example takes an OpenAPI spec and emits bindings for Cap'n Web, its RPC system that lets TypeScript call a remote API as if it were a local method [18]. The post also names TanStack Query bindings, Zod or Valibot schemas and MCP servers as targets [19].
The license is the part that deals with the Stainless failure. Forge is Apache 2.0, and a team can run and modify it privately without paying Cloudflare [2]. "We believe that building tools for APIs is a core part of the Internet, and you should be able to do that without needing a SaaS product," wrote the authors, Dimitri Mitropoulos, Matt Taylor and Samuel MacLeod [9].
Cloudflare's post says it relied on several hosted products in production and that "some have shut down entirely" [10]. The New Stack identifies Stainless as one of them [11]. Google lost the same service just as it was preparing to launch a new API [20]. "This sudden disruption highlighted that proprietary, closed-source generators create unacceptable platform risk," Google wrote [14].
Cloudflare's numbers describe Cloudflare's workload. The coordination argument carries over if your API is also spread across many repos and teams that merge on their own schedules. A single team with one spec in one repo has less of that problem. For that team the gain is mostly ownership: a generator in its own CI keeps running whatever happens to a vendor.
The production record is short. Cloudflare's API documentation and SDKs are due to move onto Forge over the coming months [3]. The first cf preview covered only a small subset of Cloudflare products, though the company said it was testing a version that spanned its whole API [6]. Cloudflare did not say how much setup a team outside the company needs before Forge produces its first SDK.
What to watch
- Whether Cloudflare's own SDKs and API documentation actually ship from Forge within the promised coming months.
- Which former Stainless customers, such as OpenAI, adopt Forge, adopt the AGPLv3 Speakeasy suite, or build their own generator.
- Whether Cloudflare documents inputs beyond OpenAPI and a setup path for teams outside the company.
Clarity's read
What the record supports and how the coverage leans. The claims behind it follow.
Reality
- Evidence60
- Adoption15
- Hype gap+20
- Incentives55
- Confidence65
Perspective Coverage
3 publishers- Builder
- Builder 58%
- Operator
- Operator 34%
- Investor
- Investor 8%
Claim ledger
Ranked by verification strength, evidence, and original report placement.
- [1]
Cloudflare announced Forge, an open source tool that takes an API definition and automatically produces SDKs, command-line tools, documentation and other interfaces.
- [2]
Forge is available under an Apache 2.0 license and can be run and modified privately without paying Cloudflare.
- [3]
Forge is early in its life but already generates the output required for the cf CLI; over the next few months it will power Cloudflare's API documentation and SDKs.
- [4]
The Stainless closure affected customers including OpenAI, Google and Cloudflare; they retained SDKs already generated but lost the shared service used to regenerate and update them as their APIs evolved.
- [5]
In April Cloudflare released a technical preview of cf, a unified command-line interface, and created a new TypeScript-based schema and generation system to keep CLI commands, configuration, bindings and other interfaces in sync with its API; Forge is the code-generation system that emerged from that work.
- [6]
The cf preview initially covered only a small subset of Cloudflare products, although the company said it was already testing a version spanning its entire API surface.
- [7]
Cloudflare's API has over 3,500 operations, and the hundreds of services that power them are written in languages including Rust, Go, TypeScript and Python.
- [8]
"One team would merge a change that inadvertently would break the generation pipeline, another team would discover this at release time"
- [9]
"We believe that building tools for APIs is a core part of the Internet, and you should be able to do that without needing a SaaS product."
- [10]
"We've tried several hosted products that attempt to solve this, and relied on some in production. None of them solved this problem for us, and some have shut down entirely."
- [11]
Stainless was one of the hosted generation products Cloudflare had relied on in production, though Cloudflare does not name it specifically.
- [12]
Anthropic acquired Stainless on May 18, after which Stainless said it would wind down its products, including the SDK generator used to keep client libraries updated as APIs changed.
- [13]
In a blog post published September 17, Google revealed it had partnered with Speakeasy to open-source Speakeasy's OpenAPI code-generation suite under an AGPLv3 license, 11 days before Cloudflare's announcement.
- [14]
"This sudden disruption highlighted that proprietary, closed-source generators create unacceptable platform risk."
- [15]
Forge runs in CI on each team's API repos, lints every change, and generates preview builds of the CLI, docs and SDKs with the change highlighted that can be installed to test.
- [16]
Cloudflare says Forge follows the same premise as Workers Previews, a full preview build for every change, applied to SDK generation at scale.
- [17]
Forge is pluggable, provides CLI, SDK and docs generators, and its transformers can be chained to generate outputs from other outputs.
- [18]
Forge can take an OpenAPI spec and generate Cap'n Web directly; Cap'n Web is Cloudflare's RPC system that lets TypeScript call a remote API as if calling a local method.
- [19]
Cloudflare's post names TanStack Query bindings, Zod or Valibot schemas and MCP servers as outputs the same generator approach can produce.
- [20]
Google said its decision was prompted by the sudden loss of its SDK-generation service after the provider was acquired and "abruptly announced its shutdown," which happened as Google was preparing to launch a new API.
Sources
3 independent publishers whose own reporting we read for this story.
- blog.cloudflare.comIntroducing Forge: the open source pipeline for generating SDKs, CLIs, docs, and more
1 article · September 28, 2026
- dev.toCloudflare's cf CLI: Agentic Design Patterns for Command-Line Tools
1 article · September 28, 2026
- thenewstack.ioAnthropic bought Stainless and shuttered its SDK generator. Cloudflare open-sourced Forge instead.
1 article · September 28, 2026
Topics and entities
Topics
- Agent-facing developer tools
- Developer tool vendor risk
- API code generation