Getting started
HeyBug explores your web app in a real browser, writes a plain-English test plan, and runs it after you approve it.
Hosted
1. Sign up
Open https://opentest.nagara.cloud and enter your email. You get a sign-in link. Click it.
You will see the projects page. A new account has no projects, so it shows an empty state with a New project button.
2. Create a project
Choose New project and paste https://staging.crate.so (or your own app). Add instructions if you want the agent to focus on something.
You will see the exploration page open at once, with a loading state until the first page is read. An unreachable or private address shows an error. Fix the URL and try again.
3. Watch the exploration
The agent browses your app. You will see live progress: pages visited, a screenshot for each page, and the agent's notes. You can cancel at any time.
When it finishes, the page links to the plan.
4. Review and apply the plan
The plan lists tests grouped by use case. Each test has a title, a priority, steps in plain English, and an expected result. Edit any test, remove the ones you do not want, or add your own.
Two buttons at the end:
- Apply only saves a new plan version. Nothing runs.
- Apply and run saves it, generates Playwright tests, and runs them in Chromium.
An empty plan means the agent found nothing to test. Add instructions and explore again.
5. Read the results
The run page updates live. Each test moves from queued to generating to running, then to passed, failed or error. Open a failed test to see:
- the failing step, highlighted in the step list,
- Expected: what the plan said should happen,
- Actual: what the browser saw,
- a screenshot for every step,
- Details: the raw Playwright error.
A test with status error broke outside your app (browser or network). Run it again.
6. Connect an agent
Open API tokens in the sidebar (/settings/tokens), type a name, and create a token. The secret is shown once. Copy it.
Then use either:
- the CLI:
HEYBUG_SERVER=https://opentest.nagara.cloud HEYBUG_TOKEN=<token> heybug run --url https://staging.crate.so(CLI). Exit code 0 means every test passed, 1 means a failure. - an AI assistant over MCP, with
heybug mcpand the same two variables (MCP).
Both start a quick run: explore and run with no review step. You will see the same run on the web.
You need Docker. From a checkout of this repo:
export HEYBUG_SECRET_KEY=$(openssl rand -base64 32)
export HEYBUG_RUNNER_TOKEN=$(openssl rand -hex 24)
docker compose -f deploy/selfhost/compose.yaml up --build -dOpen http://localhost:8080. You will see the sign-in page. Set HEYBUG_DEV_LOGIN=1 for a passwordless dev login (never on the internet), or set a mail provider to send real sign-in links: HEYBUG_MAIL_URL (any endpoint accepting the same POST) or RESEND_API_KEY plus HEYBUG_MAIL_FROM. Without one, links are written to the backend log. HeyBug Cloud sends through Cloudflare Email Service, no secret needed.
Set ANTHROPIC_API_KEY for the real agent. Without it a scripted demo agent runs, so the whole flow works offline. The full list of variables is at the top of deploy/selfhost/compose.yaml. Production deploys: cloud deploy.
Run locally
Needs Go 1.23+ and Node. Three terminals, or one with make dev:
cd runner && npm install && npx playwright install chromium && npm start # :7070
cd backend && make build && HEYBUG_DEV_LOGIN=1 HEYBUG_ALLOW_PRIVATE_TARGETS=1 ./bin/heybug serve # :8080
cd web && npm install && npm run dev # :5173, proxies /apiOpen http://localhost:5173 and use the dev login. HEYBUG_ALLOW_PRIVATE_TARGETS=1 lets you test localhost apps.
Next
- Learn the vocabulary: key terms
- Run from a terminal or CI: CLI, CI
- Run from an AI assistant: MCP
- Supported stacks: supported stacks