← Back to Skills Marketplace
bin-huang

Camoufox CLI

by Bin-Huang · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
91
Downloads
0
Stars
2
Active Installs
1
Versions
Install in OpenClaw
/install camoufox-cli
Description
Anti-detect browser automation CLI & Skills for AI agents. Use when the user needs to interact with websites with bot detection, CAPTCHAs, or anti-bot blocks...
README (SKILL.md)

Anti-Detect Browser Automation with camoufox-cli

What Makes This Different

camoufox-cli is built on Camoufox (anti-detect Firefox) with C++-level fingerprint spoofing:

  • navigator.webdriver = false
  • Real browser plugins, randomized canvas/WebGL/audio fingerprints
  • Real Firefox UA string -- passes bot detection on sites that block Chromium automation

Use camoufox-cli instead of agent-browser when the target site has bot detection.

Core Workflow

Every browser automation follows this pattern:

  1. Navigate: camoufox-cli open \x3Curl>
  2. Snapshot: camoufox-cli snapshot -i (get element refs like @e1, @e2)
  3. Interact: Use refs to click, fill, select
  4. Re-snapshot: After navigation or DOM changes, get fresh refs
  5. Close: camoufox-cli close (close the browser when the entire task is fully complete; keep it open if the user may have follow-up instructions)
camoufox-cli open https://example.com/form
camoufox-cli snapshot -i
# Output: - textbox "Email" [ref=e1]
#         - textbox "Password" [ref=e2]
#         - button "Submit" [ref=e3]

camoufox-cli fill @e1 "[email protected]"
camoufox-cli fill @e2 "password123"
camoufox-cli click @e3
camoufox-cli snapshot -i  # Check result

Command Chaining

Commands can be chained with && in a single shell invocation. The browser persists between commands via a background daemon, so chaining is safe and more efficient than separate calls.

# Chain open + snapshot in one call
camoufox-cli open https://example.com && camoufox-cli snapshot -i

# Chain multiple interactions
camoufox-cli fill @e1 "[email protected]" && camoufox-cli fill @e2 "password123" && camoufox-cli click @e3

# Navigate and capture
camoufox-cli open https://example.com && camoufox-cli screenshot page.png

When to chain: Use && when you don't need to read the output of an intermediate command before proceeding (e.g., open + screenshot). Run commands separately when you need to parse the output first (e.g., snapshot to discover refs, then interact using those refs).

Essential Commands

# Navigation
camoufox-cli open \x3Curl>              # Navigate to URL (starts daemon if needed)
camoufox-cli back                    # Go back
camoufox-cli forward                 # Go forward
camoufox-cli reload                  # Reload page
camoufox-cli url                     # Print current URL
camoufox-cli title                   # Print page title
camoufox-cli close                   # Close browser and stop daemon
camoufox-cli close --all             # Close all sessions

# Snapshot
camoufox-cli snapshot                # Full aria tree of page
camoufox-cli snapshot -i             # Interactive elements only (recommended)
camoufox-cli snapshot -s "#selector" # Scope to CSS selector

# Interaction (use @refs from snapshot)
camoufox-cli click @e1               # Click element
camoufox-cli fill @e1 "text"         # Clear + type into input
camoufox-cli type @e1 "text"         # Type without clearing (append)
camoufox-cli select @e1 "option"     # Select dropdown option
camoufox-cli check @e1               # Toggle checkbox
camoufox-cli hover @e1               # Hover over element
camoufox-cli press Enter             # Press keyboard key
camoufox-cli press "Control+a"       # Key combination

# Data Extraction
camoufox-cli text @e1                # Get text content of element
camoufox-cli text body               # Get all page text (CSS selector)
camoufox-cli eval "document.title"   # Execute JavaScript

# Capture
camoufox-cli screenshot              # Screenshot as JSON {"base64": "..."}
camoufox-cli screenshot page.png     # Screenshot to file
camoufox-cli screenshot --full p.png # Full page screenshot
camoufox-cli pdf output.pdf          # Save page as PDF

# Scroll & Wait
camoufox-cli scroll down             # Scroll down 500px
camoufox-cli scroll up               # Scroll up 500px
camoufox-cli scroll down 1000        # Scroll down 1000px
camoufox-cli wait @e1                # Wait for element to appear
camoufox-cli wait 2000               # Wait milliseconds
camoufox-cli wait --url "*/dashboard" # Wait for URL pattern

# Tabs
camoufox-cli tabs                    # List open tabs
camoufox-cli switch 2                # Switch to tab by index
camoufox-cli close-tab               # Close current tab

# Cookies & State
camoufox-cli cookies                 # Dump cookies as JSON
camoufox-cli cookies import file.json # Import cookies
camoufox-cli cookies export file.json # Export cookies

