Skip to content

CLI Reference

Terminal window
kovar record <url> [options]
OptionShortDescriptionDefault
--output <dir>-oOutput directory for generated files./tests
--name <name>-nTest file name (without extension)Auto-generated from URL path
--source <dir>-sSource directory for codebase-aware locatorsOff
--provider <name>LLM provider: anthropic or openaiAuto-detect from env
--model <name>LLM model overrideclaude-sonnet-4-20250514 or gpt-4o
--healAfter generating tests, run them and use AI to fix failuresOff
--heal-attempts <n>Maximum number of self-healing attempts3
--help-hShow help

Basic recording:

Terminal window
kovar record https://your-app.com

Custom output directory and test name:

Terminal window
kovar record https://your-app.com -o ./e2e -n checkout-flow

With codebase awareness for better locators:

Terminal window
kovar record https://your-app.com --source ./src

Use a specific provider and model:

Terminal window
kovar record https://your-app.com --provider openai --model gpt-4o

Record, then auto-fix any test failures:

Terminal window
kovar record https://your-app.com --heal

Allow up to 5 healing attempts:

Terminal window
kovar record https://your-app.com --heal --heal-attempts 5

The recorder reads API keys from environment variables or a .env file:

VariableDescription
ANTHROPIC_API_KEYAnthropic API key (for Claude models)
OPENAI_API_KEYOpenAI API key (for GPT models)

The provider is auto-detected from whichever key is available. Use --provider to override.

LimitValue
Max actions200 (configurable)
Max duration30 minutes
Inactivity timeout5 minutes