chromiumoxide
Async Rust API for controlling Chrome or Chromium over the Chrome DevTools Protocol.
At a Glance
chromiumoxide is a Rust library for controlling Chrome/Chromium over the DevTools Protocol, licensed under Apache-2.0 or MIT.
Engagement
Available On
Listed Dec 2026
About chromiumoxide
chromiumoxide is a Rust library that provides a high-level, async API for controlling Chrome or Chromium through the DevTools Protocol. It can launch a headless or full Chrome/Chromium instance, or connect to one that is already running. The latest listed release is v0.9.1.
What It Is
chromiumoxide is a browser automation library for Rust, built on the tokio runtime. It covers all types of the Chrome DevTools Protocol, and lets developers script pages, find elements, click, type text, press keys, wait for navigation and read page content. Its references include chromedp, rust-headless-chrome and puppeteer.
How It Works
A program launches a Browser with a BrowserConfig, spawns a handler task that drives the websocket connection, then opens pages and interacts with elements. Most Page and Element functions are simplified combinations of protocol commands, such as Page::pdf, which produces PDF bytes. Page::execute accepts any Command type, so developers can write their own wrappers for protocol commands that have no dedicated helper.
Generated Protocol Types
The chromiumoxide_pdl crate parses Chrome PDL files and generates Rust code, which the chromiumoxide_cdp crate includes at build time. Each protocol domain gets its own Rust module. Every command has a Params type with builder support and a matching Returns type, and all events are bundled in a single CdpEvent enum. The generated output is roughly 60K lines, so compilation takes some time.
Setup Notes
By default it looks for an installed Chromium on the machine. An optional fetcher feature can download and install a browser on some platforms, and requires a TLS feature (rustls or native-tls) plus a zip feature (zip0 or zip8). The README documents a known issue: generated code does not compile when experimental types are turned off. It also notes that launch timeouts can occur if Chromium's language is not English, because the debugging port is parsed from process output.
Community Discussions
Be the first to start a conversation about chromiumoxide
Share your experience with chromiumoxide, ask questions, or help others learn from your insights.
Pricing
Open Source
chromiumoxide is a Rust library for controlling Chrome/Chromium over the DevTools Protocol, licensed under Apache-2.0 or MIT.
- Licensed under Apache License 2.0 or MIT license (dual-licensed)
- High-level async API to control Chrome/Chromium over the DevTools Protocol
- Launch headless or full Chrome/Chromium, or connect to a running instance
- Optional fetcher feature to download Chromium automatically
Capabilities
Key Features
- Async high-level API for Chrome/Chromium
- Full Chrome DevTools Protocol type support
- Launch headless or headed browser, or connect to a running instance
- Element finding, clicking, typing and key presses
- Page navigation and content retrieval
- PDF generation via Page::pdf
- Page::execute for sending any CDP command
- Builder-style Params types for each command
- Optional browser fetcher to download Chromium
- Code generation from PDL files
