# 使用 Homebrew, MacPorts, Nix 安装 openspec

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

## 安装

```sh
sudo av install brew:openspec
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install openspec
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install openspec
```

  证据: MacPorts ports tree: llm/openspec/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#openspec
```

  证据: nixpkgs package indexes: pkgs/by-name/op/openspec/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:openspec
- **软件包管理器:** Homebrew
- **版本:** 1.7.0
- **来源摘要:** Spec-driven development (SDD) for AI coding assistants
- **主页:** <https://openspec.dev/>
- **最后更新:** 2026-07-30T03:56:01Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- openspec (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.7.0
## 项目历史与用法

OpenSpec is a TypeScript/Node CLI for spec-driven development with AI coding assistants. It creates repository-local proposal, design, task, and spec artifacts so humans and coding agents can agree on intent before implementation.

### 项目历史

The project emerged with the wave of agentic coding tools, where chat-only requirements often disappear between sessions. Its README frames OpenSpec as a lightweight spec layer for AI coding assistants: changes get their own folders, requirements become editable artifacts, and slash commands drive planning and implementation through existing assistants.

OpenSpec's public repository and documentation emphasize portability over a single hosted service. The package installs through npm or Homebrew, runs without API keys or an MCP server, and generates command profiles for many coding tools.

### 采用历史

OpenSpec's adoption signals are strongest in developer-tool channels: the GitHub repository advertises tens of thousands of stars, Homebrew packages it as `openspec`, and the project site lists native support for tools such as Claude Code, Cursor, Codex, GitHub Copilot, OpenCode, Windsurf, Gemini CLI, and others.

Because the project is young and its history is mostly described by its own repository, the durable adoption story is still forming. The meaningful package-manager fact is that Homebrew and npm make the same workflow available as a normal CLI rather than only as copied prompt files.

### 使用方式

Developers install `openspec`, initialize it in a repository, and then use assistant slash commands such as proposal, apply, explore, and archive flows. A typical change leaves behind `proposal.md`, `design.md`, `tasks.md`, and spec deltas under an `openspec/changes/` directory, then archives accepted changes back into the maintained specs.

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

OpenSpec is package-nerd interesting because it packages process as code. Instead of shipping a library API, it ships a repo convention, generated assistant instructions, schemas, and CLI maintenance commands that make AI planning artifacts versionable and reviewable.

### 时间线

- 2025-2026: OpenSpec's public materials describe a spec-driven workflow aimed at AI coding assistants and brownfield codebases.
- 2026: Homebrew packages OpenSpec 1.5.0, and the GitHub releases page lists v1.5.0 as a June 28, 2026 release.

### Related projects

- OpenSpec compares itself with GitHub Spec Kit and Kiro, positioning itself as lighter-weight than phase-gated spec frameworks and more portable than IDE-bound planning products.

### 来源

- <https://formulae.brew.sh/formula/openspec>
- <https://github.com/Fission-AI/OpenSpec>
- <https://github.com/Fission-AI/OpenSpec/releases>
- <https://openspec.dev/>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 其他软件包管理器记录

- Nix - openspec: normalized package name match | nixpkgs package indexes: pkgs/by-name/op/openspec/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - openspec: normalized package name match | MacPorts ports tree: llm/openspec/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/openspec.yml](https://github.com/mxcl/pkgdb/blob/main/combined/openspec.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
