openapi-typescript
Generates TypeScript types directly from an OpenAPI description — types only, no client runtime and no generated transport code.
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.
| Standard | Role | What that means |
|---|---|---|
| OpenAPI | generates |
Produces: types |
- Interfaces
clilibrary- Install
-
npm
openapi-typescript - Invoke
npx openapi-typescript <spec.yaml> -o <schema.d.ts>- Consumes
- openapi
- Emits
- typescript
- Runtime
- Runs offline Deterministic Writes No credentials
Where it applies
Jobs this tool actually does, and the surface each one is exercised on.
Often the right choice for an agent over a full SDK generator — one file, no runtime dependency, and the diff is reviewable.
- Website
- https://openapi-ts.dev
- Repository
- https://github.com/openapi-ts/openapi-typescript
- License
- MIT — reported by the GitHub API, verified 2026-09-17
- Stars
- 8369 · last commit 2026-09-16
/tools.json,
against the tool.schema.json
schema, using the roles.json
vocabulary. Start at /llms.txt.