Skip to content

Getting started

You bring an OpenAPI spec. You leave with Python and TypeScript SDKs whose tests pass, an MCP server, and an oryva.yml that makes every later run write the same packages. The examples use an API named ledger; yours keeps its own name.

What you need

  • macOS or Linux, on x86-64 or arm64.
  • ruff on PATH. oryva formats the Python it writes with ruff; pipx install ruff installs it.
  • An OpenAPI 3.0 or 3.1 spec, in YAML or JSON.
  • Python 3.10 or later and Node.js 18 or later, to try the SDKs.

Install oryva

Pick the target for your machine:

Platform target
macOS, Apple silicon aarch64-apple-darwin
macOS, Intel x86_64-apple-darwin
Linux, x86-64 x86_64-unknown-linux-gnu
Linux, arm64 aarch64-unknown-linux-gnu

Then download the archive, check it against its .sha256 file, and install the binary:

target=aarch64-apple-darwin
base=https://github.com/Hopline-AI/oryva-releases/releases/latest/download
curl -fsSLO "$base/oryva-$target.tar.gz" -fsSLO "$base/oryva-$target.tar.gz.sha256"
shasum -a 256 -c "oryva-$target.tar.gz.sha256"
tar xzf "oryva-$target.tar.gz"
sudo install "oryva-$target/oryva" /usr/local/bin/
oryva --help

Every release is listed at Hopline-AI/oryva-releases. If you download an archive in a browser on macOS, clear its quarantine flag before you install it: xattr -d com.apple.quarantine oryva-$target/oryva.

Generate your first SDKs

oryva generate openapi.yaml
note: skipped the C# SDK, Go SDK, Rust SDK, Java SDK, Kotlin SDK, Ruby SDK and PHP SDK, which need an oryva key (contact@hopline.co)
Python SDK: 26 files in out/ledger/python
MCP server: 7 files in out/ledger/mcp
TypeScript SDK: 26 files in out/ledger/typescript

Everything lands in out/<api name>/; --out picks another directory. oryva takes the name from x-oryva-name in the spec's info, or else from the first word of the title.

Without a key you get the two SDKs above and the MCP server. With an oryva key, the same command writes all nine SDKs.

Try the SDKs

Every SDK has a README with an example for each method, and one test per example. The tests run against a mock, so they need no network and no credentials.

Run the Python SDK's tests:

cd out/ledger/python
python3 -m venv .venv && . .venv/bin/activate
pip install -e . pytest
pytest

And the TypeScript SDK's:

cd out/ledger/typescript
npm install
npm test

To let Claude call your API, continue with the Claude connector.

Add oryva.yml

So far oryva has picked every name itself. An oryva.yml next to your spec pins the package names, the version and where each SDK goes:

spec: openapi.yaml
version: 1.0.0
license: Apache-2.0
repository: https://github.com/acme/ledger-sdks
authors: [Acme]
targets:
  python: { out: sdks/python, dist: acme-ledger }
  typescript: { out: sdks/typescript, package: "@acme/ledger" }
  mcp: { out: sdks/mcp }

targets lists what to generate, and oryva skips everything else. Here the Python package goes to PyPI as acme-ledger and the TypeScript one to npm as @acme/ledger.

version is the SDKs' first version. Later runs bump it from what changed in the spec.

license, repository and authors go into every package's metadata. oryva never invents them, and some registries refuse a package that lacks them.

Run oryva generate with no arguments and it reads ./oryva.yml:

oryva generate
Python SDK: 26 files in sdks/python
MCP server: 7 files in sdks/mcp
TypeScript SDK: 26 files in sdks/typescript

Commit oryva.yml and everything under sdks/, including each target's .oryva/ directory. .oryva/ records the files oryva wrote and the API model it used, which is how the next run knows what changed. Run it again on the same spec:

oryva generate
Python SDK: 26 files in sdks/python
MCP server: 7 files in sdks/mcp
TypeScript SDK: 26 files in sdks/typescript
No API changes since the last run.

The oryva.yml reference lists every field.

Next steps