Change viewport, browser provider, or other workspace settings after initial setup.
npm create libretto@latest and npx libretto setup handle initial configuration for you. The commands on this page are for changing settings after the fact..env file before running CLI commands. Put provider credentials there:12345# inside .env KERNEL_API_KEY=<kernel-api-key> BROWSERBASE_API_KEY=<browserbase-api-key> BROWSERBASE_PROJECT_ID=<browserbase-project-id> STEEL_API_KEY=<steel-api-key>
.libretto/config.json for persistent workspace preferences like the default browser provider..libretto/config.json. You can edit it directly.123456{ "version": 1, "provider": "local", "viewport": { "width": 1280, "height": 800 }, "sessionMode": "write-access" }
path versionnumberrequiredpath snapshotModelstringnpx libretto snapshot, which now prints a compact accessibility tree directly instead of using a configured analysis model.path providerstring"local", "kernel", "browserbase", "steel", or "libretto-cloud". Defaults to "local". Can be overridden per-command with --provider or the LIBRETTO_PROVIDER environment variable. Resolution order: --provider flag → LIBRETTO_PROVIDER env var → this config field → "local".kernel, browserbase, steel, or libretto-cloud, set provider here too. Then local open, run, and debugging use the same browser as production — the container's Chromium isn't identical to your local one, and the drift causes inconsistent rendering and timing.path viewportobjectopen and run when you don't pass --viewport. Defaults to 1366x768 if not set.path sessionModestringopen, connect, and run. Must be "read-only" or "write-access". Defaults to "write-access" when omitted. Pass --read-only or --write-access to open, connect, or run to override when creating a session.path windowPositionobject