# 使用 Homebrew, Nix 安装 envchain

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

## 安装

```sh
sudo av install brew:envchain
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install envchain
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#envchain
```

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

## 软件包事实

- **软件包键:** brew:envchain
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/envchain>
- **版本:** 1.1.0
- **来源摘要:** Secure your credentials in environment variables
- **主页:** <https://github.com/sorah/envchain>
- **仓库:** <https://github.com/sorah/envchain>
- **许可证:** MIT
- **源码归档:** <https://github.com/sorah/envchain/archive/refs/tags/v1.1.0.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- envchain (cli)
- envchain (别名)

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.1.0
- 本地数据: OK
- 上游仓库: https://github.com/sorah/envchain
- 检测到的最新版本: v1.1.0 (当前)
- 信息: No package-manager update timestamp was available.
## 项目历史与用法

envchain is a security-focused CLI for storing secret environment variables in the macOS Keychain or a D-Bus Secret Service provider, then exposing them only for explicitly launched commands.

### 项目历史

The README positions envchain as a response to the common practice of putting credentials such as AWS access keys in shell initialization files. Instead of writing those secrets to `.bashrc` or `.zshrc`, envchain stores them in a secure vault under namespaced entries.

The project supports macOS Keychain and Linux Secret Service backends such as GNOME Keyring and KeePassXC. Its documented platform requirements include macOS versions from the OS X era and Linux systems with readline, libsecret, and D-Bus Secret Service support.

### 采用历史

envchain is a niche but established package-manager tool. Its README documents Homebrew installation, and Homebrew formula analytics showed hundreds of annual installs during this enrichment run. The input package facts also list Nix packaging.

### 使用方式

Users create a namespace with `envchain --set NAMESPACE ENV ...`, enter secret values interactively, and then run commands as `envchain namespace command`. The tool injects only the variables from the requested namespace into that child process.

Multiple namespaces can be combined, which supports workflows such as separating AWS credentials from chatbot or service credentials while still composing them for a particular command.

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

envchain is part of a family of small Unix secret-handling wrappers that try to make environment variables less dangerous without changing the tools that consume them. Its package value is in bridging native desktop secret stores with ordinary CLI workflows.

### 时间线

- 2010s: envchain documents OS X Keychain support and later Linux Secret Service support.
- 2010s: Homebrew installation is documented in the upstream README.
- 2020s: The tool remains packaged as a small credential wrapper for macOS and Linux.

### Related projects

- envchain relates to macOS Keychain, GNOME Keyring, KeePassXC, libsecret, and the D-Bus Secret Service specification.
- It overlaps with dotenv-style workflows, but stores values in platform secret stores rather than in project files.

### 来源

- <https://github.com/sorah/envchain/blob/master/README.md>
- <https://formulae.brew.sh/formula/envchain>


## 安全说明

narrow executable package without higher-risk signals.

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

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** envchain
- **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

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

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


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [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.
- [Security and crypto packages](https://pkg.so/zh-hans/security-crypto-tools/) - Matched security, identity, cryptography, password, signing, or certificate metadata.
- [doppler](https://pkg.so/zh-hans/brew/doppler/) - Shares pkgdb curated category or tags: cli, environment-variables, secrets-management, security.
- [credstash](https://pkg.so/zh-hans/brew/credstash/) - Shares pkgdb curated category or tags: cli, credentials, secrets-management, security.
- [envio](https://pkg.so/zh-hans/brew/envio/) - Shares pkgdb curated category or tags: cli, environment-variables, secrets-management, security.
- [libsecret](https://pkg.so/zh-hans/brew/libsecret/) - Shares pkgdb curated category or tags: cli, credentials, secret-service, security.
- [aws-vault](https://pkg.so/zh-hans/brew/aws-vault/) - Shares pkgdb curated category or tags: cli, credentials, keychain, security.
- [openbao](https://pkg.so/zh-hans/brew/openbao/) - Shares pkgdb curated category or tags: cli, secrets-management, security.
- [secretspec](https://pkg.so/zh-hans/brew/secretspec/) - Shares pkgdb curated category or tags: cli, secrets-management, security.
- [ksops](https://pkg.so/zh-hans/brew/ksops/) - Shares pkgdb curated category or tags: cli, secrets-management, security.
- [ripsecrets](https://pkg.so/zh-hans/brew/ripsecrets/) - Security-sensitive metadata or terminology overlaps. Shared terms: cli, management, secret, secrets, secrets-management.

## Combined YAML source

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