OpenAPI 3.x in, collections out
JSON or YAML specs are normalized into one intermediate model, then emitted in the target client’s native format. No spec rewriting, no SaaS.
api is a Rust CLI that converts OpenAPI 3.x documents into ready-to-import collections for Postman, Bruno, Insomnia, Hoppscotch, REST Client, Thunder Client, Yaak, Hurl, Kreya and curl — folders, parameters, bodies and auth included. One binary, no cloud, no accounts.
cargo install --git https://github.com/hieudoanm/api api-cliapi convert openapi.yaml --format all --out ./collections✓ postman → acme.postman_collection.json✓ bruno → bruno/✓ insomnia → acme.insomnia.json✓ hoppscotch → acme.hoppscotch.json✓ rest-client → acme.http✓ thunder-client → thunder-collection_acme.json✓ yaak → yaak/✓ hurl → hurl/✓ kreya → acme/✓ curl → acme.shcode acme.http # REST Client extension — send awayapi-core parses the OpenAPI document once into a normalized model — folders, requests, parameters, bodies, auth — and each emitter renders it in a client's native format.
JSON or YAML specs are normalized into one intermediate model, then emitted in the target client’s native format. No spec rewriting, no SaaS.
Postman, Bruno, Insomnia, Hoppscotch, REST Client, Thunder Client, Yaak, Hurl, Kreya and curl — or all of them in a single run with --format all.
Bearer, Basic, API key, OAuth2 and OpenID Connect security schemes become each client’s native auth — with {{placeholders}} for secrets.
OpenAPI tags organize requests into folders exactly like the spec author intended — no flat walls of endpoints.
Path, query and header parameters plus JSON, form, multipart and raw bodies — content types preserved per media type.
api-core does the conversion, api-cli is a thin clap binary on top. Small, fast, auditable — cargo install and go.
Regenerate collections on every spec change and commit the diff — REST Client and Bruno output are plain text that reviews cleanly.
Your spec never leaves the machine. No accounts, no telemetry, no cloud conversion service — just a file in, files out.
api-core is a normal Rust crate — embed conversion in your own tooling, generators or doc pipelines, not just the CLI.
One spec, ten destinations — pick the client, or emit them all and let each teammate choose.
acme.postman_collection.jsonCollection v2.1 — import via Postman → Import → File.
bruno/ (bruno.json + *.bru)Plain-text .bru files — git-friendly, offline-first.
acme.insomnia.jsonInsomnia v4 export — workspace, groups and requests.
acme.hoppscotch.jsonHoppscotch collection JSON — import from the app.
acme.http.http blocks for the REST Client VS Code / JetBrains extension.
thunder-collection_acme.jsonThunder Client export JSON — import into the VS Code extension.
yaak/ (workspace.yaml + *.yaml)YAML files in Yaak’s directory-sync format — open as a workspace.
hurl/ (*.hurl per request)One .hurl file per request — run with hurl --test or commit to git.
acme/ (*.krproj project)Kreya project directory — .krop operations plus body files.
acme.shExecutable bash script of curl commands — zero dependencies.
--format all
Emit every format in one run.
File names and schemas per format are documented in Output formats.
Prebuilt binaries on the releases page, or build from source with Cargo.
git clone https://github.com/hieudoanm/apicd apicargo build --release -p api-cli./target/release/api --versionapi 0.0.1api convert petstore.yamlapi convert petstore.yaml --format postman --name "Swagger Petstore"✓ Wrote swagger-petstore.postman_collection.jsonapi convert petstore.json --format rest-client --base-url https://petstore3.swagger.io/api/v3✓ Wrote petstore.httpFull docs at /docs. Specs are read locally — nothing is uploaded anywhere.