Unified configuration system for all rebaselabs CLI tools.
pip install rebaselabs-config# Set your API key
rebaselabs config set --key api_key --value sk_prod_xxxxx
# Set your subscription tier
rebaselabs config set --key tier --value professional
# View configuration
rebaselabs config listfrom rebaselabs_config import get_config, get_api_key_manager
# Get configuration
config = get_config()
api_key = config.get("api_key")
tier = config.get("tier")
# Check API limits
manager = get_api_key_manager()
limits = manager.get_limits()
print(f"Requests per hour: {limits['requests_per_hour']}")List all configuration values for a profile.
Get a specific configuration value.
Set a configuration value.
Set API key interactively (prompts for input, hides password).
Select subscription tier interactively.
Display API rate limits for current tier.
Show full configuration status including tier and rate limits.
Support multiple profiles for different environments:
# Set value in 'test' profile
rebaselabs config set --key api_key --value sk_test_xxxx --profile test
# Use test profile
rebaselabs config list --profile testConfiguration is stored in ~/.config/rebaselabs/config.yml:
default:
api_key: sk_prod_xxxxx
tier: professional
test:
api_key: sk_test_xxxxx
tier: freeOverride configuration with environment variables:
export REBASELABS_API_KEY=sk_prod_xxxxx
export REBASELABS_TIER=professional| Tier | Requests/Hour | Requests/Month | Cost |
|---|---|---|---|
| Free | 100 | 10,000 | Free |
| Starter | 1,000 | 100,000 | $19/mo |
| Professional | 10,000 | 1,000,000 | $79/mo |
| Enterprise | Unlimited | Unlimited | Custom |
All rebaselabs CLI tools support the unified config:
# Data Transform CLI
dt transform --from json --to csv < data.json
# Uses api_key from ~/.config/rebaselabs/config.yml
# Respects tier-based rate limits automaticallyMIT