# 使用 Homebrew, Nix 安装 ctx7

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

## 安装

```sh
sudo av install brew:ctx7
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install ctx7
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#ctx7
```

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

## 软件包事实

- **软件包键:** brew:ctx7
- **软件包管理器:** Homebrew
- **版本:** 0.5.7
- **来源摘要:** Manage AI coding skills and documentation context
- **主页:** <https://context7.com>
- **最后更新:** 2026-07-31T09:30:39Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- ctx7 (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

ctx7 is the command-line interface for Context7, an Upstash project that supplies current, version-specific library documentation to AI coding assistants.

### 项目历史

Context7's public repository was created in 2025 under the Upstash organization. The official docs position the platform around reducing stale or hallucinated library API answers by injecting current documentation into prompts and agent workflows.

### 采用历史

The CLI documentation targets AI coding users who want terminal access to indexed library docs and one-command setup for tools such as Claude Code, Cursor, OpenCode, and MCP-compatible agents.

### 使用方式

ctx7 is used both interactively, for commands such as resolving a library and querying docs, and as a setup helper that writes MCP or skill configuration for coding agents.

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

As a Homebrew formula, ctx7 packages a fast-moving AI developer-tool CLI outside the Node-only install path, making Context7 setup scriptable for users who prefer system package managers.

### 时间线

- 2025: Public upstash/context7 repository created.
- 2025: Official Context7 CLI docs describe terminal documentation queries and coding-agent setup.

### Related projects

- Context7 MCP server, Upstash, Model Context Protocol, AI coding assistants.

### 来源

- <https://context7.com/docs>
- <https://context7.com/docs/clients/cli>
- <https://github.com/upstash/context7>
- <https://api.github.com/repos/upstash/context7>


## 安全说明

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


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

- Nix - ctx7: normalized package name match | nixpkgs package indexes: pkgs/by-name/ct/ctx7/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/ctx7.yml](https://github.com/mxcl/pkgdb/blob/main/combined/ctx7.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
