Overview
Thecactus auth command manages your Cactus Cloud API key, which enables automatic cloud fallback when on-device model confidence is below the configured threshold.
Usage
Flags
—status
Check the current authentication status:- API key status (authenticated or not)
- Associated account information
- Key expiration if applicable
—clear
Remove the saved API key:How It Works
When configured, Cactus automatically:- Monitors model confidence scores during generation
- Triggers cloud fallback if confidence drops below
cloud_handoff_threshold - Seamlessly routes the query to cloud models
- Returns results with
cloud_handoff: truein the response
Configuration
Set the confidence threshold in your completion options:Security
API keys are stored securely in:- macOS: Keychain
- Linux: Encrypted credential store
- iOS/Android: Secure enclave (when using SDK)
Environment Variables
Alternatively, set the API key via environment variable:Getting an API Key
Visit cactuscompute.com to:- Create an account
- Generate an API key
- Configure billing and usage limits
See Also
Cloud Fallback
Learn about hybrid on-device/cloud inference
Chat Completion
Use cloud fallback in completions