Speakeasy CLI
$ speakeasy Official Med RiskSpeakeasy CLI builds type-safe client SDKs, Terraform providers, CLIs, and MCP servers directly from OpenAPI specifications. Provides single-binary Go execution for speakeasy lint, speakeasy diff, speakeasy run, and speakeasy quickstart in CI/CD pipelines.
brew install speakeasy-api/tap/speakeasy speakeasy lint and speakeasy run run locally in build pipelines to validate OpenAPI specs and generate MCP servers or SDKs.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Clean Cobra Go CLI with lint, diff, run, and SPEAKEASY_API_KEY support, though lacks universal --json across commands and relies on cloud generation.
- Supports
lint,diff,run,--logLevel, andSPEAKEASY_API_KEY
lint and diff are read-only; speakeasy run executes workflow targets locally/remotely and requires Speakeasy cloud authentication for generation.
- Read-only
lint/diffvs cloud-connectedrungeneration
Single static Go binary via Homebrew and direct installer across macOS, Linux, and Windows.
- Static Go binary via
speakeasy-api/tap/speakeasy
Generates idiomatic multi-language SDKs, Terraform providers, and MCP servers from OpenAPI.
- One OpenAPI spec produces SDKs, CLIs, and MCP servers
Official speakeasy-api/speakeasy maintained by Speakeasy (AGPL-3.0 / commercial terms).
- Official
speakeasy-api/speakeasyrepository
Well-documented CLI guides and workflow.yaml schema references.
- Official docs at speakeasy.com/docs/speakeasy-cli/getting-started
Security, Auth & Guardrails
API key stored locally via speakeasy auth login or supplied via SPEAKEASY_API_KEY env var.
CLI has a free tier for small specs; commercial SDK/MCP generation and enterprise scale require paid Speakeasy plans.
# Speakeasy CLI Agent Rules - Run `speakeasy lint openapi -s <spec>` before running `speakeasy run`. - Set `SPEAKEASY_API_KEY` in CI/headless runs instead of interactive `speakeasy auth login`. - Do not publish generated SDK packages without reviewing `speakeasy diff` output.
Agent-Ready Command Recipes
Safe Read-Only Queries
speakeasy lint openapi -s openapi.yaml
Validates OpenAPI schema quality, naming, and breaking issues locally.
speakeasy diff -s old-openapi.yaml -t new-openapi.yaml
Detects breaking API changes between two OpenAPI specification files.
Controlled Writes & Previews
speakeasy run --skip-versioning
Runs local generation defined in .speakeasy/workflow.yaml without bumping package versions.
Strengths for Agents
- + Fast single Go binary with clean
lint openapianddiffstatic checks. - + Generates both SDKs and TypeScript MCP servers directly from OpenAPI.
- + Smooth CI integration via
SPEAKEASY_API_KEY.
Caveats & Pitfalls
- ! Core
generate/runworkflows require Speakeasy account/cloud connectivity and commercial tiers at scale. - ! Open-source core uses AGPL-3.0 alongside commercial licensing.