Saffron Health Open-Sources Libretto Browser Automation
Get the Tech newsletter
Daily tech — startups, AI labs, chips, the launches that shape the next decade. Free.
- Saffron Health open-sourced Libretto, a toolkit for building robust web browser automations that gives a coding agent a live browser and a token-efficient CLI.
- Libretto can inspect live pages, capture network traffic to reverse-engineer site APIs, record user actions and replay them as automation scripts, and debug broken workflows interactively against the real site.
- The toolkit was built to maintain browser integrations to common healthcare software, with the docs citing eClinicalWorks and Availity as example targets for scripting and selector-fixing workflows.
- Libretto is designed to be invoked as a skill through a coding agent, with example prompts that scrape LinkedIn posts, convert UI scripts into direct network calls, and rebuild workflows from a user's recorded browser actions.
- The CLI exposes commands including
open,run,snapshot,exec, andclosewith named sessions, ships vianpm install librettounder the MIT license, and requires Node.js plus a one-time Chromium download. - Libretto records anonymous telemetry limited to an install id, timestamp, command event name, error boolean, and package version—explicitly excluding URLs, auth state, API keys, and user identity—and can be disabled with
LIBRETTO_TELEMETRY_DISABLED=1orDO_NOT_TRACK=1.
Why it matters: Teams maintaining fragile browser integrations against third-party SaaS—Saffron's own pain point is EHRs like eClinicalWorks and Availity—get a MIT-licensed, npm-distributed toolkit that lets a coding agent drive a real browser with session management and token-efficient inspection. For developers building coding agents, Libretto packages the record/replay/debug loop into a reusable agent skill instead of a one-off scraper.



