agent-browser stream encoding accepts quality and dimension settings
Introduced 2026-08-02 · score 0.96
HOW TO USE IT
When streaming frames and bandwidth is constrained, set the daemon’s JPEG quality and, if downscaling is needed, both maximum frame dimensions. These settings are read once at daemon startup; the dimensions cap encoded frames without resizing the page.
AGENT_BROWSER_STREAM_QUALITY=20 AGENT_BROWSER_STREAM_MAX_WIDTH=640 AGENT_BROWSER_STREAM_MAX_HEIGHT=360 agent-browser stream enableWHY THIS HELPS
Reduce bandwidth while streaming browser frames without lowering the frame rate.
BEFORE THIS CHANGE
Frames used hardcoded JPEG quality 80 at the session viewport; frame rate was the only bandwidth lever.
REQUIREMENTS AND LIMITATIONS
- Version: v0.33.2
- AGENT_BROWSER_STREAM_QUALITY: JPEG quality from 0 to 100; default 80. Lower values reduce bandwidth.
- AGENT_BROWSER_STREAM_MAX_WIDTH: Maximum encoded frame width in pixels; defaults to the viewport and does not resize the page.
- AGENT_BROWSER_STREAM_MAX_HEIGHT: Maximum encoded frame height in pixels; defaults to the viewport. Set both width and height to downscale a larger viewport.
- Prerequisite: Set encoding environment variables before daemon startup; encoding settings are daemon-wide and read once at startup.
- Prerequisite: Streaming is available through the agent-browser stream commands; the official guide documents `agent-browser stream enable`.
- Settings are read once per daemon.
- Width and height default to the session viewport; a larger viewport is not downscaled unless both are set.
FIRST-PARTY EVIDENCE
- https://github.com/vercel-labs/agent-browser/releases/tag/v0.33.2
- https://github.com/vercel-labs/agent-browser/blob/main/skill-data/core/references/streaming.md
- https://github.com/vercel-labs/agent-browser/blob/main/CHANGELOG.md
Check the installed version and the source before using it. Entry JSON