# Libretto — An open source CLI to integrate with any website

> An open source CLI to integrate with any website

```yaml
url: "https://www.scrolllaunch.com/products/libretto"
website: "https://libretto.sh/"
tier: premium-plus · Verified
upvotes: 9
launch_week: 2026-W20
launched: "Week 20, 2026"
categories: "AI, Productivity"
tags: "Open source, Claude, RPA"
pricing: free
maker: Michael Kronovet
created: 2026-05-11
peak_rank: "#6 (Week 20, 2026)"
```

## About Libretto

Libretto is an agent skill and token-efficient CLI that makes it easy for your coding agent to inspect live pages, reverse-engineer network requests, and generate deterministic browser automations.

There’s lots of tools that use runtime AI like Browseruse and Stagehand which we tried, but (1) they’re reliant on custom DOM parsing that's unreliable on older and complicated websites (including all of healthcare). Using a website’s internal network calls is faster and more reliable when possible. (2) They can be expensive since they rely on lots of AI calls and for workflows with complicated logic you can’t always rely on caching actions to make sure it will work. (3) They’re at runtime so it’s not interpretable what the agent is going to do. You kind of hope you prompted it correctly to do the right thing, but legacy workflows are often unintuitive and inconsistent across sites so you can’t trust an agent to just figure it out at runtime. (4) They don’t really help you generate new automations or help you debug automation failures.

We wanted a way to reliably generate and maintain browser automations in messy, high-stakes environments, without relying on fragile runtime agents.

Libretto is different because instead of runtime agents it uses “development-time AI”: scripts are generated ahead of time as actual code you can read and control, not opaque agent behavior at runtime. Instead of a black box, you own the code and can inspect, modify, version, and debug everything.

Rather than relying on runtime DOM parsing, Libretto takes a hybrid approach combining Playwright UI automation with direct network/API requests within the browser session for better reliability and bot detection evasion.

It records manual user actions to help agents generate and update scripts, supports step-through debugging, has an optional read-only mode to prevent agents from accidentally submitting or modifying data, and generates Typescript code in your repo.

## Overview

### Who is it for?

developers

### Problem

There’s lots of tools that use runtime AI like Browseruse and Stagehand which we tried, but (1) they’re reliant on custom DOM parsing that's unreliable on older and complicated websites (including all of healthcare). Using a website’s internal network calls is faster and more reliable when possible. (2) They can be expensive since they rely on lots of AI calls and for workflows with complicated logic you can’t always rely on caching actions to make sure it will work. (3) They’re at runtime so it’s not interpretable what the agent is going to do. You kind of hope you prompted it correctly to do the right thing, but legacy workflows are often unintuitive and inconsistent across sites so you can’t trust an agent to just figure it out at runtime. (4) They don’t really help you generate new automations or help you debug automation failures.

### What makes it unique

Libretto is different because instead of runtime agents it uses “development-time AI”: scripts are generated ahead of time as actual code you can read and control, not opaque agent behavior at runtime. Instead of a black box, you own the code and can inspect, modify, version, and debug everything.

Rather than relying on runtime DOM parsing, Libretto takes a hybrid approach combining Playwright UI automation with direct network/API requests within the browser session for better reliability and bot detection evasion.

It records manual user actions to help agents generate and update scripts, supports step-through debugging, has an optional read-only mode to prevent agents from accidentally submitting or modifying data, and generates code that follows all the abstractions and conventions you have already in your coding repo.

## Details

### Platforms

- cli

### Tech stack

- playwright
- typescript

### Tags

`#Open source` · `#Claude` · `#RPA`

## Weekly rankings

- Week 20, 2026: **#6** of 18 (9 upvotes)

## Links

- Website: https://libretto.sh/
- GitHub: https://github.com/saffron-health/libretto
- Discord: https://discord.gg/NYrG56hVDt
- Demo video: https://www.youtube.com/watch?v=0cDpIntmHAM

## Explore

- [More in AI](https://www.scrolllaunch.com/products?category=AI)
- [More in Productivity](https://www.scrolllaunch.com/products?category=Productivity)
- [All product launches](https://www.scrolllaunch.com/products)
- [Other launches in Week 20, 2026](https://www.scrolllaunch.com/week/2026/20)

_HTML version: https://www.scrolllaunch.com/products/libretto_
