Generate Production-Ready.NET SDKs

From OpenAPI specs to fully typed, AOT-compatible C# clients in seconds. Roslyn source generators, trimming support, and NativeAOT ready.

$ dotnet tool install --global autosdk.cli --prerelease
$ autosdk init MyApi ApiClient https://api.example.com/openapi.json tryAGI
$ cd MyApi && ./src/libs/MyApi/generate.sh
$ dotnet build MyApi.slnx
$ dotnet pack -c Release # Ready to publish!

Powering 50+ NuGet packages in the tryAGI ecosystem

OpenAIAnthropicGoogle GeminiMistralOllamaElevenLabsReplicateHuggingFace+ 40 more

Everything you need for production SDKs

AutoSDK generates complete, well-typed clients — not boilerplate.

Roslyn Source Generators

Compile-time code generation with incremental generators. No runtime reflection, no build tools — just add a NuGet package.

AOT & Trimming Ready

Source-generated JSON serialization via JsonSerializerContext. Works with NativeAOT, trimming, and single-file publishing.

Strong Typing

Full nullable reference types, enums from OpenAPI x-extensions, discriminated unions from oneOf/anyOf schemas.

NuGet Ready

Generated SDKs include XML docs, strong naming, MinVer versioning, and CI/CD workflows — ready to publish.

MEAI Integration

Microsoft.Extensions.AI interfaces (IChatClient, IEmbeddingGenerator) for seamless .NET AI ecosystem integration.

CLI & CI/CD

autosdk generate from the CLI or via CI workflows. Auto-update specs every 3 hours with GitHub Actions.

Ready to generate your SDK?

Free for open source and small businesses. Professional and Enterprise licenses for larger teams.