Agent Browser Runtime Deploy
Agent Buildingagent-browser-runtime-deployAgent Browser Runtime Deploy is an Agent Skill for agent building published in the energypantry/agent-browser-runtime repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Deploy and verify Agent Browser Runtime locally for an agent that needs a compose-managed real Chrome runtime with persistent profile, noVNC handoff, leases, artifacts, browser consistency policy, and generic extractor execution.
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Inspect the Agent Skill at https://github.com/energypantry/agent-browser-runtime/blob/HEAD/skills/codex/agent-browser-runtime-deploy/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/agent-browser-runtime-deploy, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Agent Browser Runtime Deploy
Use this skill when asked to install, run, repair, or verify Agent Browser Runtime on a local machine.
Requirements
- Docker with Compose v2
- Node.js 20+ on the host for the CLI and syntax checks
- Python 3 for smoke-test JSON validation
- Ports available on loopback:
17890broker,19223CDP proxy,16080noVNC
First Deploy
From the Agent Browser Runtime repository root:
cp .env.example .env
docker compose up --build -d
./scripts/smoke-test.sh
To use a local fingerprint-chromium binary, set BRS_FINGERPRINT_CHROMIUM_HOST_PATH and start with:
docker compose -f docker-compose.yml -f docker-compose.fingerprint.yml up --build -d
Expected endpoints:
- Broker:
http://127.0.0.1:17890 - CDP proxy:
http://127.0.0.1:19223 - noVNC:
http://127.0.0.1:16080/vnc.html?autoconnect=true&resize=remote - TLS gateway:
http://tls-gateway:8080inside compose, surfaced through./cli/brs.js status
Verification
Run:
./cli/brs.js status
./cli/brs.js fetch https://example.com --agent deploy-check --task smoke --screenshot --humanize enhanced
./cli/brs.js extract example.extract.js https://example.com --agent deploy-check --task extractor-smoke --screenshot --save-html
status should report extensionConnected: true, stealth.mode: trusted-real-browser, stealth.enabled: false, and platformPacing.enabled: true.
Operating Rules
- Use broker leases; do not directly drive the same Chrome tabs from multiple agents.
- Keep at least 70 ms between broker-driven requests. For unknown or sensitive targets, serialize per domain and use seconds-to-minutes cooldowns.
- Use noVNC for login, Captcha, MFA, sliders, and account-safety checks.
- Keep
.env,data/,artifacts/, andruntime/profile/local and uncommitted. - Keep site-specific/private extractors outside the public repository unless they are intentionally generic examples.
Browser Consistency Controls
Agent Browser Runtime intentionally exposes browser identity controls:
BRS_RUNTIME_PRESETBRS_STEALTH_MODEBRS_GENERATE_FINGERPRINT_ENABLEDBRS_FINGERPRINT_CHROMIUM_HOST_PATHBRS_FINGERPRINT_HEADERS_ENABLEDBRS_FINGERPRINT_PATCHES_ENABLEDBRS_STEALTH_EXCLUDED_HOSTSBRS_CANVAS_NOISE_ENABLEDBRS_AUDIO_NOISE_ENABLEDBRS_TLS_GATEWAY_PROXY_SERVERBRS_TLS_GATEWAY_BASE_URLBOT_HUMANIZE_LEVEL
Default mode is trusted-real-browser. Set BRS_STEALTH_MODE=legacy-js only for an explicit compatibility experiment, and set BRS_STEALTH_MODE=patched-browser when a mounted browser binary owns identity changes. Set BRS_RESET_PROFILE_ON_SIGNATURE_CHANGE=1 only when an intentional clean browser profile is required.
Repair Loop
docker compose ps./cli/brs.js status- If broker is up but
extensionConnectedis false, restart withdocker compose up --build -d. - If ports are occupied, change
BROKER_HOST_PORT,CDP_HOST_PORT, orNOVNC_HOST_PORTin.env. - If profile state is corrupt, stop the stack, back up or remove
runtime/profile/, then start again.