Quickstart
Install the GitHub App, set up your repo with interleave init, and start your first run.
Setup takes about 10 minutes. You'll sign in, install the GitHub App, let interleave init recreate
your local environment in the cloud, then trigger a run from a PR comment or the CLI.
You'll need your app running locally for step 4.
Would rather have your coding agent do this? Install the agent skill and ask it to set up Interleave.
Sign in
Open the Interleave dashboard and click Continue with GitHub. Interleave reads your GitHub profile and email only. Repository access comes from the GitHub App.
Home shows the same checklist as this page and ticks each step off as you go.
Install the GitHub App
On Home, click Install GitHub App. Choose the repos Interleave may test ("Only select repositories" is fine), then come back to the dashboard. The app reads code and writes PR comments and checks. It never pushes.
To add repos later: Projects → Add repository. Refresh from GitHub picks up repos you just granted.
Log in from the CLI
In the repo's root:
npx @interleaveqa/cli loginThis prints a one-time code and opens the dashboard's device page. Check that the code matches and
click Approve. On a remote machine, add --no-browser to print the URL instead.
Prefer a global install? npm install -g @interleaveqa/cli gives you the interleave command. The
rest of these docs write interleave …; with npx, use npx @interleaveqa/cli ….
Run interleave init
Start your app locally first
Before you run init, bring your app up the way you normally do: the database and other services
(Redis, Docker Compose and so on), then the dev server. Keep it running until init finishes.
init learns your setup by watching the app run. It reads the running processes for the exact start
command, port and folder, the running containers for service versions, and your local database's row
counts. If the app isn't running, init has to guess from your files, and an app it can't see may be
left out of interleave.yml.
npx @interleaveqa/cli initinit:
- Scans your repo and machine: lockfiles, toolchain files,
.env*keys, running processes and containers, local database row counts. Env values are fingerprinted, never sent. - Drafts a recipe: runtimes, services, setup steps, the app's start command and health check. It shows a summary for you to confirm.
- Classifies your env vars. Local services become sandbox sidecars, test keys are encrypted and uploaded, live keys are blocked, and production telemetry is turned off. See Secrets.
- Encrypts secrets on your machine to the project's public key and uploads the sealed box.
- Builds the environment in the cloud and streams each step:
Building in the cloud (setup 1a2b3c4d)…
00:12 runtimes (node 22.11) ✓
00:41 install ✓
00:48 postgres 16 · redis 7 ✓
01:05 setup (2 steps) ✓
01:20 GET http://localhost:3000/api/health → healthy ✓
01:38 snapshot ✓
✓ Environment ready · snapshot savedIf a step fails, a repair agent reads the log and retries with a fix (lines starting repair:). If it
needs something only you know, it asks (? …) and waits for your answer.
If the GitHub App isn't installed on the repo yet, init prints the install link and offers to open it.
Commit interleave.yml
When setup succeeds, init writes interleave.yml (and sometimes files under .interleave/). It
holds secret://NAME references, never values, so it's safe to commit:
git add interleave.yml .interleave && git commit -m "Add Interleave recipe" && git pushPR runs use the committed recipe. If you edit it by hand, run init again to rebuild the environment
from it. The interleave.yml reference lists every field.
Reset data between cases (optional)
A reset lets every test case start with a clean database. Without one, whatever a case creates (say, a new folder) is still there for the next case, which can make cases fail for no real reason.
If your app uses Postgres, there's nothing to do: Interleave resets it before every case. For any
other database (SQLite, MySQL, MongoDB, a hosted one), add a command that puts the data back to how
setup left it:
database:
command:
run: npm run db:resetIt runs before every case and retry, with the same environment as your app. Delete rows through a
connection rather than replacing the database file, since the app keeps it open. Home's checklist
has a Copy prompt for your agent button that has your coding agent write the reset for you. See
database.command for examples per stack.
Start your first run
On any open PR in the repo, comment:
@interleave testWithin a few seconds you get 👀 on your comment and a reply, 👀 Interleave QA · Run #N queued, with a Watch live → link. The reply is edited in place with the results when the run finishes, and the PR gets an Interleave QA check.
Add focus instructions after the command, on the same line or the lines below:
@interleave test check the checkout flow with an invalid ZIPNext
- Behind a login? Give Interleave a test user so cases start signed in.
initoffers to set one up, or use--test-user. - Want runs on every push? Turn on automatic PR runs.
- Learn to read a report and what each verdict means.