bittensor
4
总安装量
3
周安装量
#52383
全站排名
安装命令
npx skills add https://github.com/kennethashley/bittensor-skill --skill bittensor
Agent 安装分布
moltbot
1
openclaw
1
opencode
1
claude-code
1
Skill 文档
Bittensor SDK
Query the Bittensor decentralized AI network with structured JSON output.
SDK Scripts
Run scripts with Python (assumes bittensor installed):
# Top validators on a subnet
python scripts/metagraph.py --netuid 8 --top 5
# List all subnets
python scripts/subnets.py
# Specify network
python scripts/metagraph.py --netuid 1 --network test
Available Scripts
| Script | Purpose | Args |
|---|---|---|
metagraph.py |
Subnet validators sorted by emission | --netuid, --top, --network |
subnets.py |
List all subnets | --network |
Output Format
All scripts return JSON:
{
"netuid": 8,
"name": "Vanta",
"n_neurons": 256,
"top_validators": [
{"rank": 1, "name": "Ïaoshi validator", "emission": 147.67, "stake": 11859.70}
]
}
Common Queries
“Who are the top validators on subnet X?”
python scripts/metagraph.py --netuid X --top 10
“List all subnets”
python scripts/subnets.py
“What’s the emission on SN8?” Run metagraph.py and sum the emissions from top_validators.
CLI Fallback
For queries without SDK scripts, use btcli:
btcli wallet balance --wallet.name default
btcli stake list --wallet.name default
btcli subnets register --netuid 8 --wallet.name default
Networks
finneyâ Mainnet (default)testâ Testnet