Overview
Global options are specified before the command (e.g.,single-turn, multi-turn) and apply to all CLI operations.
API Configuration
Circuit Breaker Labs API Key
string
required
Circuit Breaker Labs API key for authentication with the CBL evaluation service.Environment Variable:
CBL_API_KEYCircuit Breaker Labs API Base URL
string
default:"https://api.circuitbreakerlabs.com"
Base URL for the Circuit Breaker Labs API endpoint. Typically only changed for custom deployments or testing.Environment Variable:
CBL_API_BASE_URLThe default value points to Circuit Breaker Labs’ production API. Only change this if you’re using a custom deployment or testing environment.
Logging Options
Log Level
enum
default:"info"
Sets the logging verbosity level.Available Levels:
error- Only critical errorswarn- Warnings and errorsinfo- General information (default)debug- Detailed debugging informationtrace- Very detailed trace information
Log Mode
boolean
default:"false"
Enable log mode to disable the interactive TUI and output logs directly to stdout.Use Cases:
- CI/CD pipelines
- Automated scripts
- Log file generation
- When running in non-interactive environments
When
--log-mode is enabled, the TUI (Terminal User Interface) is disabled and all output goes to stdout, making it suitable for automation.Output Configuration
Output File
string
Specify a custom path for evaluation results. If not provided, results are saved with an auto-generated timestamp.Default Format:
evaluation_results_YYYY-MM-DD_HH-MM-SS.jsonCustom Headers
Add Header
string
Add custom HTTP headers to provider requests. Can be specified multiple times for multiple headers.Format: Use Cases:
Key:Value- Custom authentication for providers
- Request tracking headers
- API version specification
- Custom routing headers
Complete Examples
Basic Setup with Environment Variables
Production Evaluation with Custom Output
CI/CD Pipeline Configuration
Debug Mode with Verbose Logging
Custom Endpoint with Headers
Multi-Turn with Complete Configuration
Environment Variables Summary
All global options can be set via environment variables:Setting Environment Variables
Best Practices
Security
Logging Strategy
Output Organization
Related Documentation
Single-Turn
Single-turn command reference
Multi-Turn
Multi-turn command reference
Commands Overview
Overview of all commands