AutoRest generates client libraries from REST APIs described with the OpenAPI Specification. Output covers C#, Go, Java, Python, TypeScript, and others.
Overview
AutoRest is a code generation tool that reads an OpenAPI (formerly Swagger) description of a REST API and emits client libraries for multiple languages. Language packs in the ecosystem include C#, PowerShell, Go, Java, Python, Swift, and TypeScript, backed by shared modeling and configuration packages.
Teams run AutoRest from the command line or through its Node-based toolchain when building SDKs that stay aligned with a published API contract. Microsoft maintains the project alongside Azure-focused OpenAPI utilities, with documentation grouped by general usage and per-language generator notes.
The project is in deprecation: active feature development has stopped, with a published retirement date, and TypeSpec is named as the recommended successor platform for new API description and codegen work. Existing generators remain usable until that retirement for teams still on OpenAPI-driven client generation.
Key features
- OpenAPI-driven client library generation
- C#, Go, Java, Python, TypeScript generators
- PowerShell and Swift language packs
- Shared OpenAPI modeling components
- Per-language generator documentation
- Node-based AutoRest core toolchain
Use cases
- Generating typed REST clients from OpenAPI specs
- Keeping SDKs synchronized with API definitions
- Multi-language clients for the same OpenAPI document
- Azure service client codegen workflows