CLI Reference
Command
Section titled “Command”kovar record <url> [options]Options
Section titled “Options”| Option | Short | Description | Default |
|---|---|---|---|
--output <dir> | -o | Output directory for generated files | ./tests |
--name <name> | -n | Test file name (without extension) | Auto-generated from URL path |
--source <dir> | -s | Source directory for codebase-aware locators | Off |
--provider <name> | LLM provider: anthropic or openai | Auto-detect from env | |
--model <name> | LLM model override | claude-sonnet-4-20250514 or gpt-4o | |
--heal | After generating tests, run them and use AI to fix failures | Off | |
--heal-attempts <n> | Maximum number of self-healing attempts | 3 | |
--help | -h | Show help |
Examples
Section titled “Examples”Basic recording:
kovar record https://your-app.comCustom output directory and test name:
kovar record https://your-app.com -o ./e2e -n checkout-flowWith codebase awareness for better locators:
kovar record https://your-app.com --source ./srcUse a specific provider and model:
kovar record https://your-app.com --provider openai --model gpt-4oRecord, then auto-fix any test failures:
kovar record https://your-app.com --healAllow up to 5 healing attempts:
kovar record https://your-app.com --heal --heal-attempts 5Environment Variables
Section titled “Environment Variables”The recorder reads API keys from environment variables or a .env file:
| Variable | Description |
|---|---|
ANTHROPIC_API_KEY | Anthropic API key (for Claude models) |
OPENAI_API_KEY | OpenAI API key (for GPT models) |
The provider is auto-detected from whichever key is available. Use --provider to override.
Session Limits
Section titled “Session Limits”| Limit | Value |
|---|---|
| Max actions | 200 (configurable) |
| Max duration | 30 minutes |
| Inactivity timeout | 5 minutes |
Related
Section titled “Related”- Recorder Getting Started — step-by-step walkthrough.
- What Gets Generated — output file examples.
- Self-Healing — auto-fix test failures after recording.
- Codebase Awareness — improve locators with source mapping.