Stealth browser REST server for AI agents wrapping the Camoufox engine
From README links · today
TypeScript REST API exposing a stealth Firefox fork to AI agents.
What they did
They built CamoFox Browser Server, a TypeScript REST API that wraps the Camoufox stealth browser engine (a Firefox fork with C++ engine-level fingerprint spoofing) so AI agents and any language can drive a browser over HTTP. The server provides multi-session isolated browser contexts keyed by userId (defaults of 50 sessions and 10 tabs each), persistent per-user Firefox profiles that keep cookies, localStorage and IndexedDB across sessions, geo presets with locale/timezone/geolocation, and per-session proxy overrides with hybrid geo modes. It adds accessibility snapshots annotated with stable eN element refs for precise interaction, snapshot pagination for large pages, 14 search macros (Google, YouTube, Amazon, Reddit, Wikipedia, Twitter, Yelp, Spotify, Netflix, LinkedIn, Instagram, TikTok, Twitch), structured schema-driven JSON extraction without arbitrary JavaScript, network and console capture, Playwright tracing with trace artifact management, cookie import, an AES-256-GCM auth vault, pipeline scripting, and a 50+ command CLI. OpenClaw-compatible endpoints and an external MCP companion let agent frameworks connect directly.
How it went
Functional Preview (Phase 1) release: the REST API and CLI are usable for agent workflows today, with backward-compatible aliases for renamed endpoints and an external MCP companion. Anti-detection is robust because spoofing happens at the engine level rather than via fragile JS patches, and accessibility snapshots keep token usage lower than raw HTML or screenshots.
Worth knowing
It is explicitly a Preview release, so new features may land between minor versions and some non-goals are documented. YouTube transcript extraction is service-level with no public API route yet. Bearer auth is only enforced when CAMOFOX_API_KEY is set, so unset deployments are open. Requires Node 22+ and the Camoufox engine; stealth browsing may still violate some sites' terms of service.
Wiring
Install with Node 22+ and start the Express server; routes are modular and typed in strict TypeScript. Clients call session endpoints with a userId to get an isolated context, then tab endpoints to navigate, snapshot (with offset pagination), and act on eN element refs. Search macros and structured extract are thin layers over the same session. Proxy and geo presets are configured per session via named profiles or raw credentials. Set CAMOFOX_API_KEY to require bearer auth for cookie import and other sensitive routes. OpenClaw-compatible endpoints (/start, /tabs/open, /act) and the external CamoFox MCP bridge agent frameworks to the same REST surface.
Try it yourself
Clone https://github.com/redf0x1/camofox-browser, install dependencies with Node 22+, and start the server locally. Set CAMOFOX_API_KEY so bearer auth is enforced. Then write a small script that creates a session for a userId, opens a tab to a search macro (e.g. Reddit), takes an accessibility snapshot, clicks an element by its eN ref, and runs a structured extract against a simple schema. Finally, export a Playwright trace and list the trace artifacts for that user.
Tools in this stack
Run this stack
Install the stack into this project. It writes AGENTS.md and the manifest, merges the MCP servers into .mcp.json, and — with --yes — runs the tool installs.
npx runchr install runchr/stack-camofox-browser-and-redf0x1-camofox-browsercurl -s https://api.runchr.com/api/recipes/runchr/stack-camofox-browser-and-redf0x1-camofox-browser/manifestThis stack has no prompt yet. You get the tools and the wiring, not the prompt.
The manifest is also at api.runchr.com/api/recipes/runchr/stack-camofox-browser-and-redf0x1-camofox-browser/manifest.