# 使用 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
- **软件包管理器页面:** <https://formulae.brew.sh/formula/ctx7>
- **版本:** 0.5.7
- **来源摘要:** Manage AI coding skills and documentation context
- **主页:** <https://context7.com>
- **上游文档:** <https://context7.com>
- **许可证:** MIT
- **源码归档:** <https://registry.npmjs.org/ctx7/-/ctx7-0.5.7.tgz>
- **最后更新:** 2026-07-31T09:30:39Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- ctx7 (cli)
- ctx7 (别名)

## 依赖

- node

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 all

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.5.7
- 管理器更新时间: 2026-07-31
- 本地数据: OK
- 上游仓库: https://context7.com
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

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。软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。


## 源数据库详情

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

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

- 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


## 相关链接

- [MCP tool packages](https://pkg.so/zh-hans/mcp-tools/) - Mentions MCP or Model Context Protocol.
- [AI and agent packages](https://pkg.so/zh-hans/ai-agent-tools/) - Matched AI model, agent, coding-agent, orchestration, or MCP metadata.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [node](https://pkg.so/zh-hans/brew/node/) - Runtime dependency declared by Homebrew.
- [context7-mcp](https://pkg.so/zh-hans/brew/context7-mcp/) - Shares the same upstream homepage.
- [splitrail](https://pkg.so/zh-hans/brew/splitrail/) - Shares pkgdb curated category or tags: ai, ai-coding, cli, coding-agents, mcp.
- [rtk](https://pkg.so/zh-hans/brew/rtk/) - Shares pkgdb curated category or tags: ai, ai-coding, cli, coding-agents.
- [specify](https://pkg.so/zh-hans/brew/specify/) - Shares pkgdb curated category or tags: ai, ai-coding, cli, coding-agents.
- [skillshare](https://pkg.so/zh-hans/brew/skillshare/) - Shares pkgdb curated category or tags: ai, cli, coding-agents, skills.
- [codeburn](https://pkg.so/zh-hans/brew/codeburn/) - Shares pkgdb curated category or tags: ai, ai-coding, cli, coding-agents.
- [codex-acp](https://pkg.so/zh-hans/brew/codex-acp/) - Shares pkgdb curated category or tags: ai, ai-coding, cli, coding-agents.
- [code2prompt](https://pkg.so/zh-hans/brew/code2prompt/) - Shares pkgdb curated category or tags: ai, cli, coding-agents, mcp.
- [claude-code-templates](https://pkg.so/zh-hans/brew/claude-code-templates/) - Shares pkgdb curated category or tags: ai, cli, coding-agents, mcp.
- [ctx7](https://pkg.so/zh-hans/npm/ctx7/) - Same normalized package name appears in another local ecosystem. Shared terms: ai, cli, context, ctx7, documentation.
- [happy-coder](https://pkg.so/zh-hans/brew/happy-coder/) - Both packages touch the same language runtime or ecosystem. Shared terms: agents, ai, ai-coding, cli, coding.
- [ctx7](https://pkg.so/zh-hans/npm/ctx7/) - Same normalized package name in another local ecosystem.

## 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
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
