How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

oapi-codegen

Radar: Initial Apache-2.0

Generates idiomatic Go server boilerplate and clients from an OpenAPI description, wiring into the common Go HTTP routers.

OpenAPI

Specifications it implements

What this tool does to each specification, in the role vocabulary. Follow a standard through to standards.apievangelist.com for what it actually specifies.

StandardRoleWhat that means
OpenAPI generates Produces: server-stub, client
Using this from an agent
Interfaces
clilibrary
Install
go github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen
Invoke
oapi-codegen -generate types,client -package <pkg> <spec.yaml> > <client.gen.go>
Consumes
openapi
Emits
go
Runtime
Runs offline Deterministic Writes No credentials

Where it applies

Jobs this tool actually does, and the surface each one is exercised on.

Generate a Go client or server that reads like hand-written Go rather than generated code.
coding-agent
Keep generated types in sync with a contract via `go generate` in CI.
ci-pipeline
Website
https://github.com/oapi-codegen/oapi-codegen
Repository
https://github.com/oapi-codegen/oapi-codegen
License
Apache-2.0 — reported by the GitHub API, verified 2026-08-11
Stars
8509 · last commit 2026-08-10
Reading this as an agent? Don't scrape the page — this entry is published as structured data at /tools.json, against the tool.schema.json schema, using the roles.json vocabulary. Start at /llms.txt.
arrow_back All tools by adoption