# Sessions
camoufox-cli sessions                # List active sessions
camoufox-cli --session work open \x3Curl> # Use named session
camoufox-cli close --all             # Close all sessions

# Setup
camoufox-cli install                 # Download Camoufox browser
camoufox-cli install --with-deps     # Download browser + system libs (Linux)

Common Patterns

Form Submission

camoufox-cli open https://example.com/signup
camoufox-cli snapshot -i
camoufox-cli fill @e1 "Jane Doe"
camoufox-cli fill @e2 "[email protected]"
camoufox-cli select @e3 "California"
camoufox-cli check @e4
camoufox-cli click @e5
camoufox-cli snapshot -i  # Verify submission result

Data Extraction

camoufox-cli open https://example.com/products
camoufox-cli snapshot -i
camoufox-cli text @e5                # Get specific element text
camoufox-cli eval "document.title"   # Get page title via JS
camoufox-cli screenshot results.png  # Visual capture

Cookie Management (Persist Login)

# Login and export cookies
camoufox-cli open https://app.example.com/login
camoufox-cli snapshot -i
camoufox-cli fill @e1 "user"
camoufox-cli fill @e2 "pass"
camoufox-cli click @e3
camoufox-cli cookies export auth.json

# Restore in future session
camoufox-cli open https://app.example.com
camoufox-cli cookies import auth.json
camoufox-cli reload

Multiple Tabs

camoufox-cli open https://site-a.com
camoufox-cli eval "window.open('https://site-b.com')"
camoufox-cli tabs                    # List tabs
camoufox-cli switch 1                # Switch to second tab
camoufox-cli snapshot -i

Parallel Sessions

camoufox-cli --session s1 open https://site-a.com
camoufox-cli --session s2 open https://site-b.com
camoufox-cli sessions                # List both
camoufox-cli --session s1 snapshot -i
camoufox-cli --session s2 snapshot -i

Visual Browser (Debugging)

camoufox-cli --headed open https://example.com
camoufox-cli snapshot -i
camoufox-cli screenshot debug.png

Session Management and Cleanup

When running multiple agents or automations concurrently, always use named sessions to avoid conflicts:

camoufox-cli --session agent1 open https://site-a.com
camoufox-cli --session agent2 open https://site-b.com
camoufox-cli sessions                  # Check active sessions

Always close your browser session when done to avoid leaked processes:

camoufox-cli close                     # Close default session
camoufox-cli --session agent1 close    # Close specific session
camoufox-cli close --all               # Close all sessions

If a previous session was not closed properly, the daemon may still be running. Use camoufox-cli close to clean it up before starting new work.

Timeouts and Slow Pages

Some pages take time to fully load, especially those with dynamic content or heavy JavaScript. Use explicit waits before taking a snapshot:

# Wait for a specific element to appear
camoufox-cli wait @e1
camoufox-cli snapshot -i

# Wait for a URL pattern (useful after redirects)
camoufox-cli wait --url "*/dashboard"
camoufox-cli snapshot -i

# Wait a fixed duration as a last resort
camoufox-cli wait 3000
camoufox-cli snapshot -i

When dealing with slow pages, always wait before snapshotting. If you snapshot too early, elements may be missing from the output.

Ref Lifecycle (Important)

Refs (@e1, @e2, etc.) are temporary identifiers assigned by sequential numbering during each snapshot. They are invalidated when the page changes.

Always re-snapshot after:

  • Clicking links or buttons that navigate
  • Form submissions
  • Dynamic content loading (dropdowns, modals, lazy-loaded content)
  • Scrolling that triggers new content
# CORRECT: re-snapshot after navigation
camoufox-cli click @e5              # Navigates to new page
camoufox-cli snapshot -i            # MUST re-snapshot
camoufox-cli click @e1              # Use new refs

# CORRECT: re-snapshot after dynamic changes
camoufox-cli click @e1              # Opens dropdown
camoufox-cli snapshot -i            # See dropdown items
camoufox-cli click @e7              # Select item

# WRONG: using refs without snapshot
camoufox-cli open https://example.com
camoufox-cli click @e1              # Ref doesn't exist yet!

# WRONG: using old refs after navigation
camoufox-cli click @e5              # Navigates away
camoufox-cli click @e3              # STALE REF - wrong element!

Always take a fresh snapshot before interacting with elements after navigation or page changes.

Troubleshooting

"Ref @eN not found"

The ref was invalidated. Re-snapshot to get fresh refs:

camoufox-cli snapshot -i

Element Not Visible in Snapshot

# Scroll down to reveal element
camoufox-cli scroll down 1000
camoufox-cli snapshot -i

# Or wait for dynamic content
camoufox-cli wait 2000
camoufox-cli snapshot -i

Too Many Elements in Snapshot

# Scope to a specific container
camoufox-cli snapshot -s "#main-content"
camoufox-cli snapshot -i -s "form.login"

