Use wrangler browser commands to manage Browser Run sessions from the command line.
browser create
Create a new Browser Run session
npx wrangler browser createyarn wrangler browser createpnpm wrangler browser create--labbooleandefault: falseEnable lab browser session with experimental Chrome features (e.g., WebMCP)
--keepAlivenumberalias: --kKeep-alive duration in seconds (60-600)
--jsonbooleandefault: falseReturn session info as JSON
--openbooleanOpen DevTools in browser (default: true in interactive mode)
Global flags
--vbooleanalias: --versionShow version number
--cwdstringRun as if Wrangler was started in the specified directory instead of the current working directory
--configstringalias: --cPath to Wrangler configuration file
--envstringalias: --eEnvironment to use for operations, and for selecting .env and .dev.vars files
--env-filestringPath to an .env file to load - can be specified multiple times - values from earlier files are overridden by values in later files
--experimental-provisionbooleanaliases: --x-provisiondefault: trueExperimental: Enable automatic resource provisioning
--experimental-auto-createbooleanalias: --x-auto-createdefault: trueAutomatically provision draft bindings with new resources
--install-skillsbooleandefault: falseInstall Cloudflare skills for detected AI coding agents before running the command
--profilestringUse a specific auth profile
browser close
Close a Browser Run session
npx wrangler browser close [SESSIONID]