Obscura (experimental)
This adapter does not fix upstream engine bugs or imply Chrome parity. Review the limitations below before choosing Obscura.
Obscura is a headless browser engine written in Rust. It runs real JavaScript through V8, speaks the Chrome DevTools Protocol, and targets web scraping and AI agent automation.
agent-browser manages Obscura the same way it manages Chrome. It spawns the obscura serve process, connects over CDP, and shuts it down when done. All downstream commands (snapshot, click, fill, screenshot, and so on) run through the same CDP path.
Installation
Install the Obscura binary before using it with agent-browser:
| Platform | Command |
|---|---|
| Linux (x86_64) | curl -LO https://github.com/h4ckf0r0day/obscura/releases/latest/download/obscura-x86_64-linux.tar.gz && tar xzf obscura-x86_64-linux.tar.gz |
| macOS (Apple Silicon) | curl -LO https://github.com/h4ckf0r0day/obscura/releases/latest/download/obscura-aarch64-macos.tar.gz && tar xzf obscura-aarch64-macos.tar.gz |
Move the binary somewhere in your PATH (e.g. /usr/local/bin/obscura or ~/.local/bin/obscura).
See the Obscura README for more install options, including Docker and building from source.
Usage
Use the --engine flag to select Obscura:
Or set it as the default via environment variable:
Or in ~/.agent-browser/config.json or a file loaded with --config:
Custom Binary Path
If the obscura binary is not in your PATH, use --executable-path:
Stealth mode
Obscura ships an optional stealth mode that presents a privacy-first, consistent browser fingerprint and blocks known trackers. Enable it for the Obscura engine by setting AGENT_BROWSER_OBSCURA_STEALTH:
When set, agent-browser launches obscura serve with --stealth. Accepted values are 1, true, yes, and on. Stealth is off by default and requires an Obscura build with stealth support; disabling it does not imply Chrome parity.
Differences from Chrome
Obscura is a purpose-built headless engine. Some Chrome-specific features are not available:
| Feature | Status |
|---|---|
Extensions (--extension) | Not supported |
Persistent profiles (--profile) | Not supported |
Storage state (--state) | Not supported |
File access (--allow-file-access) | Not supported |
Headed mode (--headed) | Not applicable (headless only) |
Proxy bypass (--proxy-bypass, config, or environment) | Rejected, even without a proxy |
| WebGPU, custom CA certificates, Chrome arguments | Not supported |
agent-browser returns a clear error if you combine --engine obscura with unsupported flags.
When to Use Obscura
Potential uses to evaluate include:
- Web scraping and data extraction with real JavaScript execution
- AI agent workflows that want a lightweight CDP target
- CI/CD environments where you prefer a single self-contained binary
- Setups that want a privacy-first, consistent browser fingerprint (Obscura ships an optional stealth mode)
Use Chrome when you need full browser fidelity, extensions, or persistent profiles.
Experimental Obscura provider
Select --engine obscura --executable-path /path/to/obscura to launch a local Obscura binary. This provider is experimental. Obscura v0.2.2 has known accessibility naming, hidden-element, iframe and screenshot fidelity gaps; successful CDP connection does not establish Chrome parity. Use Chrome for workflows that depend on these features until validated against your target pages.
Local development pages require OBSCURA_ALLOW_PRIVATE_NETWORK=1 in the environment before the session starts. Close and relaunch the named session when changing engine launch settings. Stealth support depends on how the Obscura binary was built. Unsupported options including --webgpu, --ca-cert, --args, and --proxy-bypass are rejected. Proxy bypass rules from proxyBypass config, AGENT_BROWSER_PROXY_BYPASS, NO_PROXY, or no_proxy are also rejected, even without a proxy. Remove those settings only if bypass is not needed; otherwise use Chrome. Explicit --engine obscura launches validate the current invocation's resolved bypass settings, even with an existing daemon; clearing those settings does not reuse stale daemon environment values. Startup discovery and CDP initialization each have a 10-second deadline, with bounded connection cleanup on initialization failure.
MCP tools use the same provider: set AGENT_BROWSER_EXECUTABLE_PATH in the MCP server's environment and pass extraArgs: ["--engine", "obscura"], because --executable-path is rejected in extraArgs. A separate engine-specific MCP tool is unnecessary because tools delegate to the canonical CLI parser.
For source-build testing, see the Obscura adapter contributor guide.