What it is#
sdkgen is the second half of the toolchain. It does not read your OpenAPI spec: apidef does that, and hands sdkgen a model of entities, operations, fields and flows. sdkgen turns that model into code.
The unit of output is a target, and 23 of them are language SDKs. Twenty are bundled with the generator: TypeScript, JavaScript, Go, Python, PHP, Ruby, Lua, C#, Java, Kotlin, Scala, Swift, Rust, C, C++, Zig, Perl, Clojure, Elixir and OCaml. Dart, Haskell and Lean arrive together in a language pack, @voxgig/sdkgen-langpack, which is how further targets arrive rather than as changes to the generator.
Three further bundled targets are consumer targets: they wrap a language SDK rather than call the API themselves. go-cli and go-mcp wrap the Go SDK to produce a command-line tool and an MCP server. py-data wraps the Python SDK for analysts. A fourth, seneca-provider, wraps the TypeScript SDK as a Seneca plugin and comes from @voxgig/sdkgen-infrapack, which also carries the design for a Terraform provider, with no implementation behind it. This is why one spec yields a CLI and an agent-callable server without anyone writing either.
Every target is generated from the same model through the same pipeline, so behavior does not fork by language. A retry policy means the same thing in Rust as in Ruby because both were generated from one description of it, not written twice.
The generated code is yours, and every regeneration writes it again from the model. generate overwrites the files in the target folders, so a hand edit in ts/ or go/ is gone on the next run. Fix a bug in the model, a template, or a component instead. Those are the project's own copies under .sdk/, and when an add or a package update brings in a later version of one, it is three-way merged into your change by default. Two model files are yours to edit and are never overwritten: .sdk/model/project.aontu, created once, and the guide, .sdk/model/guide/guide.aontu.