Heal

Getting started

Getting started with Heal for agentic testing.

Heal is an agent that writes end-to-end test code in a lightweight SDK fully compatible with Playwright. Unlike traditional web navigation SDKs, Heal uses a powerful cache so that it calls LLMs only when needed to maximize speed and stability.

The Heal CLI contains:

  • a test runner optimized for running and analyzing tests with LLMs
  • an autopilot that writes and fixes tests either interactively, or unsupervised (we avoid "headless" because that's already used for testing browsers)

Get started

In this getting started guide, pick the path that matches how you want to try Heal:

1. Clone the starter test repo

git clone https://github.com/heal-dev/heal-test-template.git; 
cd heal-test-template
git clone git@github.com:heal-dev/heal-test-template.git
cd heal-test-template

2. Install dependencies

Make sure you have Node.js (version 22.14 or above) and npm installed, then run:

npm install

3. Authenticate with Heal

npx heal login

4. Run the autopilot

npx heal autopilot

Make sure you have Node.js (version 22.14 or above) and npm installed, then run:

1. Install the Heal CLI globally

npm install -g @heal-dev/heal-cli

2. Authenticate with Heal

Run:

heal login

**3. Intialize a repo

mkdir my-project
cd my-project
heal init
  1. Get started
heal autopilot

Editor extensions

To write tests in a more interactive experience, and run test code line by line, you can use Heal's Editor extensions:

Next steps