This section covers CLI commands for managing your Chutes account, registration, authentication, and API keys.
Account Registration
chutes register
Create a new account with the Chutes platform.
chutes register [OPTIONS]
Options:
--config-path TEXT: Custom path to config file
--username TEXT: Desired username
--wallets-path TEXT: Path to Bittensor wallets directory
--wallet TEXT: Name of the wallet to use
--hotkey TEXT: Hotkey to register with
Examples:
# Basic registration with interactive prompts
chutes register
# Register with specific username
chutes register --username myusername
# Register with specific wallet
chutes register --wallet my_wallet --hotkey my_hotkey
Registration Process:
Choose Username: Select a unique username for your account
Wallet Configuration: Set up Bittensor wallet for payments
Verification: Complete email verification if required
Initial Setup: Configure basic account settings
What Happens During Registration:
Creates your Chutes account
Generates initial configuration file
Sets up billing and payment methods
Provides developer credits for getting started
Account Linking
chutes link
Link a validator or subnet owner hotkey to your account for free developer access.
chutes link [OPTIONS]
Options:
--config-path TEXT: Custom config path
--wallet TEXT: Wallet name to link
--hotkey TEXT: Hotkey to link
--force: Force re-linking if already linked
Examples:
# Link with interactive prompts
chutes link# Link specific hotkey
chutes link --wallet validator_wallet --hotkey validator_hotkey
# Force re-link existing connection
chutes link --force
Benefits of Linking:
Free Developer Credits: Get additional credits for development
Priority Access: Priority support and early feature access
Enhanced Limits: Higher resource quotas and limits
Validator Benefits: Special perks for active validators
API Key Management
API keys provide programmatic access to your Chutes account and are essential for CI/CD and automation.
chutes keys list
List all API keys for your account.
chutes keys list [OPTIONS]
Options:
--config-path TEXT: Custom config path
--format TEXT: Output format (table, json, yaml)
Example:
chutes keys list
Output:
┌──────────┬─────────────────────┬─────────┬─────────────────────┐
│ Name │ ID │ Admin │ Created │
├──────────┼─────────────────────┼─────────┼─────────────────────┤
│ admin │ key_123abc... │ Yes │ 2024-01-15 10:30:00 │
│ ci-cd │ key_456def... │ No │ 2024-01-20 14:45:00 │
│ dev │ key_789ghi... │ No │ 2024-01-25 09:15:00 │
└──────────┴─────────────────────┴─────────┴─────────────────────┘
chutes keys create
Create a new API key.
chutes keys create [OPTIONS]
Options:
--name TEXT: Name for the API key (required)
--admin: Create admin key with full permissions
--config-path TEXT: Custom config path
--expires TEXT: Expiration date (YYYY-MM-DD)
Examples:
# Create basic API key
chutes keys create --name dev-key
# Create admin key with full permissions
chutes keys create --name admin --admin
# Create key with expiration
chutes keys create --name temp-key --expires 2024-12-31
Key Types:
Standard Keys: Can deploy and manage your own chutes
Admin Keys: Full account access including billing and user management
Read-Only Keys: View-only access to account and resources
Security Best Practices:
# Create separate keys for different environments
chutes keys create --name production-deploy
chutes keys create --name staging-deploy
chutes keys create --name development
# Create temporary keys for contractors
chutes keys create --name contractor-temp --expires 2024-06-30
# Use read-only keys for monitoring
chutes keys create --name monitoring-readonly
chutes keys delete
Delete an API key.
chutes keys delete <name_or_id> [OPTIONS]
Arguments:
name_or_id: Name or ID of the key to delete
Options:
--config-path TEXT: Custom config path
--yes: Skip confirmation prompt
Examples:
# Delete by name (with confirmation)
chutes keys delete old-key
# Delete by ID
chutes keys delete key_123abc456def
# Delete without confirmation
chutes keys delete temp-key --yes
Safety Notes:
Deleted keys cannot be recovered
Active deployments using the key will lose access
Always rotate keys before deletion in production
Configuration Management
Config File Structure
The Chutes configuration file (~/.chutes/config.ini) stores your account settings: