A command-line interface for managing Bittensor subnet pool operations. poolcli simplifies wallet authentication, developer key management, and pool administration through an intuitive CLI.
- Wallet Authentication: Seamless Bittensor wallet integration with secure token management
- Developer Key Management: Create, list, and manage developer keys with invoice tracking
- Pool Management: Create, list, and inspect subnet pools
- Session Management: Automatic token caching and re-authentication support
pip install poolcli
or
uv add poolcliOr install from source:
git clone <repository-url>
cd poolcli
pip install -e .- Python 3.10+
poolcli auth login --wallet-name my_walletYou'll be prompted for your hotkey (defaults to "default" if not specified).
poolcli wallet listThis displays all available coldkeys and their associated hotkeys with addresses.
poolcli key create --wallet-name my_walletThis command will:
- Authenticate with your wallet
- Create an invoice for a developer key
- Prompt for payment in TAO
- Optionally create a pool after successful payment
poolcli pool create --wallet-name my_walletpoolcli pool list --wallet-name my_walletpoolcli refund create --wallet-name my_walletManage authentication and sessions.
Authenticate with your Bittensor wallet.
poolcli auth login \
--wallet-name my_wallet \
--hotkey default \
--force # Force re-authenticationOptions:
--wallet-name(required): Your Bittensor wallet name--hotkey: Hotkey name (defaults to "default")--backend-url: Backend API URL--force: Force re-authentication even if a valid session exists
Check your current authentication status.
poolcli auth status --wallet-name my_walletClear all stored authentication tokens.
poolcli auth logoutManage developer keys and invoices.
Create a new developer key invoice and optionally proceed with payment.
poolcli key create \
--wallet-name my_wallet \
--hotkey default \Options:
--wallet-name(required): Your Bittensor wallet name--hotkey: Hotkey to use for the key (defaults to "default")--backend-url: Backend API URL--force: Force re-authentication
List all developer keys for your wallet.
poolcli key list \
--wallet-name my_wallet \
--page 1 \
--limit 15 \
--status activeOptions:
--wallet-name(required): Your Bittensor wallet name--page: Page number for pagination (default: 1)--limit: Number of keys per page (default: 15)--status: Filter by status:active,expired, orunused--backend-url: Backend API URL
Check the status of a specific invoice.
poolcli key invoice get <invoice-id> --wallet-name my_walletArguments:
invoice-id: The invoice ID to check
Options:
--wallet-name(required): Your Bittensor wallet name--backend-url: Backend API URL
Manage your Bittensor subnet pools.
Create a new pool for your wallet.
poolcli pool create \
--wallet-name my_wallet \
--hotkey default \Options:
--wallet-name(required): Your Bittensor wallet name--hotkey: Hotkey to use for the pool (defaults to "default")--backend-url: Backend API URL--force: Force re-authentication
List all pools for your wallet.
poolcli pool list \
--wallet-name my_wallet \
--page 1 \
--limit 15Options:
--wallet-name(required): Your Bittensor wallet name--page: Page number for pagination (default: 1)--limit: Number of pools per page (default: 15)--backend-url: Backend API URL--force: Force re-authentication
View detailed information about a specific pool.
poolcli pool show <pool-id> --wallet-name my_walletArguments:
pool-id: The pool ID to inspect
Options:
--wallet-name(required): Your Bittensor wallet name--backend-url: Backend API URL
Initiate Refund Process
Start the refund process by selecting the expired developer key.
poolcli refund createDisplay all available refund invoices for a specific wallet.
poolcli refund listDisplay all invoice details for a specific Refund ID.
poolcli refund getInspect your Bittensor wallets.
Display all available coldkeys and their associated hotkeys with addresses.
poolcli wallet listThis command scans your wallet directory and displays public key information (no password required).
poolcli --version # Show version and exit
poolcli --commands # Show all available commands and exit
poolcli --help # Show help message and exitBittensor wallets are typically stored in ~/.bittensor/wallets/. The wallet list command reads from this directory.
# 1. View available wallets
poolcli wallet list
# 2. Authenticate
poolcli auth login --wallet-name my_wallet
# 3. Create a developer key
poolcli key create --wallet-name my_wallet
# 4. Check key status
poolcli key list --wallet-name my_wallet --status active
# 5. Create a pool
poolcli pool create --wallet-name my_wallet
# 6. View your pools
poolcli pool list --wallet-name my_wallet# Create invoice
poolcli key create --wallet-name my_wallet
# Check status later
poolcli key invoice get <invoice-id> --wallet-name my_walletgit clone <repository-url>
cd poolcli
pip install -e ".[dev]"GNU GENERAL PUBLIC LICENSE Version 2
For issues, questions, or contributions, please create issue in github.