# OpenAPI Generator

> Generates API clients, server stubs and documentation from OpenAPI 2.0 and 3.x documents

Source: https://talira.ai/catalog/openapi-generator-ypxw453r
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Command-line tool, Library
- Categories: [developer tools / api / sdk generation](https://talira.ai/categories/developer-tools/api/sdk-generation), [developer tools / code generation](https://talira.ai/categories/developer-tools/code-generation)
- Platforms: linux, macos, windows, docker, cli[^3]
- Licence: Apache-2.0[^2]
- Pricing: Free and open source[^2]
- Free tier: yes[^2]
- Self-hostable: yes[^2][^3]
- Cloud hosted: yes[^2]
- API: yes[^2]
- Plugins: yes[^4]
- Backed by: [OpenAPI Tools](https://talira.ai/orgs/openapi-tools.md)
- Funding: funded by donations[^5]
- Sponsors: Datadog, Adyen, Kong, Thales, Svix, Merge, OneSignal, DocSpring, GoDaddy, Linode, Checkly, Gradle
- Forked from [Swagger Codegen](https://talira.ai/catalog/swagger-codegen-je8h0tky.md) in 2018. Founding members felt Swagger Codegen 3.0.0 was diverging too much from the philosophy of 2.x, worried about maintaining two separate 2.x and 3.x branches, and wanted a faster release cycle and a community-owned roadmap (docs/qna.md); forked from Swagger Codegen 2.4.0-SNAPSHOT by more than 40 of its top contributors and template creators

OpenAPI Generator reads an OpenAPI 2.0 or 3.x document and generates API client libraries, server stubs, API documentation and configuration files from Mustache or Handlebars templates. It has generators for dozens of languages and frameworks, among them Ruby, Python, [TypeScript](https://talira.ai/catalog/typescript-w0asrgz8.md), Go, Java, Kotlin, C#, PHP, Rust, Swift, Dart and [Elixir](https://talira.ai/catalog/elixir-edq5dfnt.md) clients, and Spring, FastAPI, Go and ASP.NET Core server stubs. Templates can be overridden or replaced to customise the output. It is a community fork of [Swagger Codegen](https://talira.ai/catalog/swagger-codegen-je8h0tky.md), started in 2018 by more than 40 of its top contributors, and runs as a Java CLI, a Maven or Gradle plugin, a [Docker](https://talira.ai/catalog/docker-engine-9442r3nw.md) image or a self-hosted online generator.

## Links

- Website: https://openapi-generator.tech
- GitHub: https://github.com/OpenAPITools/openapi-generator
- Docs: https://openapi-generator.tech/docs/installation

## Ways to install

### Package managers

- [Homebrew](https://talira.ai/catalog/homebrew-djy17yn9.md): <https://formulae.brew.sh/formula/openapi-generator>[^1]

## Problems it solves

- generate API client libraries in ten languages from our OpenAPI spec
- maintaining hand-written SDKs for Python, Ruby and TypeScript every time the API changes is killing us
- keep our public API clients in sync with the backend automatically in CI
- turn a swagger.yaml file into a typed TypeScript fetch client
- scaffold a Spring Boot or FastAPI server from an API contract we designed first
- our Swagger Codegen setup is stuck on an old version and the project direction changed
- customise the templates of generated client code so it matches our style and naming
- generate HTML or Markdown API reference docs from an OpenAPI document
- produce model classes for every schema in our API spec instead of writing DTOs by hand
- add a Maven or Gradle build step that regenerates the API client on every build
- run a code generator in Docker without installing Java on the build machine
- ship an SDK in a language none of our engineers write, like Elixir or Dart

## Features

- API clients for dozens of languages and HTTP libraries
- server stubs (Spring, FastAPI, Flask, Gin, ASP.NET Core and others)
- documentation generators (HTML, Markdown, Asciidoc, PlantUML)
- OpenAPI 2.0 and 3.x input
- customisable Mustache/Handlebars templates
- Maven and Gradle plugins
- CLI via JAR, Homebrew, npm wrapper or pip
- Docker CLI image and self-hosted online generator service
- migration guide from Swagger Codegen

## Capabilities

- Has an API: plan not known
- Has a command line tool: plan not known
- Takes plugins: plan not known

## Trust

Overall: 0.90 out of 1.
Signals: maintenance 1.00, adoption 0.89, momentum 0.73, community 1.00, backing 0.90, extensibility 0.60.

- last commit 9 days ago
- 498 commits in the last 90 days
- latest release v7.27.0 22 days ago
- 26.9k GitHub stars
- 3953 contributors
- accepts sponsorship (Open Collective)
- backed by OpenAPI Tools
- funding: funded by donations
- sponsored by Datadog, Adyen, Kong, Thales
- used by Amazon Web Services (AWS), Adyen, Cisco, Datadog
- has a plugin system

## Alternatives

- [Swagger Codegen](https://talira.ai/catalog/swagger-codegen-je8h0tky.md): Generates API clients, server stubs and documentation from an OpenAPI or Swagger definition
- [go-swagger](https://talira.ai/catalog/go-swagger-x5s28yp6.md): Swagger 2.0 (OpenAPI 2.0) toolkit for Go: generate servers, clients, CLIs and models, or a spec from code

## Sources

[^1]: https://formulae.brew.sh/api/formula.json (checked 21 Nov 2026)
[^2]: https://github.com/OpenAPITools/openapi-generator (checked 17 Nov 2026)
[^3]: https://openapi-generator.tech/docs/installation (checked 17 Nov 2026)
[^4]: https://openapi-generator.tech/docs/customization (checked 17 Nov 2026)
[^5]: https://opencollective.com/openapi_generator (checked 20 Nov 2026)
