Tech riderRev. 4 Oct 2026
oapi-codegen
- 1Runs onLinux, self-hosted
- 2CostsFree plan
- 3Custom templatesYes
- 4Schema-to-code generationYes
- 5CLI availableYes
- 6Supported languagesGo
6 lines stated Written from the maker's own pages: github.com

Overview
oapi-codegen is ranked #17 of 33 in code generators on Specifiction. It runs on Linux, Self-hosted. There is a free plan.
oapi-codegen plans and pricing
All plansOpen source Free OpenAPI-to-Go code generation; Go 1.25+ required to build and install github.com · 4 Oct 2026
Compared on code generators
- Custom templates
- Yesgithub.com
- Schema-to-code generation
- Yesgithub.com
- CLI available
- Yesgithub.com
- Supported languages
- Gogithub.com
Facts
- Purpose
- oapi-codegen is a command-line tool and library that converts OpenAPI specifications into Go server implementations, API clients, and HTTP models.github.com · 4 Oct 2026
- OpenAPI support
- It supports OpenAPI 3.0 and 3.1, including 3.1 webhooks and nullable type forms; it does not support OpenAPI 2.0 (Swagger).github.com · 4 Oct 2026
- Server generation
- It generates server boilerplate for Chi, Echo, Echo v5, Fiber, Fiber v3, Gin, gorilla/mux, Iris, and net/http.github.com · 4 Oct 2026
- Strict server
- Strict server generation supports multiple request and response media types and status codes, form requests, automatic marshaling, and response status and content-type handling.github.com · 4 Oct 2026
- Generated clients
- Generated clients can use a custom HTTP client and can return either a raw HTTP response or parsed response data.github.com · 4 Oct 2026
- Large specifications
- The tool can split large OpenAPI specifications across multiple Go packages using import mapping or external references.github.com · 4 Oct 2026
- Customization
- Generated Go templates can be overridden, and supported OpenAPI extensions can customize generated types, names, JSON behavior, and struct tags.github.com · 4 Oct 2026
- Configuration
- The tool uses YAML configuration and provides a JSON Schema for editor suggestions; its command-line interface and configuration format are classed as stable.github.com · 4 Oct 2026
- Integrations
- It can be installed as a Go tool or binary and used with go:generate; the project also documents Renovate for updating a pinned configuration schema.github.com · 4 Oct 2026
- Requirements
- Building and installing oapi-codegen requires Go 1.25 or newer; generated code can have lower Go version requirements depending on the server backend.github.com · 4 Oct 2026
- Compatibility limits
- Only the latest minor release receives active development support, bug fixes are not backported, and some imported package internals and template overrides are described as unstable.github.com · 4 Oct 2026
- Support
- The maintainers describe support as best-efforts because they work on the project during off hours from their jobs.github.com · 4 Oct 2026
- Security
- The project links to an organizational security policy and says it may make breaking changes if needed to respond to a security vulnerability.github.com · 4 Oct 2026
Best oapi-codegen alternatives
See all 20 All accessCh 01 Nx Free planFree trialLinux from $29/mo7.7 All accessCh 02 quicktype Free planAPILinux from $19/mo7.6 All accessCh 03 SQLDelight Free planAndroidAPI Free to start7.6 All accessCh 04 Fern Free planAPILinux Free to start7.5 All accessCh 05 Stainless Free planFree trialLinux Free to start7.5 All accessCh 06 TypeSpec Free planBrowserLinux Free to start7.5
Where it ranks on Specifiction
- Best Code Generators in 2026#17 of 33
Is oapi-codegen yours?
Claim it for free: prove the domain, then correct facts, plans and screenshots. An editor reviews every change.
Sources
- github.com/oapi-codegen/oapi-codegen· checked 4 Oct 2026
- github.com/oapi-codegen/oapi-codegen/blob/main/SUP· checked 4 Oct 2026



