3 open-source alternatives ranked by real activity

Open-source Stainless alternatives

A curated, ranked list of the 3 best open-source alternatives to Stainless.

The best open-source alternative to Stainless is OpenAPI Generator. If that doesn't suit you, other good options are Scalar and Cortex Docs.

Commercial alternatives to Stainless include Speakeasy, APIMatic, Bump.sh and Redocly. See all 14.

Stainless alternatives are mainly API tools. 2 of them shipped code in the last 30 days, 3 can be self-hosted, and 3 use a permissive licence.

Last updated November 13, 2026 · ranked by GitHub stars, growth and recent commits

OpenAPI Generator

A Java-based generator that creates API client libraries, server stubs, documentation and configuration automatically from an OpenAPI specification.

GitHub stars
27k
Last commit
2 days ago
Latest release
v7.27.0
Licence
Apache-2.0
Self-hosted
Yes
openapi-generator.techOpenAPI Generator homepage screenshot

OpenAPI Generator takes an OpenAPI specification, in version 2 or 3, and produces client SDKs, server stubs, documentation and configuration automatically. Instead of hand-writing the same API wrapper in every language, teams define the API once and generate code for many languages and frameworks.

The project, written in Java and maintained by the OpenAPI Tools organization, offers a migration guide for users coming from Swagger Codegen, a wiki and FAQ, and an eBook introducing code generation for REST APIs. It carries an explicit security warning: if the spec, templates or other inputs such as options and environment variables come from an untrusted source, review them first to avoid problems like code injection. Vulnerabilities should be reported to the maintainers by email.

OpenAPI Generator is Apache-2.0 licensed and runs locally or in CI as a command line tool, Maven or Gradle plugin, or Docker image, so there is no hosted service involved. It suits API providers shipping official SDKs and developers who want type-safe clients generated from a contract.

Key features

  • Generates API client SDKs
  • Generates server stubs
  • Produces documentation and configuration
  • Supports OpenAPI v2 and v3 specs
  • Migration guide from Swagger Codegen
  • Runs from CLI, build plugins or Docker

Pricing: Free and open source under the Apache-2.0 license.

Scalar

An open-source API platform that renders interactive OpenAPI and Swagger references and includes an offline-first API client with desktop apps.

GitHub stars
16k
Last commit
today
Latest release
release-2026-11-12-7e9d6bd
Licence
MIT
Self-hosted
Yes
scalar.comScalar homepage screenshot

Scalar is an open-source API platform built around the OpenAPI standard. One part turns OpenAPI or Swagger documents into an interactive API reference with a built-in testing tool and generated code samples for many languages and frameworks, and it aims for a modern look rather than a dated one. Integrations exist for popular server frameworks, so docs can be mounted straight into an existing project.

The other part is an API client designed to work offline and built for OpenAPI. It is free and open source, treats OpenAPI and Swagger as first-class inputs, works with dozens of API frameworks such as Elysia, Hono and FastAPI, and can stay in sync with a running server through a watch mode. Environment variables, dynamic parameters and the other staples of a REST client are included. You can try it in the browser or download it for Windows, macOS or Linux.

The quickstart even offers a prompt you can hand to a coding agent to set up the reference in your project. Scalar is MIT licensed and written in TypeScript and Vue. It suits API teams that want better-looking documentation and a lighter alternative to Postman-style tools tied to their specs.

Key features

  • Interactive API reference from OpenAPI documents
  • Built-in request testing tool
  • Code samples in many languages
  • Offline-first API client for desktop
  • Watch mode that syncs with server frameworks
  • Integrations for Hono, FastAPI and Elysia

Pricing: Free plan for up to 3 APIs. Pro is $150 and Business $600 per month ($125 and $500 billed yearly); Enterprise is custom.

Read more about ScalarWebsiteGitHub#2 Stainless alternative

Cortex Docs

Generates interactive API documentation, typed SDKs, and MCP servers from OpenAPI, AsyncAPI, GraphQL, gRPC, OpenRPC, and Markdown sources.

GitHub stars
3.3k
Last commit
1 mo ago
Latest release
v0.1.36
Licence
MIT
Self-hosted
Yes
Hosted version
Available
cortexdocs.devCortex Docs homepage screenshot

Cortex turns API specifications and Markdown files into developer-facing outputs from a single project configuration. It reads sources such as OpenAPI, AsyncAPI, GraphQL, Protocol Buffers, OpenRPC, and plain Markdown, and produces interactive documentation for people, typed SDKs for applications, and an MCP server so AI agents can work with the same project context. It is released under the MIT license.

Generated SDKs cover many languages, including TypeScript, Python, Go, Java, Kotlin, Ruby, PHP, Rust, and C++, and can combine several specification files into one client. The tool supports HTTP, WebSocket, GraphQL, gRPC, and JSON-RPC clients, and builds static HTML documentation with interactive API reference pages. The MCP server includes typed tools, embedded specifications, and SDK guides.

You can try a local demo in about a minute, keep documentation in Git, and publish a free site for a public GitHub repository through the project's hosting flow. It suits API providers and developer-experience teams who want one source of truth for docs, client libraries, and agent access.

Key features

  • Interactive API reference documentation
  • Typed SDK generation for many languages
  • MCP server generated from API specs
  • Supports OpenAPI, AsyncAPI, GraphQL, gRPC, and OpenRPC
  • Combines multiple spec files in one SDK
  • Static HTML documentation output
  • Markdown content kept in Git

Pricing: Free and open source under the MIT license; free hosted documentation sites are offered for public repositories.

Commercial Stainless alternatives

Hosted, closed-source products that compete with Stainless. Showing 12 of 14.

See every Stainless alternative on its tool page

Stainless alternatives: questions

What is the best open-source alternative to Stainless?
OpenAPI Generator is the top-ranked open-source alternative to Stainless on Enlisted: A Java-based generator that creates API client libraries, server stubs, documentation and configuration automatically from an OpenAPI specification. Other strong options are Scalar and Cortex Docs.
What are the best commercial alternatives to Stainless?
Speakeasy, APIMatic, Bump.sh, Redocly and SwaggerHub are among the hosted, closed-source alternatives to Stainless listed on Enlisted, which lists 14 in total. Compare their pricing and features on each tool page.
Are these Stainless alternatives free?
All 3 are open source, so the code is free to use under its licence, and all of them can be self-hosted on your own server or computer. 1 also offers a paid or managed cloud version if you'd rather not host it yourself.
How is this list of Stainless alternatives ranked?
By a score built from GitHub stars, star growth over the last 30 days and how recently the code changed. 2 of these projects shipped code in the last 30 days. Data is refreshed daily, and nobody can pay to move up.

People also look for alternatives to…

View all