Skip to main content

Overview

Refrain is a self-healing browser automation framework. AI generates reproducible runbooks, reruns execute with zero AI tokens, and AI agents auto-patch your automation when UIs change. Traditional browser automation (Playwright, Selenium) breaks with every UI change. Autonomous AI agents produce different results every time. Refrain combines the best of both:
  1. AI generates a reproducible runbook by exploring your web app
  2. Zero AI cost on reruns — deterministic execution needs no tokens
  3. Self-healing — when UIs change, AI agents detect selector drift and auto-patch your runbooks
  4. Human-in-the-Loop — Slack / Teams / Discord approval workflows keep you in control

Three interfaces

CLI

Generate and execute runbooks from the command line. Ideal for developers and CI/CD pipelines.

SDK

TypeScript SDK for programmatic access. Embed browser automation into your applications.

Web Console

Web-based management UI. Create, schedule, and monitor runbook executions without code.

How it works

1

Set a goal

Tell AI what you want to accomplish: “Log in and export the dashboard CSV”
2

AI builds a runbook

AI explores your app, records each action, reviews the steps, and outputs a reproducible runbook.
3

Execute deterministically

The runbook executes with zero AI tokens. Whether you run it once or a hundred times, the cost stays at zero.
4

Self-healing when UIs change

When the target app updates its UI, AI agents detect selector drift and auto-patch your runbooks. No manual maintenance — your automation keeps running.

Key features

Next steps

Quickstart

Get up and running in 5 minutes.

Plan & Pricing

Compare features across tiers.