CLI Reference¶
OpenAgent Eval ships a Typer-based command line interface named oaeval.
Global options¶
| Option | Description |
|---|---|
--version, -V |
Show the installed version and exit |
--help |
Show help for any command |
--quiet, -q |
Suppress non-essential output |
--json |
Output machine-readable JSON |
--no-color |
Disable color output |
--verbose, -v |
Enable verbose output |
oaeval init¶
Create a config.yaml with default settings in the current directory.
| Option | Description |
|---|---|
--config, -c |
Path to create (default config.yaml) |
--force, -f |
Overwrite an existing file without prompting |
--interactive/--no-interactive |
Use interactive wizard or defaults (default: --interactive) |
The interactive wizard guides you through: 1. Dataset path selection 2. LLM provider selection (OpenAI, Anthropic, Gemini, Groq, OpenRouter) 3. Model selection based on provider 4. Retriever selection (Chroma, Qdrant, Pinecone, Weaviate, FAISS, Memory) 5. Metric preset (Quick, Standard, Comprehensive) 6. Output format selection
oaeval validate¶
Validate configuration without running evaluation.
| Argument | Description |
|---|---|
config_path |
Path to configuration file (optional, auto-discovered if not provided) |
The validate command checks: - YAML syntax validity - Configuration schema compliance - API key availability - Dataset file existence - Output directory accessibility - Provider configuration - Metric configuration
oaeval run¶
Run an evaluation pipeline using a configuration file.
oaeval run config.yaml
oaeval run config.yaml --output html --verbose
oaeval run config.yaml --dry-run
oaeval run config.yaml --metrics faithfulness,answer_relevancy,latency
| Argument | Description |
|---|---|
config_path |
Path to the configuration file (optional, auto-discovered if not provided) |
| Option | Description |
|---|---|
--output, -o |
Override output format: terminal, markdown, html, json |
--verbose, -v |
Enable verbose output |
--dry-run |
Validate config and show evaluation plan without running |
--metrics, -m |
Comma-separated list of metrics to run (overrides config) |
oaeval report¶
View a stored evaluation report.
| Argument | Description |
|---|---|
report_id |
Report ID, or latest for the most recent run |
| Option | Description |
|---|---|
--output, -o |
Output format (default terminal) |
--output-dir, -d |
Reports directory (default ./reports) |
oaeval compare¶
Compare two experiments side by side.
oaeval compare exp-001 exp-002
oaeval compare exp-001 exp-002 --metrics faithfulness answer_relevancy
| Argument | Description |
|---|---|
experiment_a |
First experiment ID or path |
experiment_b |
Second experiment ID or path |
| Option | Description |
|---|---|
--metrics, -m |
Specific metrics to compare (default: all) |
--output-dir, -d |
Reports directory (default ./reports) |
oaeval list¶
List previous evaluation runs.
oaeval list --limit 20
oaeval list --sort score --limit 5
oaeval list --search "data/questions" --sort date
| Option | Description |
|---|---|
--limit, -l |
Number of evaluations to show (default 10) |
--output, -o |
Filter by output format |
--output-dir, -d |
Reports directory (default ./reports) |
--sort, -s |
Sort by: date, score, or cost (default date) |
--reverse, -r |
Reverse sort order |
--search |
Search reports by config path or ID |
oaeval delete¶
Delete evaluation reports.
| Argument | Description |
|---|---|
report_id |
Report ID to delete, or all to delete all reports |
| Option | Description |
|---|---|
--output-dir, -d |
Reports directory (default ./reports) |
--force, -f |
Skip confirmation prompt |
oaeval doctor¶
Check the environment, installed dependencies, and API key availability.
| Option | Description |
|---|---|
--verbose, -v |
Show detailed information |
--check-api |
Test API connectivity (requires API keys) |
The doctor command checks:
- Python version compatibility
- Required dependencies
- API key availability
- API connectivity (with --check-api)
- Configuration file presence
Use this when something looks wrong after installation.
oaeval completion¶
Generate shell completion script.
| Argument | Description |
|---|---|
shell |
Shell to generate completion for: bash, zsh, or fish |
Installing completion¶
# Bash
oaeval completion bash >> ~/.bashrc
# Zsh
oaeval completion zsh >> ~/.zshrc
# Fish
oaeval completion fish > ~/.config/fish/completions/oaeval.fish
Exit codes¶
| Code | Meaning |
|---|---|
0 |
Success |
1 |
Runtime or configuration error |
2 |
Invalid CLI usage or configuration error |
3 |
Dataset error |
4 |
Provider error |
5 |
Metric error |
Config auto-discovery¶
OpenAgent Eval automatically finds your configuration file:
- Explicit path via command argument
OAEVAL_CONFIGenvironment variableconfig.yamlorconfig.ymlin current directoryoaeval.yamloroaeval.ymlin current directory- Parent directories up to filesystem root
Next steps¶
- Embed evaluations in tests via the API Reference.
- See real commands in Examples.