Browser Agent
Themeshbrow-agent is a daemon that runs alongside each browser session inside its network namespace or Firecracker VM. It provides health monitoring, process supervision, metrics collection, and filesystem watching.
The agent is automatically deployed by the Meshbrow platform. You only need to install it manually for self-hosted or custom setups.
Installation
- Homebrew (macOS/Linux)
- Go Install
- Binary
- Docker
Usage
Configuration
What It Does
The agent provides five core capabilities:Health Reporting
Sends periodic heartbeats to the host (browserd) over the unix socket. Reports:
- Browser process alive/dead status
- CPU and memory usage
- Uptime
- Process ID
Browser Process Supervision
Monitors the Chromium process. If the browser crashes, the agent reports it immediately via a health status change, allowingbrowserd to restart or destroy the session.
Metrics Collection
Collects system metrics at configurable intervals:- CPU utilization
- Memory usage (used/total)
- Disk usage
- Network I/O (bytes sent/received)
- Open file descriptors
- Active goroutines
Filesystem Watching
Monitors the session workspace for changes and streams events:- File creation
- File modification
- File deletion
.git, node_modules, __pycache__).
Graceful Shutdown
HandlesSIGTERM and SIGINT signals. On shutdown:
- Stops all subsystems (heartbeat, metrics, watcher)
- Sends a deregistration message to the host
- Exits cleanly