App template
OpenClaw Browser Sandbox
A headless Chrome that OpenClaw or other services drive through the DevTools protocol.
- Memory when idle
- about 180 MiB
- CI measures it once the app is ready and before any traffic. Leave room for more.
- Tested on
- x86 servers
Introduction
This template runs a headless Chrome that OpenClaw or another service drives through the Chrome DevTools protocol (CDP).
The browser is for one trusted owner. It has no web page, no sign-in and no token. Only pods in the same project that carry the label templates.zeabur.com/openclaw-browser-sandbox-client: "true" can reach it.
Values you provide
You don’t fill in anything when you deploy.
Getting started
-
In Zeabur OSS, open the
openclaw-sandbox-browserservice. When Overview shows its replica as ready, the service is up. It has no domain. -
Pods of the OpenClaw template already carry the client label. Any other client Pod needs it in its Pod template:
templates.zeabur.com/openclaw-browser-sandbox-client: "true" -
From that pod, use this address as the CDP endpoint:
http://openclaw-sandbox-browser:9222Pods without the label are blocked. There is no generated Secret, so anything allowed to connect controls the browser.
Configuration
Connect OpenClaw
Set browser.profiles.<name>.cdpUrl to the address above and make that profile the default:
{
browser: {
enabled: true,
defaultProfile: "sandbox",
profiles: {
sandbox: { cdpUrl: "http://openclaw-sandbox-browser:9222" },
},
},
}
With an http:// address, OpenClaw finds the WebSocket endpoint through /json/version. See Remote and hosted browsers.
Troubleshooting
The browser restarts or stops answering
In Zeabur OSS, open the openclaw-sandbox-browser service. Check that Overview shows its replica as ready, then read the Logs tab. Open Deployments, then Events. If the events show OOMKilled, raise Maximum memory in Settings → Compute. See Adjust replicas, resources, and health checks and View logs, events, and usage, and open a terminal.
The client cannot connect
A network policy lets in only pods with the client label, and only on port 9222. Check that the client runs in the same project and carries the label from Getting started. See Remote and hosted browsers.
Resources
Each service is guaranteed the first amount and can use up to the second.
openclaw-sandbox-browser
Ports
9222
CPU
0.25 cores to 2 cores
Memory
512 MiB to 2 GiB
Technical details
This release
- Version
- edcc8e5
- Licence
- MIT
- Homepage
- github.com
Tested in CI
CI installs these exact files on a new cluster, waits until they are ready, then records the idle memory.
| Distribution | Platform | Kubernetes | Passed | Idle memory |
|---|---|---|---|---|
| kind | linux/amd64 | v1.37.0 | 176 MiB |
Security
This is a private browser for one owner. It runs without root rights, with a read-only filesystem, no extra privileges and no API token. Only Pods with its client label can reach it. Outbound traffic is not limited. Upstream turns off Chromium's built-in renderer sandbox, so a hostile web page can take over the browser pod.
Known risks
Risk
A malicious web page can take over the Chromium process, which has no sandbox. The attacker then gets the pod's full identity and the browser session data.
How it is handled
The description says to use it for a single owner. The pod holds no application or provider credentials, no host mounts and no Kubernetes token. Its filesystem is read-only, its state is temporary, its identity is restricted and its resources are limited. The browser can still open private and cloud metadata addresses unless you add an egress NetworkPolicy. Do not share one browser between users who do not trust each other.
Risk
The CDP port gives full control of the browser, and the proxy in front of it checks no password.
How it is handled
There is no public Ingress or LoadBalancer. A NetworkPolicy lets in only Pods in the same namespace with the label templates.zeabur.com/openclaw-browser-sandbox-client=true, and only on port 9222. The OpenClaw template sets this label. Anyone who can write pods or labels in that namespace is trusted. The browser runs headless only, and VNC and noVNC are turned off.
What the cluster needs
Zeabur OSS suggests the components a cluster is missing. Without it, install them first.