Purpose: Ghostfox provides AI agents with a self-hostable stealth browser stack, solving the problems of headless Chrome being blocked by Cloudflare and similar services, and hosted "stealth browsers" requiring cookies and identity to pass through a third-party cloud. The anti-detection logic resides in C++ patches to its own Firefox fork, rather than in injected JS that detectors can read.
Main capabilities:
- Engine-level identity spoofing: identities are generated from coherent device presets (platform, screen, GPU, fonts, etc.) and injected at the engine layer, auditable before use; the supported surface session_create {"platform": "android"} generates an Android persona.
- Page reading: page_a11y returns visible interactive elements, stable refs, semantic roles, accessible names, and live values in one call, penetrating shadow DOM and same-origin iframes, and reports login state, page URL, and title; page_a11y {"native": true} reads Gecko's own accessibility tree.
- Operations by ref: page_click_ref, page_type_ref, page_wait_for, page_read_ref, page_upload_file, etc.; rich editors go through the editor's native input path with "verify after trigger."
- Debugging and network: page_console, page_errors, page_network_start/read/body exposed via MCP.
- CAPTCHAs: built-in local native MCP solvers for 8 types of CAPTCHAs, with no need for paid CAPTCHA-solving services; optional integration with vision models for cross-validation.
- Evidence and receipts: every mutating operation returns a receipt; sessions write append-only event logs, page snapshots, and the identity used to ~/.ghostfox/recordings/, retrievable via session_evidence; headful observation is supported.
- Vision and UI review: page_vision, page_ocr, page_match_image, page_pixels, page_contrast, page_ui_audit.
- Flutter Web E2E: use page_a11y(native=true), page_click_native, page_diff, page_mutations, page_wait_stable to drive Web versions of Flutter apps; logic/flow/UI can be covered, but visual consistency with real devices and platform channels still require a device or emulator.
Usage: distributed via PyPI, npm, Docker (GHCR), or the official MCP Registry (io.github.autokeren/ghostfox); the engine can also be built from source (engine/README.md, make dir && make build). The typical flow is session_create → page_open → page_a11y → operate by ref. The tool surface has two tiers: core has 26 by default, full has all 71, started with GHOSTFOX_TOOLSET=full. Sessions can be persisted with profile_dir; when migrating from Camoufox-based browsers, cookies must be copied and the original device identity matched.
Limitations: currently v0.7 alpha; authorized testing scope must be observed; the upstream trajectory of some patches mentioned in the documentation is unclear; performance, billing, and pricing information is not yet available.