Installation¶
Requirements¶
- Python 3.8 or newer
- Robot Framework 4.0 or newer
- An Anthropic API key (RoboAssay uses Claude as its judge)
Install from PyPI¶
Install from Source¶
Set Your API Key¶
RoboAssay calls the Anthropic API to evaluate responses. You must provide your API key via the ANTHROPIC_API_KEY environment variable.
Getting an API Key
You can get an Anthropic API key from console.anthropic.com.
Verify the Installation¶
Optional Configuration¶
RoboAssay supports a few environment variables for advanced configuration:
| Variable | Default | Description |
|---|---|---|
ANTHROPIC_API_KEY |
(required) | Your Anthropic API key |
ROBOASSAY_JUDGE_MODEL |
claude-sonnet-4-20250514 |
Override the judge model |
ROBOASSAY_BASELINE_DIR |
.roboassay_baselines/ (relative to cwd at runtime) |
Directory for regression baselines. Tip: set this explicitly in CI to ensure a stable path regardless of working directory. |
ROBOASSAY_REQUEST_TIMEOUT |
30 |
HTTP request timeout in seconds |
ROBOASSAY_MAX_RETRIES |
3 |
Max retries for transient API errors (429, 5xx) |
ROBOASSAY_ANTHROPIC_VERSION |
2023-06-01 |
Anthropic API version header |
Dependencies¶
RoboAssay has minimal dependencies:
These are installed automatically when you install via pip.