# 使用 Homebrew 安装 bittensor

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

## 安装

```sh
sudo av install brew:bittensor
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install bittensor
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:bittensor
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/bittensor>
- **版本:** 11.0.1
- **来源摘要:** SDK and command-line tool for the Bittensor network
- **主页:** <https://subtensor.vercel.app/>
- **仓库:** <https://github.com/RaoFoundation/bittensor>
- **上游文档:** <https://www.bittensor.com/docs>
- **许可证:** Apache-2.0
- **源码归档:** <https://files.pythonhosted.org/packages/b7/97/56d2f9f2a50f4a55d342707e56b281d5f2cc4634c8f18f9b147198e41d16/bittensor-11.0.1.tar.gz>
- **最后更新:** 2026-07-24T23:57:51Z
- **已生成:** 2026-07-25T07:20:51+00:00

## 可执行文件

- btcli (cli)
- certifi.sh (cli)
- btcli (别名)
- certifi.sh (别名)

## 依赖

- openssl@3
- pydantic
- python@3.13

## 构建依赖

- rust

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-07-25
- 管理器版本: 11.0.1
- 管理器更新时间: 2026-07-24
- 本地数据: OK
- 上游仓库: https://subtensor.vercel.app/
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

Bittensor is the Python SDK and command-line tooling used to read from, transact with, and build applications for the Bittensor network. The legacy 10.x package represented by this Homebrew formula combines the `bittensor` SDK with the separately distributed `bittensor-cli` and `bittensor-wallet` packages.

### 项目历史

The Bittensor SDK repository was created in 2020 and developed alongside the network's blockchain and subnet model. Bittensor's official academic history records the network's launch in November 2021. The SDK exposed Python APIs for Subtensor and installed `btcli` for wallet, subnet, staking, and chain operations.

In 2026, Bittensor 11 replaced the legacy 10.x SDK, separate 9.x CLI, and separate wallet package with one unified `bittensor` distribution. SDK, CLI, documentation, and chain development then moved into the `RaoFoundation/subtensor` monorepo, while the legacy SDK repository was archived in July 2026.

### 采用历史

The SDK became the standard official Python and shell interface for participants operating wallets, querying network state, staking, registering subnets, and writing subnet software. Its packaging evolved from a multi-distribution Python stack in v9/v10 to a single generated SDK-and-CLI package in v11.

### 使用方式

The legacy formula installs the Python SDK plus `btcli`. Users commonly select a network, configure a coldkey wallet and hotkey, inspect balances and subnets, and submit signed staking or registration operations. Configuration is stored by the legacy CLI at `~/.bittensor/config.yml`, while wallet keys live under `~/.bittensor/wallets/`.

Current upstream guidance installs `bittensor` with `uv` or pip, uses `btcli query` for reads and `btcli tx` for transactions, and recommends previewing mutations with `--dry-run`. Existing v10 wallet files remain compatible with v11, but scripts and CLI invocations require migration because the client API and command organization changed substantially.

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

Bittensor is notable as a package-management case study because an SDK, CLI, and cryptographic wallet moved from three interdependent Python distributions back into one package and monorepo. The official migration guide documents executable ownership conflicts during upgrades, Python-version resolution pitfalls, native Rust build requirements, and compatibility of existing on-disk keyfiles.

Its official wallet security guide also records a compromised PyPI release of legacy `bittensor` 6.12.2 in July 2024 and consequently recommends exact version pins and signed source tags for high-value systems. That incident makes provenance and upgrade discipline unusually important for this package.

### 时间线

- 2020: The Bittensor SDK repository was created.
- 2021: The Bittensor network officially launched in November.
- 2024: A compromised PyPI release of legacy bittensor 6.12.2 triggered a network safe-mode response.
- 2026: Bittensor 11 unified the SDK, CLI, and wallet packages in the Subtensor monorepo.
- 2026: The legacy Bittensor SDK repository was archived in July.

### Related projects

- RaoFoundation/subtensor is the active Bittensor monorepo containing the chain, Python SDK, `btcli`, documentation, and website.
- Legacy `bittensor-cli` supplied the v9 `btcli` executable bundled by the 10.x formula, and legacy `bittensor-wallet` supplied its keyfile implementation.

### 来源

- <https://github.com/RaoFoundation/bittensor>
- <https://github.com/RaoFoundation/subtensor>
- <https://www.bittensor.com/academia>
- <https://www.bittensor.com/docs/concepts/wallets>
- <https://www.bittensor.com/docs/migration>


## 安全说明

没有找到 bittensor 的匹配本地密钥处理 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

## Credential files

- Unix: ~/.bittensor/wallets/<wallet-name>/coldkey, ~/.bittensor/wallets/<wallet-name>/hotkeys/<hotkey-name>
## 源数据库详情

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


## 相关链接

- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/zh-hans/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/zh-hans/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Language runtime packages](https://www.automicvault.com/zh-hans/pkg/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [openssl@3](https://www.automicvault.com/zh-hans/pkg/brew/openssl-3/) - Runtime dependency declared by Homebrew.
- [python@3.13](https://www.automicvault.com/zh-hans/pkg/brew/python-3-13/) - Runtime dependency declared by Homebrew.
- [rust](https://www.automicvault.com/zh-hans/pkg/brew/rust/) - Build dependency declared by Homebrew.
- [near](https://www.automicvault.com/zh-hans/pkg/brew/near/) - Shares av.db curated category or tags: blockchain, cli, developer-tools, staking.
- [anchor](https://www.automicvault.com/zh-hans/pkg/brew/anchor/) - Shares av.db curated category or tags: blockchain, cli, developer-tools.
- [aptos](https://www.automicvault.com/zh-hans/pkg/brew/aptos/) - Shares av.db curated category or tags: blockchain, cli, developer-tools.
- [chainhook](https://www.automicvault.com/zh-hans/pkg/brew/chainhook/) - Shares av.db curated category or tags: blockchain, cli, developer-tools.
- [clarinet](https://www.automicvault.com/zh-hans/pkg/brew/clarinet/) - Shares av.db curated category or tags: blockchain, cli, developer-tools.
- [ignite](https://www.automicvault.com/zh-hans/pkg/brew/ignite/) - Shares av.db curated category or tags: blockchain, cli, developer-tools.
- [solana](https://www.automicvault.com/zh-hans/pkg/brew/solana/) - Shares av.db curated category or tags: blockchain, cli, developer-tools.
- [stellar-cli](https://www.automicvault.com/zh-hans/pkg/brew/stellar-cli/) - Shares av.db curated category or tags: blockchain, cli, developer-tools.
- [weaviate-cli](https://www.automicvault.com/zh-hans/pkg/brew/weaviate-cli/) - Both packages touch the same language runtime or ecosystem. Shared terms: certifi, cli, command-line, developer, developer-tools.

## Combined YAML source

View the package source record on GitHub. [combined/bittensor.yml](https://github.com/automic-vault/db/blob/main/combined/bittensor.yml)


## 来源

- Nucleus package database
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- cross-ecosystem install command graph