Page Not Fully Loaded

# Wait for URL pattern after redirect
camoufox-cli wait --url "*/dashboard"
camoufox-cli snapshot -i

# Wait a fixed duration as last resort
camoufox-cli wait 3000
camoufox-cli snapshot -i

Global Flags

--session \x3Cname>       Named session (default: "default")
--headed               Show browser window (default: headless)
--timeout \x3Cseconds>    Daemon idle timeout (default: 1800)
--json                 Output as JSON instead of human-readable
--persistent [path]    Use persistent browser profile (default: ~/.camoufox-cli/profiles/\x3Csession>)
--proxy \x3Curl>          Proxy server (e.g. http://host:port or http://user:pass@host:port)

Documentation

Usage Guidance
This skill is an instruction-only wrapper for an anti-detect browser CLI. Before installing or using it, verify the origin (source repo or vendor) and where 'camoufox-cli install' downloads binaries from — unknown download sources are risky. Be aware the tool can save persistent browser profiles and export cookies, which may contain session tokens or credentials; avoid importing or exporting sensitive cookies or proxy credentials without secure review. If you allow agent autonomy, consider disabling autonomous invocation for this skill or running it only in a sandboxed environment (isolated VM/container) with no access to personal credentials. If you need to use it, require an explicit approval step for any install/download and review the network endpoints and host that provide the Camoufox binaries.
Capability Assessment
Purpose & Capability
The name/description and the SKILL.md are consistent: the doc describes a CLI for anti-detect browser automation and the commands line up with that purpose. However, the package provides no provenance (no homepage/source) and declares no required binaries or install spec even though the runtime docs expect a camoufox-cli binary and an 'install' command that downloads the browser. That mismatch is plausible for an instruction-only skill but reduces trust in the artifact's origin.
Instruction Scope
All runtime instructions are scoped to interacting with web pages (open, snapshot, click, fill, screenshot, export/import cookies, persistent profiles). The SKILL.md does not instruct the agent to read arbitrary system files or unrelated credentials, but it does instruct reading/writing persistent profile data under ~/.camoufox-cli and importing/exporting cookie JSON files — operations that can expose sensitive session tokens. The doc also encourages running an install command that will download external binaries.
Install Mechanism
There is no install specification in the package (it's instruction-only), yet the documentation explicitly instructs the agent to run 'camoufox-cli install' to download the Camoufox browser (and optionally deps). Because no trusted source/URL is provided in the package metadata or docs, the actual install step would retrieve binaries from an unknown origin at runtime — a high-risk operation. The absence of a declared, verifiable install source is a notable gap.
Credentials
The skill does not request any environment variables or credentials, which is proportionate to its stated purpose. However, it supports optional proxies (including user:pass syntax) and cookie import/export and persistent profiles; these features permit handling of sensitive secrets (session cookies, proxy credentials) at runtime even though they are not declared. That design places responsibility on the operator to avoid passing sensitive secrets to the tool without review.
Persistence & Privilege
The skill is not always-enabled and is user-invocable (default). It documents persistent browser profiles (~/.camoufox-cli/profiles/<session>) and a background daemon that persists between commands. That persistence is reasonable for a browser CLI but increases the risk surface (stored cookies, sessions, profiles). The skill also allows autonomous invocation by the agent (disable-model-invocation is false), which, combined with the anti-detection capability and persistent state, raises the potential blast radius if the agent is granted autonomy.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install camoufox-cli
  3. After installation, invoke the skill by name or use /camoufox-cli
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
camoufox-cli 1.0.0 – Initial release - Introduces a CLI for anti-detect browser automation based on Camoufox (anti-detect Firefox) - Supports advanced fingerprint spoofing to bypass bot detection (randomized fingerprints, true UA, plugin support) - Automates navigation, form filling, clicking, data extraction, screenshots, and PDF capture with bot detection resistance - Provides robust session, tab, and cookie management for persistent, parallel automation tasks - Enables command chaining for efficient batch operations via persistent background daemon - Designed for challenging web automation tasks, including interacting with CAPTCHAs and anti-bot blocks
Metadata
Slug camoufox-cli
Version 1.0.0
License MIT-0
All-time Installs 2
Active Installs 2
Total Versions 1
Frequently Asked Questions

What is Camoufox CLI?

Anti-detect browser automation CLI & Skills for AI agents. Use when the user needs to interact with websites with bot detection, CAPTCHAs, or anti-bot blocks... It is an AI Agent Skill for Claude Code / OpenClaw, with 91 downloads so far.

How do I install Camoufox CLI?

Run "/install camoufox-cli" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Camoufox CLI free?

Yes, Camoufox CLI is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Camoufox CLI support?

Camoufox CLI is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Camoufox CLI?

It is built and maintained by Bin-Huang (@bin-huang); the current version is v1.0.0.

💬 Comments