Compare
openapi-cli-gen vs the market
How it stacks up against Stainless, specli, restish, and OpenAPI Generator when the goal is a useful CLI from an OpenAPI spec.
| Feature | openapi-cli-gen | Stainless | specli | restish | OpenAPI Generator |
|---|---|---|---|---|---|
| Primary job | Typed Python CLI | Commercial SDK + CLI platform | Python CLI generator | Universal API client | SDK/server generator |
| OpenAPI 3.x input | ✓ 3.0 / 3.1 | ✓ | ✓ 3.0 / 3.1 | ✓ 3.0 / 3.1 | ✓ |
| Distributable per-API CLI | ✓ pip-installable package | ✓ Go SDK wrapper | ✓ build / binary | Runtime client | SDKs, not endpoint CLIs |
| Run without codegen | ✓ run mode |
No | ✓ profile mode | ✓ | No |
| Nested request bodies as flags | ✓ deep dot-flags | JSON/YAML for deep structures | Spec-derived flags | Structured shorthand | Client models |
| Python-native output | ✓ Typer + Pydantic | Go CLI wrapper | ✓ Typer | Go binary | Python SDK target |
| Auth from security schemes | ✓ env + flags | ✓ SDK auth config | ✓ auth plugins | ✓ profiles | Template-specific |
| Plug into an existing Python CLI | ✓ command group API | No | Generated project | No | No |
| Open source | ✓ MIT | Commercial platform | ✓ MIT | ✓ MIT | ✓ |
| Best fit | Ship a Python CLI fast | Enterprise SDK programs | CLI + LLM help polish | One client for many APIs | Broad SDK generation |
Based on public docs and package pages checked May 26, 2026. Market details can change; see the source notes beside this asset.