# oapi-codegen

Go code generator that turns OpenAPI 3.0 and 3.1 specifications into server boilerplate, API clients and models.


Source: https://findsoftware.frbit.cloud/oapi-codegen/
Last reviewed: 2026-11-16
Listed since: 2026-11-16

## Record

### Links

- repository: https://github.com/oapi-codegen/oapi-codegen
- docs: https://github.com/oapi-codegen/oapi-codegen/blob/v2.8.2/docs/configuration.md

### Identity

- status: active
- maintainer: oapi-codegen
- maintainerType: unknown
- parent: unknown
- firstRelease: 2019
- hqCountry: unknown

### Kind

- category: dev-tool, backend
- hosting: binary
- language: go
- runtime: binary
- runtimeMin: unknown
- basedOn: unknown

### Content

- contentStore: unknown
- databases: unknown
- adminUi: unknown
- headlessApi: unknown
- templating: unknown
- i18n: unknown

### Rendering and deploy

- runsAs: unknown
- renderingModes: unknown
- installMethod: go, go get -tool

### License

- licenseModel: open-source
- license: Apache-2.0

### Releases

- currentMajor: 2
- latestReleaseDate: 2026-10-31

### Adoption

- githubStargazers: 8667
- packagistDownloads: not applicable
- npmWeeklyDownloads: not applicable
- contributors: 291
- pluginCount: unknown
- packagistMonthlyDownloads: unknown
- ecosystemsMonthlyDownloads: unknown
- httpArchiveSites: unknown
- wordpressActiveInstalls: unknown
- dependentRepos: unknown
- dependentPackages: unknown

### Sources

- urls: https://api.github.com/repos/oapi-codegen/oapi-codegen (read 2026-11-16)
- urls: https://github.com/oapi-codegen/oapi-codegen/blob/v2.8.2/README.md (read 2026-11-16)
- category: https://github.com/oapi-codegen/oapi-codegen/blob/v2.8.2/README.md (read 2026-11-16)
- language: https://api.github.com/repos/oapi-codegen/oapi-codegen (read 2026-11-16)
- runtime: https://github.com/oapi-codegen/oapi-codegen/blob/v2.8.2/README.md (read 2026-11-16)
- installMethod: https://github.com/oapi-codegen/oapi-codegen/blob/v2.8.2/README.md (read 2026-11-16)
- installMethod: https://github.com/oapi-codegen/oapi-codegen/blob/v2.8.2/README.md (read 2026-11-16)
- maintainer: https://github.com/oapi-codegen/oapi-codegen/blob/v2.8.2/README.md (read 2026-11-16)
- firstRelease: https://api.github.com/repos/oapi-codegen/oapi-codegen/commits/v1.0.0 (read 2026-11-16)
- license: https://api.github.com/repos/oapi-codegen/oapi-codegen (read 2026-11-16)
- licenseModel: https://github.com/oapi-codegen/oapi-codegen/blob/main/LICENSE (read 2026-11-16)
- currentMajor: https://api.github.com/repos/oapi-codegen/oapi-codegen/releases (read 2026-11-16)
- latestReleaseDate: https://api.github.com/repos/oapi-codegen/oapi-codegen/releases (read 2026-11-16)
- githubStargazers: https://api.github.com/repos/oapi-codegen/oapi-codegen (read 2026-11-16)
- contributors: https://api.github.com/repos/oapi-codegen/oapi-codegen/contributors?per_page=1 (read 2026-11-16)

## Notes

oapi-codegen is a command-line tool and library that converts OpenAPI 3.0 and 3.1 specifications into Go code. It generates server boilerplate for Go HTTP routers, API clients and model types, and its server output targets Chi, Echo, Echo v5, Fiber, Fiber v3, Gin, gorilla/mux, Iris and the standard net/http package.

The tool is installed with the Go toolchain, either as a binary or as a `go tool` dependency of the project that uses it. The source is in the oapi-codegen organization on GitHub, and the project has no website of its own beyond the repository.

## Worth knowing

The tool and the generated code have different Go requirements, and the generated code's minimum depends on the server target.

---

Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Attributes are recorded, never scored; absent means unknown.
Credit, in full: FindSoftware, CC BY 4.0
