Command Structure
The Circuit Breaker Labs CLI follows a hierarchical command structure:Components
- Global Options - Apply to all commands (API keys, logging, output)
- Command - Evaluation type (
single-turnormulti-turn) - Command Options - Specific to the evaluation type
- Provider - Model provider (
openai,ollama, orcustom) - Provider Options - Configuration for the selected provider
Available Commands
single-turn
Runs a single-turn evaluation where the model responds to individual prompts without conversation context.multi-turn
Runs a multi-turn conversational evaluation that tests the model across multiple conversation turns.Provider Subcommands
All evaluation commands require a provider subcommand:openai
Use OpenAI or OpenAI-compatible APIs. Required:--api-key- OpenAI API key (or setOPENAI_API_KEYenv var)--model- Model name (e.g.,gpt-4o,gpt-4-turbo,gpt-3.5-turbo)
--base-url- Custom API endpoint--temperature- Sampling temperature (0-2)--top-p- Nucleus sampling- And many more options…
ollama
Use locally-hosted Ollama models. Required:--model- Ollama model name
--base-url- Ollama server URL (default:http://localhost:11434)--temperature- Sampling temperature--num-ctx- Context window size- And many more options…
custom
Use custom endpoints with Rhai scripting for request/response translation. Required:--url- Endpoint URL to POST to--script- Path to Rhai script file
Complete Examples
Single-Turn with OpenAI
Multi-Turn with Ollama
Custom Provider
Getting Help
Get help for any command:Next Steps
Global Options
Configure API keys, logging, and output settings
Single-Turn
Complete single-turn command reference
Multi-Turn
Complete multi-turn command reference
GitHub Examples
View example scripts and configurations