oryva¶
oryva turns an OpenAPI spec into SDKs in nine languages and an MCP server for Claude. When the spec changes, it regenerates every one of them.
An API now needs a package for each language its users write, and a connector their agents can call. Each of those is a copy of the API. Kept by hand, the copies drift: a parameter added to the API reaches one SDK and not the others. Stainless, the best-known generator, shut its hosted product in May 2026, and its customers can no longer regenerate their SDKs.
oryva is one binary. Run it on your machine or in CI, and commit what it writes like any other code.
Spec in, SDKs out¶
Start from your spec. This one describes a small billing API:
openapi: 3.1.0
info:
title: Ledger API
version: "2026-10-01"
paths:
/customers:
post:
tags: [customers]
operationId: customers_create
# request body and responses
/invoices:
get:
tags: [invoices]
operationId: invoices_list
# parameters and responses
Generate:
oryva generate openapi.yaml
Python SDK: 26 files in out/ledger/python
MCP server: 7 files in out/ledger/mcp
TypeScript SDK: 26 files in out/ledger/typescript
C# SDK: 57 files in out/ledger/csharp
Go SDK: 23 files in out/ledger/go
Rust SDK: 26 files in out/ledger/rust
Java SDK: 71 files in out/ledger/java
Kotlin SDK: 48 files in out/ledger/kotlin
Ruby SDK: 23 files in out/ledger/ruby
PHP SDK: 60 files in out/ledger/php
Then call your API. In Python:
from ledger import Ledger
client = Ledger() # reads LEDGER_API_KEY
customer = client.customers.create(name="Ada Lovelace", email="ada@example.com")
print(customer.id)
for invoice in client.invoices.list(status="open"): # fetches every page
print(invoice.id, invoice.total)
In TypeScript:
import Ledger from 'ledger';
const client = new Ledger(); // reads LEDGER_API_KEY
const customer = await client.customers.create({ name: 'Ada Lovelace', email: 'ada@example.com' });
console.log(customer.id);
for await (const invoice of client.invoices.list({ status: 'open' })) {
console.log(invoice.id, invoice.total);
}
Both clients retry rate-limited requests, raise a typed error for each kind of failure, and walk the pages for you. The other seven SDKs do the same in their own idioms. Each one is a package you can publish as it is, and its tests run every example in its README.
On real APIs¶
Stripe: 604 tools become 3. As one MCP tool per method, Stripe's API would hand an agent 604
tools and more than 800,000 tokens of definitions before it did any work. oryva's server for
Stripe offers three tools, search, describe and call, in under 400 tokens. Together they
still reach every method.
Stripe's full spec compiles in all nine languages. Its 612 operations come out as SDKs that
pass mypy, tsc, go vet, cargo check, dotnet build and Gradle, and as Ruby and PHP packages
that load cleanly. A weekly stress test runs the same checks on 11 more large public specs, among
them GitHub, OpenAI and Twilio.
OpenAI: 255 of 320 methods unchanged. oryva import stainless and oryva generate rebuilt
OpenAI's last Stainless-generated Python SDK. Of its 320 methods, 255 keep the same path, name and
arguments, so code that calls them runs unchanged. Half the breaks that remain are in helpers
OpenAI wrote by hand, such as parse and poll. The full results
cover TypeScript, Go, Java, Kotlin and C# too.
Quickstart¶
You need macOS or Linux, Python 3.10 or later, and ruff on PATH.
On an Apple silicon Mac, install oryva with:
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/
Getting started has the targets for Intel Macs and Linux.
Generate from your spec and run the Python SDK's tests. They call a mock, so they need no network
and no credentials. Put your API's name in place of ledger:
oryva generate openapi.yaml
cd out/ledger/python
python3 -m venv .venv && . .venv/bin/activate
pip install -e . pytest
pytest
oryva is free for the Python and TypeScript SDKs and the MCP server, on APIs of up to 50 operations. An oryva key unlocks the other seven languages, larger APIs, hosted mode, the Slack app and the Stainless tools. Email contact@hopline.co for one.
Where to go next¶
- Ship the SDKs: push a tag and each one publishes itself to its registry.
- Keep them current: regenerate in CI on every spec change, with the version bumped and the changelog written.
- Let Claude call your API: run the MCP server on your machine, or host it so each person signs in with their own account.
- Bring it into Slack: the Slack app sends each person a daily digest with a button on each item that deals with it.
- Leave Stainless: import your config and see which methods your users' code can still call unchanged.