Documentation Index
Fetch the complete documentation index at: https://libretto.sh/docs/llms.txt
Use this file to discover all available pages before exploring further.
Save and reuse authenticated browser state across runs.
save
Thesave command saves the current browser session’s cookies and localStorage as a named auth profile. Load the profile later with --auth-profile to skip manual login.
When to use save
Only use save when you want to save or reuse authenticated browser state. A typical flow:
Flags
The domain (or URL) used to name the saved profile. Passed as the first
positional argument. Example:
linkedin.com.The session to save. Use the same name you passed to
npx libretto open --session.Profile storage
Profiles are stored in.libretto/profiles/<domain>.json. They are:
- Machine-local, not shared across environments or team members.
- Git-ignored by default.
- Subject to session expiry. If authentication stops working, repeat the login-and-save flow.
Profiles contain session cookies that are effectively credentials. The
.libretto/ directory is already git-ignored, but double-check your
.gitignore if you’re storing Libretto state in a non-standard location.