# 使用 Homebrew 安装 openapi

查看 openapi 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:openapi
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install openapi
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:openapi
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/openapi>
- **版本:** 1.24.0
- **来源摘要:** CLI tools for working with OpenAPI, Arazzo and Overlay specifications
- **主页:** <https://www.speakeasy.com>
- **仓库:** <https://github.com/speakeasy-api/openapi>
- **上游文档:** <https://github.com/speakeasy-api/openapi#readme>
- **许可证:** MIT
- **源码归档:** <https://github.com/speakeasy-api/openapi/archive/refs/tags/v1.24.0.tar.gz>
- **最后更新:** 2026-06-22T03:57:51Z
- **已生成:** 2026-07-25T07:20:51+00:00

## 可执行文件

- openapi (cli)
- openapi (别名)

## 构建依赖

- go

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-07-25
- 管理器版本: 1.24.0
- 管理器更新时间: 2026-06-22
- 本地数据: OK
- 上游仓库: https://github.com/speakeasy-api/openapi
- 检测到的最新版本: v1.24.0 (当前)
## 项目历史与用法

Speakeasy's `openapi` package is a Go library and CLI for working with OpenAPI, Swagger 2.0, Arazzo, and OpenAPI Overlay documents. The Homebrew formula installs the `openapi` command.

### 项目历史

The repository was created on August 22, 2024. Speakeasy describes it as the OpenAPI library used directly in its products, including SDK generation and Gram, and a January 2026 engineering post introduced it as a comprehensive Go package set for OpenAPI, Swagger, Arazzo, and Overlay specification documents.

The project combines several document families under one command: OpenAPI 3.0, 3.1, and 3.2 support; Swagger 2.0 reading and upgrading; Arazzo workflow documents; and OpenAPI Overlays. That scope reflects newer OpenAPI Initiative work around workflows and overlays, not just classic endpoint descriptions.

### 采用历史

The package is young compared with OpenAPI Generator, but it has first-party adoption inside Speakeasy's product stack and is distributed as a Go module, GitHub releases, install scripts, and a Homebrew formula. The README and install guide also document direct `go install` usage for developers who want the CLI from source.

### 使用方式

The CLI groups commands under `openapi spec`, `openapi swagger`, `openapi arazzo`, and `openapi overlay`. Users validate, lint, bundle, inline, join, clean, optimize, sanitize, snip, upgrade, query, explore, apply overlays, compare specs to generate overlays, and validate Arazzo workflows.

Go developers use the packages programmatically for reading, creating, mutating, walking, validating, upgrading, linting, and overlay operations. The linter subpackage includes built-in rules for style, security, and semantic validation, with custom rules written in TypeScript or JavaScript.

### 为什么软件包爱好者会关心

The package is interesting because the `openapi` formula name maps to one vendor-maintained implementation rather than the OpenAPI standard itself. It is also a compact example of newer API-description tooling where specs, workflow descriptions, overlays, lints, and query operations are bundled into a single CLI.

### 时间线

- August 22, 2024: the GitHub repository was created. January 2026: Speakeasy's engineering blog introduced the Go OpenAPI library. June 22, 2026: GitHub releases list v1.24.0.

### Related projects

- The package is related to Speakeasy's SDK generation products, the OpenAPI Specification, Swagger 2.0, the Arazzo Specification, and OpenAPI Overlay tooling.

### 来源

- <https://api.github.com/repos/speakeasy-api/openapi>
- <https://formulae.brew.sh/formula/openapi>
- <https://github.com/speakeasy-api/openapi>
- <https://github.com/speakeasy-api/openapi/blob/main/INSTALL.md>
- <https://www.openapis.org/arazzo-specification>
- <https://www.speakeasy.com/blog/building-speakeasy-openapi-go-library>
- <https://www.speakeasy.com/openapi>


## 安全说明

没有找到 openapi 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。


## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** openapi
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable


## 相关链接

- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/zh-hans/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/zh-hans/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/zh-hans/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [go](https://www.automicvault.com/zh-hans/pkg/brew/go/) - Build dependency declared by Homebrew.
- [openapi-diff](https://www.automicvault.com/zh-hans/pkg/brew/openapi-diff/) - Shares av.db curated category or tags: api-development, cli, developer-tools, openapi.
- [openapi-generator](https://www.automicvault.com/zh-hans/pkg/brew/openapi-generator/) - Shares av.db curated category or tags: api-development, cli, developer-tools, openapi.
- [openapi-tui](https://www.automicvault.com/zh-hans/pkg/brew/openapi-tui/) - Shares av.db curated category or tags: api-development, cli, developer-tools, openapi.
- [action-validator](https://www.automicvault.com/zh-hans/pkg/brew/action-validator/) - Shares av.db curated category or tags: cli, developer-tools, validation.
- [asyncapi](https://www.automicvault.com/zh-hans/pkg/brew/asyncapi/) - Shares av.db curated category or tags: cli, developer-tools, validation.
- [autorest](https://www.automicvault.com/zh-hans/pkg/brew/autorest/) - Shares av.db curated category or tags: cli, developer-tools, openapi.
- [bpmnlint](https://www.automicvault.com/zh-hans/pkg/brew/bpmnlint/) - Shares av.db curated category or tags: cli, developer-tools, validation.
- [check-jsonschema](https://www.automicvault.com/zh-hans/pkg/brew/check-jsonschema/) - Shares av.db curated category or tags: cli, developer-tools, validation.

## Combined YAML source

View the package source record on GitHub. [combined/openapi.yml](https://github.com/automic-vault/db/blob/main/combined/openapi.yml)


## 来源

- Nucleus package database
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- cross-ecosystem install command graph
