# 使用 Homebrew, Nix 安装 btcli

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

## 安装

```sh
sudo av install brew:btcli
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install btcli
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#btcli
```

  证据: nixpkgs package indexes: btcli from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

## 软件包事实

- **软件包键:** brew:btcli
- **软件包管理器:** Homebrew
- **版本:** 9.23.2
- **来源摘要:** Bittensor command-line tool
- **主页:** <https://docs.learnbittensor.org/btcli>
- **最后更新:** 2026-07-19T18:46:05+09:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- btcli (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

btcli is the command-line client for the Bittensor network. It packages wallet, subnet, staking, delegation, governance, and node-management workflows into a terminal tool distributed through PyPI, Homebrew, and source installs.

### 项目历史

The standalone opentensor/btcli repository began with public commits in July 2024 and an MIT-licensed README for the Bittensor CLI. Its first listed tag in the local git history is v8.0.0 in September 2024.

The README frames btcli as a tool for common Bittensor operations: creating wallets, registering subnets or neurons, delegating TAO, viewing Senate proposals, and voting.

### 采用历史

btcli adoption follows Bittensor ecosystem adoption rather than classic Unix utility adoption. The official README documents installation from PyPI, Homebrew, and source, plus use with the broader bittensor SDK through the bittensor[cli] extra.

The Homebrew formula gives macOS users a package-manager path alongside Python packaging, which matters because the README recommends Homebrew-installed Python/OpenSSL on macOS.

### 使用方式

Users run btcli to manage Bittensor wallets, chain configuration, subnet and neuron registration, staking and delegation, and governance voting. The tool reads common defaults from ~/.bittensor/config.yml, stores wallet material under ~/.bittensor/wallets, and supports command-level help with --help.

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

btcli is interesting as a blockchain-network CLI crossing Python packaging and Homebrew. It is young compared with the other tools in this batch, but it shows how Web3 and AI-network projects ship operational CLIs into general-purpose package managers for developer onboarding.

### 时间线

- 2024: Public git history for opentensor/btcli starts with README and Typer-related commits.
- 2024: v8.0.0 appears as an early standalone btcli tag.
- 2026: The repository history shows v9.23.1, indicating active release cadence.

### Related projects

- The README links btcli to the Bittensor SDK repository, the btwallet repository, and the Bittensor whitepaper.
- The bittensor[cli] Python extra is documented as a way to install btcli alongside the SDK.

### 来源

- Local git history from https://github.com/opentensor/btcli shows first commits in 2024, tag v8.0.0 in 2024, and tag v9.23.1 in 2026.
- Official README describes btcli as the Bittensor CLI and lists wallet, subnet, staking, delegation, Senate proposal, and voting operations: https://raw.githubusercontent.com/opentensor/btcli/main/README.md
- Official README documents PyPI, Homebrew, source, and SDK-extra installation paths: https://raw.githubusercontent.com/opentensor/btcli/main/README.md
- Package-manager adoption from source_facts.package-manager.


## 安全说明

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



## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: ~/.bittensor/config.yml, ~/.bittensor/btcli.yaml

## Credential files

- Unix: ~/.bittensor/wallets
## 其他软件包管理器记录

- Nix - btcli: normalized package name match | nixpkgs package indexes: btcli from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix


## Combined YAML source

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


## 来源

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