Using Firefox
Vibium launches Chrome by default. Firefox is supported as an alternative engine, using Firefox’s native WebDriver BiDi — no driver binary involved.
Install
Section titled “Install”$ vibium install --engine firefoxInstalling Firefox v159.0.1 (release channel)...Downloading Firefox from https://ftp.mozilla.org/pub/firefox/releases/159.0.1/mac/en-US/Firefox%20159.0.1.dmg...Installation complete!Firefox: /Users/you/Library/Caches/vibium/firefox/release/159.0.1/Firefox.app/Contents/MacOS/firefoxFirefox installs into the vibium cache next to Chrome for Testing. The vibium
binary auto-installs the selected engine on first launch on macOS and Linux,
same as Chrome, so the CLI, MCP, and every client get it for free. On Windows, Firefox auto-install is not available:
install Firefox yourself and point VIBIUM_ENGINE_PATH at firefox.exe.
Release channels
Section titled “Release channels”--channel beta (or VIBIUM_ENGINE_CHANNEL=beta) selects the Firefox beta instead of the release build. The channel applies to install and launch alike: each channel is cached separately, and only the selected one is run, so an installed beta never shadows stable. In the clients, pass channel when starting the browser:
const bro = await firefox.start({ channel: 'beta' });bro = firefox.start(channel="beta")Browser bro = Vibium.start( new StartOptions().engine("firefox").channel("beta"));The release channel covers everything vibium supports, including video recording (Firefox 154+); the beta is for trying upcoming Firefox changes early.
Launch
Section titled “Launch”CLI — every command accepts --engine, or set it once with VIBIUM_ENGINE=firefox:
$ vibium start --engine firefoxJavaScript — a named launcher, or the engine option:
const { browser, firefox } = require('vibium');const bro = await firefox.start();
// equivalent:const bro = await browser.start({ engine: 'firefox' });The synchronous JavaScript API supports the same two forms:
const { browser, firefox } = require('vibium/sync');const bro = firefox.start();
// equivalent:const bro = browser.start({ engine: 'firefox' });Python:
from vibium import browser, firefoxbro = firefox.start()
# equivalent:bro = browser.start(engine="firefox")Java:
Browser bro = Vibium.start(new StartOptions().engine("firefox"));MCP — browser_start takes an engine argument (chrome or firefox) and
an optional Firefox channel argument (release or beta).
Selecting Firefox with an environment variable
Section titled “Selecting Firefox with an environment variable”The VIBIUM_ENGINE env var changes the default engine of the vibium binary
itself, so code that uses browser-neutral APIs can select Firefox without a
code change:
$ VIBIUM_ENGINE=firefox node my-script.jsBrowser-specific features still differ. In particular, native video recording currently requires Firefox, while PDF output may differ between engines.
Environment variables
Section titled “Environment variables”| Variable | Effect |
|---|---|
VIBIUM_ENGINE | Default engine (chrome or firefox) when --engine is not given |
VIBIUM_ENGINE_PATH | Use this Firefox executable instead of the vibium cache; when set, channel selection does not apply |
VIBIUM_ENGINE_CHANNEL | Channel to install and run: release (default) or beta for Firefox, stable (default), beta, dev, or canary for Chrome; same as --channel or the clients’ channel option |
VIBIUM_ENGINE_VERSION | Pin the exact version to install and run (e.g. 153.0.4) instead of the default; keeps CI and fleets on one version until you move the pin |
Without a pin, the default channels (release/stable) install the
known-good version baked into this vibium release, so a browser release
cannot break installs before a vibium release has tested it. The other
channels install their current version. VIBIUM_ENGINE_CHANNEL and
VIBIUM_ENGINE_VERSION apply to both engines; VIBIUM_ENGINE_PATH is
Firefox-only, and setting it with --engine chrome is an error rather than
a silent no-op.
Feature notes
Section titled “Feature notes”| Capability | Chrome | Firefox |
|---|---|---|
| Navigation, elements, input, pages, screenshots, storage, and trace recording | Supported | Supported and covered by the Firefox core suite |
Native video (recording.start()) | Not implemented by Chrome yet | Firefox 154+; see Record Video |
Dialog callbacks and capture.dialog() | Supported | Supported and covered by the cross-engine suites |
| Network events and request interception | Supported | Supported and covered by the cross-engine suites |
PDF printing (page.pdf) | Supported | Output and support may differ |
Console and page error events (onConsole, onError) | Supported | Supported and covered by the cross-engine suites |
Download events (onDownload, capture.download()) | Supported | Supported and covered by the cross-engine suites |
New tab and popup events (onPage, onPopup) | Supported | Supported and covered by the cross-engine suites |
Navigation capture (capture.navigation()) | Supported | Supported and covered by the cross-engine suites |
CI runs the full suite on Chrome. A separate Firefox job runs capability-selected CLI and client tests plus focused installation, launch, channel, and video coverage. Browser-driving cross-engine tests declare their requirements through the shared capability adapters; unsupported features are reported as skips with reasons.