CamoFox Browser Server
An anti-detection browser server for AI agents: wraps the Camoufox engine's C++-level fingerprint spoofing behind a REST API, CLI, MCP companion, and OpenClaw plugin endpoints.
- Source repo
- redf0x1/camofox-browser
- Stars
- ★ 445
- Last updated
- 11d ago
- License
- MIT
- Primary language
- JavaScript
- FA score
- 63/100 · Some gaps
At a glance
- How it runs
- Works with
- Universal · cross-platformClaude Code
- Cost
- Free, no paid service needed
- Setup effort
- Medium · a few setup steps
- You'll need
- Typical use
- AI agent developers who need to scrape or automate sites protected by Cloudflare, Google, and similar anti-bot systems, preferring engine-level fingerprint spoofing over fragile JS-injection patches.
- Not a fit if
- Teams with under 2GB RAM: browser plus contexts need 2GB+
- Windows users needing headed or virtual display: headless=true only
- Production teams needing a frozen API: Preview, shapes may change
- Maintenance
- Commits in the last 30 dayslast commit 2026-11-06latest release v2.5.0 (2026-11-06)+0.9 ★/day over 7 days
- Source review
- 63/100 · Some gaps
What does this agent do, and when should you use it?
CamoFox Browser Server (redf0x1/camofox-browser) is a strict-mode TypeScript Express server that wraps Camoufox — a Firefox fork whose fingerprint spoofing happens at the C++ engine level — into an HTTP service on port 9377 by default. It exposes roughly 42 core REST endpoints plus about 7 OpenClaw-compatible aliases covering tab creation, navigation, accessibility snapshots with stable eN element refs, click/type/scroll interactions, screenshots, cookie import/export, download tracking, and Playwright tracing. Each userId gets its own persistent Firefox profile directory, so cookies, localStorage, and IndexedDB survive across sessions, with idle contexts evicted via LRU. Built-ins include 14 search macros (Google, YouTube, Reddit, and more), 8 geo presets, and session-level proxy/geo overrides backed by named proxy profiles. A 50+-command CLI, an AES-256-GCM credential vault that never prints secrets to stdout (LLM-safe), schema-driven structured extraction, console capture, and deployment paths for Docker, Fly.io, Railway, and Render round out the package. The project is in Preview (Phase 1) with an additive-only deprecation model.
It runs an Express/TypeScript server (via the camofox-browser command or npm start) wrapping the Camoufox anti-detect Firefox engine. Clients drive the browser through REST calls — POST /tabs to create tabs, POST /tabs/:tabId/navigate to navigate or expand macros like @google_search, GET /tabs/:tabId/snapshot for an accessibility tree annotated with eN element refs, POST /tabs/:tabId/click|type|press|scroll for interaction, GET /tabs/:tabId/screenshot for PNG bytes — or via OpenClaw-compatible endpoints /start, /tabs/open, and /act. POST /tabs/:tabId/extract-structured returns deterministic JSON from a DOM schema without arbitrary JavaScript. The CLI offers camofox open/snapshot/click/type/session/cookie/auth/trace commands plus pipeline scripts via camofox run; auth save/load uses an AES-256-GCM + Argon2id vault, and --inject sends credentials straight to the page so the orchestrating LLM never sees them. The server manages persistent per-userId browser contexts (defaults: 50 sessions, 10 tabs each) with 8 built-in geo presets, a custom presets file (CAMOFOX_PRESETS_FILE), named proxy profiles (CAMOFOX_PROXY_PROFILES_FILE), and explicit-wins / proxy-locked geo modes; display mode toggles between headless, headed, and Linux-only virtual (Xvfb + noVNC, 2-minute auto-stop by default). A Docker image is published at ghcr.io/redf0x1/camofox-browser, with binding and auth controlled via CAMOFOX_HOST, CAMOFOX_AUTH_MODE, and CAMOFOX_API_KEY.
- AI agent developers who need to scrape or automate sites protected by Cloudflare, Google, and similar anti-bot systems, preferring engine-level fingerprint spoofing over fragile JS-injection patches.
- Engineers building LLM automation pipelines who want language-agnostic HTTP endpoints to open tabs, click by eN refs, take snapshots, and get JSON back.
- Teams running multiple accounts/identities that need logins to persist: each userId's persistent Firefox profile keeps cookies, localStorage, and IndexedDB.
- Data-collection jobs that must appear region-consistent (e.g., japan or uk presets) or lock timezone/locale to a proxy exit, using geo presets and proxy-locked mode.
- Users who want coding assistants like Claude Code or Cursor to drive a browser, via npx skills add redf0x1/camofox-browser or the external CamoFox MCP server.
- Automation flows that must log in without exposing passwords to an LLM: the auth vault stores credentials with AES-256-GCM and --inject fills them directly into the page.
Key setup facts
Pulled from the install and usage notes below. The project README has the current values.
- Environment variables
CAMOFOX_HOSTCAMOFOX_API_KEY- Config files
~/.camofox- Runtime
- Node.js 20+
- Install notes cover
- Windows · Docker
How do you install or deploy this agent?
Pick one of three routes.
1) From source: git clone https://github.com/redf0x1/camofox-browser.git && cd camofox-browser && npm install && npm run build && npm start (requires Node.js 20+; 2GB+ RAM recommended).
2) npm: npm install -g camofox-browser, then run camofox-browser to start the server, or use the camofox CLI directly (the CLI auto-starts the server when needed).
3) Docker: docker run -d --name camofox-browser -p 9377:9377 -p 6080:6080 -e CAMOFOX_HOST=0.0.0.0 -e CAMOFOX_AUTH_MODE=auto -e CAMOFOX_API_KEY=change-me -v ~/.camofox:/home/node/.camofox ghcr.io/redf0x1/camofox-browser. A Windows x64 portable ZIP (bundles Node.js and the Camoufox engine; headless=true only) and Fly.io/Railway/Render configs are also provided.
How do you use this agent?
After starting, verify with curl http://localhost:9377/health (expect {"ok":true,"engine":"camoufox","browserConnected":true}). REST: create a tab with POST /tabs and {"userId":"agent1","sessionKey":"task1","url":"https://example.com","preset":"japan"}; run a search macro via POST /tabs/:tabId/navigate with {"macro":"@google_search","query":"..."}; GET /tabs/:tabId/snapshot?userId=agent1 for the eN-referenced accessibility tree; POST /tabs/:tabId/click with {"userId":"agent1","ref":"e12"} to interact. CLI: camofox open https://example.com → camofox snapshot → camofox click e5 → camofox screenshot --output page.png → camofox close; add --format for machine-parseable output for agents. Credential injection: camofox auth save gmail once, then camofox auth load gmail --inject --username-ref e5 --password-ref e12. Multi-step flows go in a script file run with camofox run flow.txt. Security notes: CAMOFOX_HOST defaults to 127.0.0.1; non-loopback binds require CAMOFOX_API_KEY under auto mode, and navigation to loopback/private/metadata targets is blocked by default.
What are this agent's strengths and limitations?
- Anti-detection happens at the Camoufox C++ engine level rather than via JS injection; the README reports passing bot detection on Google, Cloudflare, and other anti-bot services — more robust than Puppeteer/Playwright JS patches.
- Complete agent-facing surface: REST API, OpenClaw-compatible endpoints, an external CamoFox MCP server, installable skills for Claude Code/Cursor and 40+ other agents, and a JSON-output CLI.
- Accessibility snapshots with stable eN element refs are smaller and more token-efficient than raw HTML or screenshots; extract-structured yields deterministic JSON without arbitrary JavaScript.
- Strong operational detail: persistent profiles, LRU context eviction, two-stage idle cleanup, health probing, Playwright tracing, AES-256-GCM credential vault, and versioned local state with fail-closed integrity checks.
- The project is in Preview (Phase 1): the API surface is not frozen — endpoint behavior and response shapes may change between minor versions — and incompatible local-state upgrades require manual deletion of profiles/registries.
- Heavy runtime footprint: browser plus contexts need 2GB+ RAM, one persistent Firefox process per userId (defaults: 50 sessions, 10 tabs per session); Linux is recommended for production.
- Platform constraints: Windows x64 supports headless=true only; Xvfb/VNC virtual displays are Linux-only, and VNC sessions auto-stop after 2 minutes by default.
- Deep upstream dependencies: it requires the Camoufox engine (the Windows portable build even excludes upstream fonts due to licensing), and YouTube transcript extraction additionally depends on yt-dlp.
How does this agent compare with similar options?
The README directly compares it with Puppeteer/Playwright: those rely on fragile JavaScript-level patches with limited fingerprint spoofing, whereas CamoFox uses Camoufox's C++ engine-level spoofing and exposes a REST API plus accessibility snapshots for language-agnostic, token-efficient integration by any language or AI agent. The underlying engine is daijro's Camoufox, and a companion CamoFox MCP server serves MCP clients like Claude, Cursor, and VS Code.
Key facts side by side with the most closely related agents.
| Agent | Source review | Form / cost | Stars | Updated | Language | Full support on |
|---|---|---|---|---|---|---|
| CamoFox Browser Server This agent | 63 · Some gaps | Self-hosted serviceFree | ★ 445 | 11d ago | JavaScript | Claude Code |
| Stagehand: The AI Browser Automation Framework | 68 · Some gaps | Library / SDKFree + model costs | ★ 26k | today | TypeScript | — |
| Camofox Browser | 53 · Major gaps | Self-hosted serviceFree | ★ 12k | 6d ago | JavaScript | — |
| Uni-CLI | 83 · Good | CLIFree | ★ 228 | 14d ago | TypeScript | ChatGPT · Codex · Claude Code |
How does FollowAgents rate this agent?
Why each dimension lost points
The code and docs describe loopback binding by default, authentication for non-loopback deployments, API and admin keys, encrypted vault storage, and local file permissions. However, the CLI/API can execute page JavaScript, import and export cookies, retain browser profiles, and retrieve downloads; authorization boundaries and per-action user confirmation are only lightly documented. Remote site access, engine installation, proxy, and geolocation behavior are disclosed. CI includes a production dependency audit, but this packet contains neither its results nor a clearly identified maintainer, so full marks are not warranted.
The CI configuration includes build, test, package-contract, and production dependency-audit steps; the server source also shows graceful shutdown, health state, and error handling. README, AGENTS.md, and skill material differ somewhat on authentication conditions, command parameters, and API coverage, including authentication-default descriptions and CLI command-count claims, so self-consistency is reduced. Installation requirements and recovery paths are detailed, though dependency provisioning still relies on network access and platform tools.
The materials address REST, CLI, OpenClaw, and several agent workflows, with audience-specific procedures, interface selection guidance, and platform notes. Capability scope is reasonably clear, and preview compatibility, state migration, and Windows display limits are documented. However, skill triggers broadly include bot evasion and stealth scraping, with limited precision about appropriate use or boundaries.
The README is well organized and covers installation, deployment, API, CLI, environment variables, limitations, and recovery; examples and the MIT license are present. Preview compatibility policy and CI/release version checks provide some versioning evidence, but no continuing maintainer is clearly named. Documentation has minor inconsistencies in command counts, authentication descriptions, and API coverage.
Structured snapshots, stable element references, JSON output, dual REST/CLI access, and credential injection support usable automation workflows. Anti-detection, proxy, and region features add value over general browser tools, though their benefit depends on the site and task. Engine downloads, deployment, persistent-profile management, and credential configuration add operational cost.
Major capabilities have corresponding evidence across the README, skills, CLI entry point, server entry point, package metadata, and CI workflow. CI configuration shows that automated checks are defined, but does not establish that they ran or passed for this revision. Some anti-detection, compatibility, and security benefits remain project claims without independent results, and the materials do not consistently distinguish demonstrated facts from inferred outcomes.
- The skills explicitly target anti-detection and bot-evasion workflows; confirm that the target site, account, and automation comply with applicable rules and requirements.
- Configure authentication for non-loopback deployments and avoid disabling it on untrusted networks. Persistent profiles, cookies, downloads, and trace files may contain sensitive data.
- Authentication defaults and CLI/API descriptions are not fully consistent across the materials; confirm the actual configuration and version-specific interface before deployment.
Recent releases
Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.
-
v2.5.0 camofox-browser v2.5.0
Release notes excerpt
Network capture and safer navigation reporting - Add opt-in network capture before the first navigation, explicit session-tab enrollment, bounded retention, paginated inspection, and sanitized HAR 1.2 export. - Add explicitly enabled small response bodies and exact-match fetch/XHR abort/static mock rules. Metadata-only capture remains the default. - Align the OpenAPI interception contract with supported statuses, required fields, and UTF-8 byte limits. - Redact URL credentials, query strings, and fragments from snapshot/click/navigation logs. …View on GitHub ↗ -
v2.4.9 camofox-browser v2.4.9
Release notes excerpt
Camofox Browser 2.4.9 Fixes - Required browser installation now fails clearly if the engine cannot be downloaded, extracted or validated. Docker no longer publishes an apparently successful image with a missing engine; optional GeoLite downloads remain warning-only. - Browser downloads stream to disk, and extraction uses disk-backed system facilities rather than loading the entire archive into memory. Linux uses Python 3, macOS uses system tar, and Windows uses built-in PowerShell/.NET ZIP support. …View on GitHub ↗ -
v2.4.8 camofox-browser v2.4.8
Release notes excerpt
Patch release for navigation reliability and compatible dependency security updates. Changes - Bound post-action draining on pages with continuous timers or animations. Pending navigation safety checks and stalled pending-count reads now return an error at the deadline instead of reporting success or holding the tab lock indefinitely. - Update affected production dependencies while retaining Express 4 behavior for missing request bodies and array-style image extension filters. - Correct the CLI documentation for supported search engines and remove the retired drag command. …View on GitHub ↗
FAQ
Do I need an API key?
Are logins and cookies preserved?
What if I hit a CAPTCHA?
How do I use it with Claude Code or other MCP clients?
Is this related to the Camofox crypto token?
Is CamoFox Browser Server free?
Is CamoFox Browser Server open source?
Is CamoFox Browser Server safe to use?
Is CamoFox Browser Server still maintained?
Who makes CamoFox Browser Server?
Thanks — we use this to improve the page.