zendriver-rs
Async-first browser automation via the Chrome DevTools Protocol, with a coherent stealth identity and explicit anti-detection controls on by default — drive real Chrome from Rust, or hand the keys to an LLM agent over the Model Context Protocol.

A Rust port of zendriver. Drives Chrome via raw CDP — no WebDriver, no JS shim — with anti-detection patches baked in by default.
📖 User guide & full documentation → · 🦀 API reference (docs.rs) → · 🤖 MCP server for AI agents →
Quick example
use zendriver::Browser;
#[tokio::main]
async fn main() -> zendriver::Result<()> {
let browser = Browser::builder().headless(true).launch().await?;
let tab = browser.main_tab();
tab.goto("https://example.com").await?;
tab.wait_for_load().await?;
// Find by visible text (auto-waits up to the selector's timeout).
let link = tab.find().text("More information...").one().await?;
link.click().await?;
tab.wait_for_load().await?;
// Read back from the page's main world.
let title: String = tab.evaluate_main("document.title").await?;
println!("title: {title}");
browser.close().await?;
Ok(())
}
More working examples in crates/zendriver/examples/.
Feature matrix
| Feature | Default? | Use case | Extra deps |
|---|
stealth | yes | Anti-detection: spoofed UA/platform, full-surface WebGL parameter spoof resolved from measured GPU capability tiers, a 482-device catalogue to name or draw a specific GPU, isolated worlds, JS shim, opt-in gpu_backend for real-GPU WebGL/WebGPU rendering | (built-in to zendriver) |
interception | no | Block/modify requests via CDP Fetch.*; rule-based + streams | zendriver-interception |
expect | no | Playwright-style expect_response() / expect_request() | (in-tree, no extra crate) |
cloudflare | no | Solve Cloudflare Turnstile challenges | zendriver-cloudflare |
imperva | no | Imperva WAF / Incapsula bypass (reese84 / legacy / CAPTCHA) | zendriver-imperva |
datadome | no | DataDome bypass (device-check / CAPTCHA / block) + Surface::Webgpu coherence | zendriver-datadome |
monitor | no | Passive network monitor — buffered HTTP / WebSocket / SSE events via tab.monitor(), plus opt-in incremental body streaming | (in-tree, no extra crate) |
geo | no | Country code → coherent locale + languages (Accept-Language) + representative timezone persona overlay, plus opt-in geo_auto() exit-IP auto-resolution (exact probe timezone, not just representative) | reqwest (via zendriver-stealth) |
tracker-blocking | no | Opt-in third-party tracker / fingerprinter host blocklist (curated bundled list + BYO file / URL) | reqwest + dirs |
fetcher | no | Auto-download a pinned Chromium build — Chrome for Testing (default), ungoogled-chromium, or a Chromium snapshot | zendriver-fetcher + reqwest/zip |
Separate binary crate (not a feature on zendriver):