redf0x1/camofox-browser

Anti-detection browser server for AI agents — REST API wrapping Camoufox engine with OpenClaw plugin support

What it solves

Standard browser automation tools (Puppeteer, Playwright, Selenium) are easily detected by modern anti-bot systems. JavaScript-level patches are fragile and get bypassed quickly. CamoFox solves this by wrapping Camoufox, a Firefox fork with C++ engine-level fingerprint spoofing, so anti-detection happens at the browser engine level rather than through JavaScript injection. It also provides a REST API that any language or AI agent can use, plus accessibility snapshots that are smaller and more structured than raw HTML or screenshots.

How it works

CamoFox runs as a server that controls a stealth browser. It exposes REST endpoints for browser automation, supports multiple isolated sessions per user (up to 50 sessions, 10 tabs each), and persists browser profiles (cookies, localStorage, IndexedDB) across sessions. It includes geo presets, search macros for popular sites, and element references (like e5) for precise interaction. A CLI offers 50+ commands for terminal-based automation. It also has an auth vault with AES-256-GCM encryption and Argon2id key derivation, pipeline scripting, console capture, Playwright tracing, and structured JSON extraction. The server can be run from source, via npm, as a Windows portable, or with Docker.

Who it’s for

AI agents and LLM-powered automation that need to browse the web without being blocked by anti-bot systems. It’s also for developers who want a language-agnostic browser automation API (REST) or a CLI for scripting, and for teams that need persistent browser profiles and secure credential handling in automated workflows.

Highlights

  • C++ anti-detection — fingerprint spoofing at the Camoufox engine level, not JS injection
  • REST API — language-agnostic HTTP endpoints for any tool or AI agent
  • Multi-session — concurrent isolated browser contexts per user, with persistent profiles
  • Geo presets — 8 built-in region presets plus custom overrides
  • 14 search macros — Google, YouTube, Amazon, Reddit, Wikipedia, and more
  • Element refs — accessibility snapshots with stable eN references for precise interaction
  • Auth vault — AES-256-GCM encrypted credential storage, LLM-safe (credentials never shown to the agent)
  • CLI — 50+ commands for terminal-based automation, including pipeline scripting
  • Playwright tracing — record and export traces for debugging
  • OpenClaw and MCP compatible — works with AI coding assistants and agent frameworks

Related

  • Project
  • Project
  • Project
  • Project
  • Project