| name | camofox-browser |
| description | Anti-detection browser automation using Camoufox (Firefox fork with C++ fingerprint spoofing). Use when standard browser tools get blocked by Cloudflare, Akamai, or bot detection. Triggers include "stealth browse", "anti-detection", "bypass bot", "camofox", "blocked by Cloudflare", scraping protected sites (X/Twitter, Amazon, Product Hunt), or when agent-browser/playwright fails with bot detection errors. |
| allowed-tools | Bash(camofox-browser:*) |
| user_invocable | true |
| argument_hint | <url or command> |
Camofox Browser - Anti-Detection Browser Automation
Stealth browser automation via Camoufox (Firefox fork). C++ level fingerprint spoofing — undetectable by JavaScript-based bot checks. REST API wrapper using curl.
Installation
First use automatically downloads and installs the Camoufox browser (~300MB, one-time). No manual setup required — just run any camofox command.
Quick Start
camofox open https://example.com
camofox snapshot
camofox click @e1
camofox type @e2 "hello"
camofox screenshot
camofox close
Core Workflow
- Navigate:
camofox open <url> — opens tab and navigates
- Snapshot:
camofox snapshot — returns accessibility tree with @e1, @e2 refs
- Interact: Use refs to click, type, select
- Re-snapshot: After navigation or DOM changes, get fresh refs
- Repeat: Server stays running between commands
camofox open https://example.com/login
camofox snapshot
camofox type @e1 "user@example.com"
camofox type @e2 "password123"
camofox click @e3
camofox snapshot
Commands
Navigation
camofox open <url>
camofox navigate <url>
camofox back
camofox forward
camofox refresh
camofox scroll down
Page State
camofox snapshot
camofox screenshot
camofox screenshot output.png
camofox tabs
Interaction (use @refs from snapshot)
camofox click @e1
camofox type @e1 "text"
Search Macros
camofox search google "query"
camofox search youtube "query"
camofox search amazon "query"
camofox search reddit "query"
13 macros available — see references/macros-and-search.md.
Session Management
camofox --session work open <url>
camofox --session work snapshot
camofox close
camofox close-all
Server Control
camofox start
camofox stop
camofox health
Ref Lifecycle (Important)
Refs (@e1, @e2) are invalidated when the page changes. Always re-snapshot after:
- Clicking links/buttons that navigate
- Form submissions
- Dynamic content loading
camofox click @e3
camofox snapshot
camofox click @e1
When to Use camofox-browser vs agent-browser
| Scenario | Tool |
|---|
| Normal websites, no bot detection | agent-browser (faster) |
| Cloudflare / Akamai protected | camofox-browser |
| Sites that block Chromium automation | camofox-browser |
| Need anti-fingerprinting | camofox-browser |
| Need iOS/mobile simulation | agent-browser |
| Need video recording | agent-browser |
Anti-Detection Capabilities
- C++ level fingerprint spoofing (canvas, WebGL, AudioContext, fonts)
- Firefox-based (not Chromium — different detection surface)
- Human-like interaction timing (
humanize parameter)
- WebRTC leak prevention
- No
navigator.webdriver flag
See references/anti-detection.md for details.
Environment Variables
| Variable | Default | Description |
|---|
CAMOFOX_PORT | 9377 | Server port |
CAMOFOX_SESSION | default | Default session name |
CAMOFOX_HEADLESS | true | Headless mode |
HTTPS_PROXY | — | Proxy server |
Deep-Dive Documentation
Ready-to-Use Templates
Troubleshooting
Server won't start?
camofox health
camofox stop && camofox start
Still getting blocked?
HTTPS_PROXY=socks5://127.0.0.1:1080 camofox open <url>
Bot detection test:
camofox open https://bot.sannysoft.com/
camofox screenshot bot-test.png
Cleanup
Always close when done:
camofox close-all
camofox stop