Canary is a QA harness purpose built for coding agents like Claude Code. It reads your code diffs, identifies the affected UI flows, and tests them in real browser instances using Claude Code.
Under the hood, it ships with a QuickJS WASM sandbox exposing the full Playwright API, letting Claude automate any long-running UI task — from handling logins to navigating complicated UIs.
Instead of clicking through flows by hand to reproduce and verify issues, Canary provides full session recordings. You get screen recordings with console logs, network requests, HARs, and Playwright traces so you can inspect exactly what the agent did.
Every Canary run captures a reusable Playwright script. Letting you re-run it in CI with zero inference cost on replay.
Most testing tools force you to choose between two extremes:
- An opaque agent run you can't reproduce.
- Raw Playwright scripts you have to write and maintain by hand.
Canary doesn't make you choose: the agent does the QA and hands you a reproducible script.
Features
- See exactly what happened. Trace, video, network, console, and a screenshot of every step — captured automatically.
- Reproducible by default. Canary turns each run into a real Playwright script. Let your agent discover a flow once; re-run it forever.
- One file, zero setup. Every session is a self-contained
report.html — open it, commit it, send it. No server, no build.
- Built for agents. Drop-in plugins for Claude Code, Cursor, and Codex.
- Sandboxed. Scripts run in a QuickJS WASM sandbox with the full Playwright
Page API — no Node, no host access.
Who it's for
https://github.com/user-attachments/assets/8459994a-b43c-4483-bb4a-00522d1d03fe
You describe the flow in plain language; your agent drives a real browser and hands back both a
report you can just read and the exact Playwright script — plus the full trace — behind it. Most
tools make you pick one: an opaque agent run you can't reproduce, or raw Playwright you write and
maintain by hand. Canary gives you both.
| You are a… | Instead of… | Canary gives you… |
|---|
| Developer | Writing and maintaining Playwright/E2E scripts by hand | A reusable script captured from every run — re-run it in CI, no agent cost on replay |
| QA engineer | Clicking through flows manually to repro and verify | Evidence by default — trace, video, network, console, and a screenshot of every step |
| PM / reviewer | Waiting on a build or trusting "works on my machine" | A self-contained report.html you open and read — every step, replayable and shareable |
Get started
npm i -g @usecanary/cli @usecanary/ui # puts `canary` + `canary-viewer` on your PATH
canary install # one-time: Chromium + the runtime into ~/.canary (~150 MB)
…or run the guided wizard, which offers to install all of the above for you:
npm create canary@latest # guided setup (Ink wizard)
Record a session and open the report:
id=$(canary session start --name "checkout")
canary run ./open.js --session "$id" --step open
canary run ./submit.js --session "$id" --step submit
canary session end "$id" # -> ~/.canary/sessions/<id>/report.html
canary-viewer # browse every recorded session
canary stop # shut the background daemon down when you're done
Just need a quick one-off with no recording? Drive the browser engine directly:
echo 'const p = await browser.getPage("main");
await p.goto("https://example.com");
console.log(await p.title());' | canary-browser
Or attach to a Chrome you already have open — launch it with --remote-debugging-port=9222, then
canary-browser --connect (it auto-discovers the port, or pass the URL explicitly). Handy for driving
a browser that's already logged in:
canary-browser --connect http://localhost:9222 <<'EOF'
const page = await browser.getPage("main");
console.log(await page.title());
EOF
Prefer not to install? Every command also runs one-off via npx, e.g.
npx @usecanary/cli session start … and npx @usecanary/ui.
Everything your agent does, on the record