Network Control

Block requests, throttle network speed, and inspect traffic using the network commands.

Blocking requests

agent-browser network block "*.analytics.com"
agent-browser network block "*/ads/*"
agent-browser network block "https://tracker.example.com"

Unblocking

agent-browser network unblock "*.analytics.com"
agent-browser network unblock --all

Throttling

agent-browser network throttle slow-3g
agent-browser network throttle fast-3g
agent-browser network throttle 4g
agent-browser network throttle --reset

Viewing network activity

Network activity is visible in the Dashboard network panel, or you can stream it:

agent-browser stream enable
agent-browser get cdp-url