camoufox-cli
ウェブサイトの操作を自動化し、ボット検知やCAPTCHAを回避して、ページの移動、フォーム入力、データ抽出、スクリーンショット撮影など、通常は難しいブラウザ操作をAIエージェントが実行できるようにするSkill。
📜 元の英語説明(参考)
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, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task that requires bypassing fingerprint checks.
🇯🇵 日本人クリエイター向け解説
ウェブサイトの操作を自動化し、ボット検知やCAPTCHAを回避して、ページの移動、フォーム入力、データ抽出、スクリーンショット撮影など、通常は難しいブラウザ操作をAIエージェントが実行できるようにするSkill。
※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o camoufox-cli.zip https://jpskill.com/download/23618.zip && unzip -o camoufox-cli.zip && rm camoufox-cli.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/23618.zip -OutFile "$d\camoufox-cli.zip"; Expand-Archive "$d\camoufox-cli.zip" -DestinationPath $d -Force; ri "$d\camoufox-cli.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
camoufox-cli.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
camoufox-cliフォルダができる - 3. そのフォルダを
C:\Users\あなたの名前\.claude\skills\(Win)または~/.claude/skills/(Mac)へ移動 - 4. Claude Code を再起動
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 このSkillでできること
下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。
📦 インストール方法 (3ステップ)
- 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
- 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
- 3. 展開してできたフォルダを、ホームフォルダの
.claude/skills/に置く- · macOS / Linux:
~/.claude/skills/ - · Windows:
%USERPROFILE%\.claude\skills\
- · macOS / Linux:
Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。
詳しい使い方ガイドを見る →- 最終更新
- 2026-05-18
- 取得日時
- 2026-05-18
- 同梱ファイル
- 3
📖 Skill本文(日本語訳)
※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。
camoufox-cli を使ったアンチディテクトブラウザ自動化
他のツールとの違い
camoufox-cli は、C++レベルのフィンガープリント偽装機能を備えた Camoufox (アンチディテクト Firefox) をベースに構築されています。
navigator.webdriver=false- 実際のブラウザプラグイン、ランダム化された canvas/WebGL/audio フィンガープリント
- 実際の Firefox UA 文字列 -- Chromium の自動化をブロックするサイトでのボット検出を通過します
ターゲットサイトにボット検出機能がある場合は、agent-browser の代わりに camoufox-cli を使用してください。
コアワークフロー
すべてのブラウザ自動化は、このパターンに従います。
- ナビゲート:
camoufox-cli open <url> - スナップショット:
camoufox-cli snapshot -i(@e1、@e2のような要素参照を取得します) - インタラクト: 参照を使用してクリック、入力、選択を行います
- 再スナップショット: ナビゲーションまたは DOM の変更後、新しい参照を取得します
- 閉じる:
camoufox-cli close(タスク全体が完全に完了したらブラウザを閉じます。ユーザーが追加の指示を出す可能性がある場合は開いたままにします)
camoufox-cli open https://example.com/form
camoufox-cli snapshot -i
# 出力: - テキストボックス "Email" [ref=e1]
# - テキストボックス "Password" [ref=e2]
# - ボタン "Submit" [ref=e3]
camoufox-cli fill @e1 "user@example.com"
camoufox-cli fill @e2 "password123"
camoufox-cli click @e3
camoufox-cli snapshot -i # 結果を確認します
コマンドチェーン
コマンドは、単一のシェル呼び出しで && を使用してチェーンできます。ブラウザはバックグラウンドデーモンを介してコマンド間で永続化されるため、チェーンは安全で、個別の呼び出しよりも効率的です。
# open + snapshot を1回の呼び出しでチェーンします
camoufox-cli open https://example.com && camoufox-cli snapshot -i
# 複数のインタラクションをチェーンします
camoufox-cli fill @e1 "user@example.com" && camoufox-cli fill @e2 "password123" && camoufox-cli click @e3
# ナビゲートしてキャプチャします
camoufox-cli open https://example.com && camoufox-cli screenshot page.png
チェーンするタイミング: 中間コマンドの出力を読み取る必要がない場合 (例: open + screenshot) は && を使用します。まず出力を解析する必要がある場合 (例: 参照を見つけるために snapshot を実行し、それらの参照を使用してインタラクトする) は、コマンドを個別に実行します。
必須コマンド
# ナビゲーション
camoufox-cli open <url> # URL にナビゲートします (必要に応じてデーモンを開始します)
camoufox-cli back # 戻ります
camoufox-cli forward # 進みます
camoufox-cli reload # ページをリロードします
camoufox-cli url # 現在の URL を表示します
camoufox-cli title # ページタイトルを表示します
camoufox-cli close # ブラウザを閉じ、デーモンを停止します
camoufox-cli close --all # すべてのセッションを閉じます
# スナップショット
camoufox-cli snapshot # ページの完全な aria ツリー
camoufox-cli snapshot -i # インタラクティブな要素のみ (推奨)
camoufox-cli snapshot -s "#selector" # CSS セレクターにスコープを設定します
# インタラクション (snapshot からの @refs を使用します)
camoufox-cli click @e1 # 要素をクリックします
camoufox-cli fill @e1 "text" # 入力フィールドをクリアして入力します
camoufox-cli type @e1 "text" # クリアせずにタイプします (追加)
camoufox-cli select @e1 "option" # ドロップダウンオプションを選択します
camoufox-cli check @e1 # チェックボックスを切り替えます
camoufox-cli hover @e1 # 要素にホバーします
camoufox-cli press Enter # キーボードキーを押します
camoufox-cli press "Control+a" # キーの組み合わせ
# データ抽出
camoufox-cli text @e1 # 要素のテキストコンテンツを取得します
camoufox-cli text body # ページのすべてのテキストを取得します (CSS セレクター)
camoufox-cli eval "document.title" # JavaScript を実行します
# キャプチャ
camoufox-cli screenshot # JSON {"base64": "..."} としてスクリーンショット
camoufox-cli screenshot page.png # ファイルにスクリーンショット
camoufox-cli screenshot --full p.png # フルページスクリーンショット
camoufox-cli pdf output.pdf # ページを PDF として保存します
# スクロールと待機
camoufox-cli scroll down # 500px 下にスクロールします
camoufox-cli scroll up # 500px 上にスクロールします
camoufox-cli scroll down 1000 # 1000px 下にスクロールします
camoufox-cli wait @e1 # 要素が表示されるまで待機します
camoufox-cli wait 2000 # ミリ秒待機します
camoufox-cli wait --url "*/dashboard" # URL パターンを待機します
# タブ
camoufox-cli tabs # 開いているタブを一覧表示します
camoufox-cli switch 2 # インデックスでタブを切り替えます
camoufox-cli close-tab # 現在のタブを閉じます
# クッキーと状態
camoufox-cli cookies # クッキーを JSON としてダンプします
camoufox-cli cookies import file.json # クッキーをインポートします
camoufox-cli cookies export file.json # クッキーをエクスポートします
# セッション
camoufox-cli sessions # アクティブなセッションを一覧表示します
camoufox-cli --session work open <url> # 名前付きセッションを使用します
camoufox-cli close --all # すべてのセッションを閉じます
# セットアップ
camoufox-cli install # Camoufox ブラウザをダウンロードします
camoufox-cli install --with-deps # ブラウザ + システムライブラリをダウンロードします (Linux)
一般的なパターン
フォーム送信
camoufox-cli open https://example.com/signup
camoufox-cli snapshot -i
camoufox-cli fill @e1 "Jane Doe"
camoufox-cli fill @e2 "jane@example.com"
camoufox-cli select @e3 "California"
camoufox-cli check @e4
camoufox-cli click @e5
camoufox-cli snapshot -i # 送信結果を確認します
データ抽出
camoufox-cli open https://example.com/products
camoufox-cli snapshot -i
camoufox-cli text @e5 # 特定の要素のテキストを取得します
camoufox-cli eval "document.title" # JS 経由でページタイトルを取得します
camoufox-cli screenshot results.png # 視覚的なキャプチャ
クッキー管理 (ログインの永続化)
# ログインしてクッキーをエクスポートします
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
# 将来のセッションで復元します
camoufox-cli open https://app.example.com
camoufox-cli cookies import auth.json
camoufox-cli reload
サイトがデバイスの安定性も検証する (クッキーだけでなく) 長期アカウントの場合、combi
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
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:
- Navigate:
camoufox-cli open <url> - Snapshot:
camoufox-cli snapshot -i(get element refs like@e1,@e2) - Interact: Use refs to click, fill, select
- Re-snapshot: After navigation or DOM changes, get fresh refs
- 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 "user@example.com"
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 "user@example.com" && 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 <url> # 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 <url> # 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 "jane@example.com"
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
For long-lived accounts where the site also verifies device stability (not just the cookie), combine this with --persistent so the fingerprint stays fixed alongside the cookies — see the Persistent Identity section below.
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 <name> Named session (default: "default")
--headed Show browser window (default: headless)
--timeout <seconds> Daemon idle timeout (default: 1800)
--json Output as JSON instead of human-readable
--persistent [path] Persistent identity — reuse the same fingerprint + cookies across launches
(default path: ~/.camoufox-cli/profiles/<session>)
--proxy <url> Proxy server (http:// or https://; auth: http://user:pass@host:port)
--no-geoip Disable automatic GeoIP spoofing (auto-enabled with --proxy)
--locale <tag> Force browser locale (e.g. "en-US" or "en-US,zh-CN")
Persistent Identity
By default, every launch gets a fresh random fingerprint. Add --persistent [path] to reuse the same fingerprint + cookies across launches — fingerprint/OS/canvas+font seeds are frozen on first launch (delete the directory to reset); --locale and proxy-derived timezone/geolocation are stored but refreshed whenever you pass the flag; --proxy / --no-geoip are never stored, so pass them every launch.
Use it when the same device should see the same fingerprint across visits (account-bound tasks, parallel independent identities, or when cookies import/export alone isn't enough because the site also checks device stability). Skip it for one-off scraping or quick debugging.
# Parallel identities, each with its own fingerprint + cookies
camoufox-cli --session a --persistent ~/.camoufox-cli/profiles/alice open https://app.example.com
camoufox-cli --session b --persistent ~/.camoufox-cli/profiles/bob open https://app.example.com
# Reset an identity: just remove the directory
rm -rf ~/.camoufox-cli/profiles/alice
Documentation
- camoufox-cli documentation -- Full README, setup guide, installation, and command reference
同梱ファイル
※ ZIPに含まれるファイル一覧。`SKILL.md` 本体に加え、参考資料・サンプル・スクリプトが入っている場合があります。
- 📄 SKILL.md (12,419 bytes)
- 📎 references/commands.md (4,876 bytes)
- 📎 references/snapshot-refs.md (5,435 bytes)