One line to install and set up. uvx testzeus-hercules in your app's folder installs the hercules command, sets up the browsers you pick, connects a model (local, OpenRouter or any OpenAI-compatible endpoint) and your coding agent, asking before each change.
|
From an empty project to a passing test. Start from an empty project in the tester UI: save an environment for the app, write a case the way a tester would, run it and watch it live, then read every step, decision and screenshot it kept.
|
Review the plan before it runs. Every case becomes a plan: the actions, the success criteria the page must meet after each one, risks and lint.
|
Debug a run, take over the browser. Pause with Space, step with N, take over the run's own browser to do what the case forgot, fix a step that could not be done by editing its text, and approve an irreversible click before it happens.
|
Run tests from the terminal. hercules run runs a case in a real browser, shows each step as it goes, and exits 0, 1 or 2 for scripts and CI.
|
Test from your coding agent. One command gives Claude Code (or Codex, Cursor, GitHub Copilot, Gemini CLI) the Hercules tools; then ask for a test in plain words and the agent writes the case, runs it in a real browser and reports the result.
|
Any browser, any Playwright option. Save an environment that runs WebKit in German, on Berlin time, already signed in from an auth JSON and sending an extra header, then run a case on it and see every option arrive.
|
Test your web app on a phone. Give an environment a Playwright device profile such as iPhone 15, run any web case on it, and watch the phone-sized run live; every step keeps the phone's screenshot.
|
Export a passed run as code. Turn a passed run into a Playwright Test or pytest-playwright file with real locators and expects, then hercules export --check runs it once and tells you it passes, with no Hercules or model needed at test time.
|
Run a passed test on a cloud. Connect BrowserStack, Sauce Labs or TestMu AI and run any passed test on the cloud's browsers from its run page, or download it as a ready-made project for that cloud's CI.
|
Import v1 projects, specs and documents. hercules import turns what you already have into test cases: a Hercules v1 project's Gherkin features, test data and .env; an OpenAPI spec, one API case per operation; and a requirements document, which your model drafts into cases marked draft for review.
|
Visual and accessibility checks. Turn on Accessibility and Visual when you start a run and every page the case reaches is audited: WCAG findings with a selector and a fix that was tried in the page, layout problems at phone width, and a baseline screenshot that the next run is compared against.
|
Security scans. hercules scan checks your app for known security issues with the open-source nuclei scanner, only against the app under test and without intrusive templates unless you ask.
|
Run it in Docker. Build the Hercules image, serve the tester UI from a container with your project mounted and the model key passed by name, then sign in and run a case: the same UI, runs and evidence as without Docker.
|
Test data and secrets. Keep a case's values in its test data and use them in steps as {{name}}; a secret names an environment variable, so its value never lands in the case, never reaches the model and is masked as ****** in the evidence.
|
Upload and download files. Give a case files to upload in its steps, then download a file from your app and check its name, rows and columns in code. Files go only to the app under test, never to a model.
|
## See exploratory testing in action
Five short videos, with a spoken walkthrough and subtitles, recorded against the demo shop in `bench/explore` with its seeded bugs
switched on. Click a picture to play the video. The steps under each one do the same on your
machine; [Exploratory testing](docs/guide/explore.md#walkthrough-videos) has them in full. They are in the
[Hercules learning playlist on YouTube](https://www.youtube.com/playlist?list=PLLWMTprCe0jo) too.
Start a session, watch it live. Run hercules ui, open
Explore → Start exploring, pick a start case, a mission and a time box, and watch
explorers work while each clue is reproduced.
|
Review findings in one click. Open Explore → Findings, open a finding, and
click Real bug, Not a bug, Can't reproduce or Duplicate. Copy it
as a GitHub, Jira, Linear or Markdown issue.
|
Explore from the terminal.
hercules explore start --from .hercules/cases/sign-in.json -t 3 -w 2, then
hercules explore findings, show and issue.
|
Fix, reverify, keep it fixed. After a fix, hercules explore reverify
reruns the kept bug cases. Close a verified fix with
hercules explore triage ID --state closed and its case becomes a regression test.
|
Explore from your coding agent. hercules init --agent claude (or
cursor, copilot, codex, gemini), then ask:
"Explore the shop for bugs for 3 minutes and tell me what you found."
|
Try it on the demo shop
```bash
# terminal 1: the shop, every seeded bug on
uv run python bench/explore/app.py --bugs all --port 8200
# terminal 2: the daemon, in your project
hercules serve
# terminal 3: a 5-minute session
hercules explore start --base-url http://127.0.0.1:8200 -t 5 -w 2
```
The videos start signed in, from a two-step sign-in case:
see [Walkthrough videos](docs/guide/explore.md#walkthrough-videos).
|
## How it decides
- **Every step reading and decision comes from a model.** There are no hand-written
rules for reading steps or picking elements, so new apps and phrasings need no new
code. Code only executes structured actions and checks what the page shows.
- **Hybrid mode** (the default when an OpenRouter key is configured): the model you
configured (called the *local model* in Hercules' output) reads the steps, and JEV, a
hosted decision model served through OpenRouter, picks tools and elements. Zero data
retention is requested on every JEV call. If JEV cannot answer a decision, the local
model answers it.
- **Pure mode**: the local model does everything, or a local Clef server makes the
decisions. Without an OpenRouter key, runs are pure and say so in one line.
- **Strict verdicts**: every expected outcome is checked and recorded. A run passes only
when every step passed and nothing stayed unverified.
- **A plan before every run**: the case becomes an explicit plan (each step's actions,
success criteria from your words and inferred by the model, risks), audited for coverage
and linted before the browser starts. Review and edit it, or run strict; the run checks
each criterion on the page, recovers when an action did not take effect, and records
every change it makes to the plan. See [Plans](docs/guide/plans.md).
See [Modes and privacy](docs/guide/modes-and-privacy.md) and
[Architecture](docs/guide/architecture.md).
## Running tests on clouds
Connect BrowserStack, Sauce Labs or TestMu AI (formerly LambdaTest) once, then run any passed
test on it. Hercules exports the run as code, sends it to the cloud, follows it to the end and
links to the cloud's session, with its video and logs.
1. Install the runner tools: `pip install 'testzeus-hercules[cloud]'` (and
`npm i -g saucectl` for Sauce Labs web tests).
2. In the tester UI, open **Integrations** and paste your cloud user name and access key.
Hercules checks them and saves them in `~/.hercules/clouds.env`, readable only by you.
Environment variables (`BROWSERSTACK_*`, `SAUCE_*`, `LT_*`) work too.
3. On a passed run, choose **Run on a cloud**, pick the cloud and the browser
and OS (or the device), and run it. The run page shows the cloud run's status and links.
From the command line:
```bash
echo "$BROWSERSTACK_ACCESS_KEY" | hercules cloud connect browserstack --username my_user
hercules cloud run