# Install btcli with Homebrew, Nix

Bittensor command-line tool. Version 9.23.2 via Homebrew; verified 2026-07-19. Also installable with nix: nix profile install nixpkgs#btcli.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install btcli
```

  Evidence: local Homebrew formula metadata

### Linux

- Nix (92%):

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

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

## Package facts

- **Package key:** brew:btcli
- **Package manager:** Homebrew
- **Version:** 9.23.2
- **Source summary:** Bittensor command-line tool
- **Homepage:** <https://docs.learnbittensor.org/btcli>
- **Last updated:** 2026-07-19T18:46:05+09:00
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- btcli (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 9.23.2
## Project history and usage

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.

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

- 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.

### Sources

- 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.


## Security Notes

No matching local secret-handling manifest was found for btcli. Nucleus package metadata is still published here so future coverage has a stable package 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
## Other Package-Manager Records

- 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)


## Sources

- 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
