bittensor
A lean Python SDK (import bittensor) and CLI (btcli) for the Bittensor chain.
Decision gist · record as of 2026-08-14
Yes. Bittensor is actively maintained, has low install friction, carries no known vulnerabilities, and is the canonical SDK for the Bittensor chain. Install it if you need to read chain state, submit transactions, or manage wallets on Bittensor; the CLI and library ship together, so you get both for one install.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10–3.14; wallet operations require local key files or secure mnemonic input.
- Low friction: pure Python wheel with seven runtime dependencies (bittensor-core, eth-account, qrcode, rich, typer, typing-extensions, websockets).
- Actively maintained with a release on 2026-08-14 and 375 repository stars.
License · maintenance · safety
Apache-2.0 (permissive) — Apache-2.0 permissive license allows commercial and private use with minimal restrictions; you must include a copy of the license and state significant changes.
last release 2026-08-14 (0 days) · last repo commit 2026-08-14 · 375 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 304,950 downloads/mo, #7,801 on PyPI
Alternatives
Verify before relying
pip install bittensor
import bittensor as bt
sub = bt.Subtensor()
balance = sub.balances.get("5F...coldkey")
subnets = sub.subnets.all()- Whether bittensor-core (the primary runtime dependency) is a compiled extension or pure Python.
- Performance characteristics for high-frequency chain queries or large batch operations.
- Compatibility with non-finney networks beyond test and local endpoints.
What it is and what it does
Bittensor is a thin, unopinionated wrapper around the Bittensor blockchain, exposing chain reads and transaction intents through both a Python library and a command-line tool. The SDK uses typed namespaces for chain queries (balances, subnets, neurons, delegation), supports both blocking and async patterns, and wraps mutations as serializable intents that can be previewed before execution. The CLI (`btcli`) mirrors the SDK surface: every read becomes a `query` command, every intent becomes a `tx` command, with shell completion and persistent configuration for network and wallet settings.
The package is built as a projection of the chain's own runtime metadata, so reads and intents stay synchronized with the chain without manual updates. It includes wallet management (create, regenerate, sign, verify), a Policy system to bound what mutations may do, and unit-tagged Balance types that prevent mixing currencies. The design goal is safety and transparency: nothing is hidden, every chain call is either wrapped by an intent or explicitly marked raw-only, and a CI gate ensures no operations are silently forgotten.
Use it for
- Query chain state (balances, subnets, neurons, delegation) from Python or the command line without building a full blockchain node.
- Submit staking, unstaking, and transfer transactions with fee preview and policy-based safety checks before execution.
- Build agents or tools that interact with Bittensor by dispatching reads and intents by name rather than direct method calls.
- Manage local wallets (create, regenerate, sign messages) and verify signatures for Bittensor accounts.
- Automate testnet or finney operations via CLI with environment-variable or config-file-based network and wallet defaults.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
Bittensor is actively maintained, has low install friction, carries no known vulnerabilities, and is the canonical SDK for the Bittensor chain. Install it if you need to read chain state, submit transactions, or manage wallets on Bittensor; the CLI and library ship together, so you get both for one install.
Install
bittensor on PyPI
Before you install
Low friction: pure Python wheel with seven runtime dependencies (bittensor-core, eth-account, qrcode, rich, typer, typing-extensions, websockets). Actively maintained with a release on 2026-08-14 and 375 repository stars.
Requires Python 3.10–3.14; wallet operations require local key files or secure mnemonic input.
License in practice
Apache-2.0 permissive license allows commercial and private use with minimal restrictions; you must include a copy of the license and state significant changes.
Quickstart
pip install bittensor
import bittensor as bt
sub = bt.Subtensor()
balance = sub.balances.get("5F...coldkey")
subnets = sub.subnets.all()
Verify before relying
- Whether bittensor-core (the primary runtime dependency) is a compiled extension or pure Python.
- Performance characteristics for high-frequency chain queries or large batch operations.
- Compatibility with non-finney networks beyond test and local endpoints.
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release <3.15,>=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 7 packagesbittensor-coreeth-accountqrcoderichtypertyping-extensionswebsockets |
| Maintenance | Actively maintained 0 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 304,950 / month, #7,801 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
Evidence: bittensor-11.1.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “bittensor chain client”
- bittensorBittensor is a Python SDK and CLI for interacting with the Bittensor…
- bittensor-cliCommand-line interface for managing Bittensor platform operations…
- cyscaleCython-accelerated encoder and decoder for the SCALE codec used by…
Give your agent the search over MCP, or paste the wish link into any chat.
More Internet packages
Botocore provides low-level, data-driven access to Amazon Web Services APIs, serving as the foundation for the AWS CLI and boto3 libraries.
Install it if you need programmatic access to AWS services.
Provides an async client for AWS services using botocore and aiohttp, allowing you to call AWS APIs asynchronously within asyncio-based applications.
Install it if you need to call AWS services from async Python code; it is the standard way to do so.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides a platform-independent file locking mechanism to coordinate access to files across processes and threads.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides common Protocol Buffer message definitions used across Google Cloud APIs, enabling Python clients to interact with Google services.
See also bittensor-cli · bittensor-drand · bittensor-wallet · aptos-sdk · web3 · async-substrate-interface · xrpl-py · cyscale · py-clob-client