← 返回 Skills 市场
adastraabyssoque

Camoufox Deploy

作者 AdAstraAbyssoque · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
433
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install camoufox-deploy
功能描述
One-click deployment of camoufox anti-detection browser with modified agent-browser. Patches agent-browser to auto-detect camoufox/firefox from executable pa...
使用说明 (SKILL.md)

camoufox-deploy

🚀 一键部署 camoufox + agent-browser 反检测浏览器工具链。

解决的问题

agent-browser 默认只支持 Chromium,但我们需要:

  1. 反检测能力: camoufox 能绕过 Bilibili、Cloudflare 等风控
  2. Firefox 支持: 修改 agent-browser 自动识别 camoufox/firefox 路径
  3. 一键部署: 自动化繁琐的安装、修改、编译流程

概述

这个 skill 帮助用户快速部署:

  • camoufox: 基于 Firefox 的反检测浏览器
  • agent-browser: 浏览器自动化工具(修改后支持 camoufox)

关键修改点

agent-browser 默认使用 Chromium,需要修改以支持 camoufox/firefox:

  1. 修改 browser.ts: 自动检测 executablePath 中的 camoufox/firefox 关键字
  2. 正确的 camoufox 路径: ~/Library/Caches/camoufox/Camoufox.app/Contents/MacOS/camoufox (macOS)
  3. 重新编译: 需要重新编译 Rust CLI 并替换 npm 包中的二进制

使用方法

一键安装

运行安装脚本:

bash ~/.openclaw/workspace/skills/camoufox-deploy/scripts/install.sh

这个脚本会自动完成:

  1. 安装 uv (Python 包管理器)
  2. 用 uv 安装 camoufox Python 包
  3. 下载 camoufox 浏览器二进制
  4. 安装 agent-browser npm 包
  5. 修改 agent-browser 源码(自动检测 firefox/camoufox)
  6. 重新编译 Rust CLI
  7. 替换系统版本

手动步骤(如果需要)

1. 安装 uv

curl -LsSf https://astral.sh/uv/install.sh | sh

2. 安装 camoufox

uv pip install camoufox --system

3. 下载 camoufox 浏览器

python3 -c "from camoufox.sync_api import Camoufox; Camoufox()"

或手动下载:

# macOS 路径
~/Library/Caches/camoufox/Camoufox.app/Contents/MacOS/camoufox

4. 安装 agent-browser

npm install -g agent-browser

5. 找到并修改 browser.ts

找到 agent-browser 的源码目录:

# 全局安装位置
npm root -g
cd $(npm root -g)/agent-browser

# 或克隆源码
git clone https://github.com/browser-use/agent-browser.git
cd agent-browser

修改 src/browser.ts 中的 getBrowserType 函数:

private getBrowserType(executablePath: string): 'chromium' | 'firefox' {
  const lowerPath = executablePath.toLowerCase();
  if (lowerPath.includes('firefox') || lowerPath.includes('camoufox')) {
    return 'firefox';
  }
  return 'chromium';
}

6. 重新编译

npm install
npm run build

7. 替换系统版本

# 找到全局安装位置
GLOBAL_PATH=$(npm root -g)/agent-browser

# 备份原版本
cp -r "$GLOBAL_PATH" "${GLOBAL_PATH}.backup"

# 替换为修改版本
cp -r ./ "$GLOBAL_PATH/"

验证安装

# 检查 camoufox
camoufox --version

# 检查 agent-browser
agent-browser --version

# 运行测试
agent-browser --executable-path ~/Library/Caches/camoufox/Camoufox.app/Contents/MacOS/camoufox

故障排除

问题: camoufox 找不到

解决: 确认路径正确

ls ~/Library/Caches/camoufox/Camoufox.app/Contents/MacOS/camoufox

问题: agent-browser 仍使用 chromium

解决: 确认修改生效

cat $(npm root -g)/agent-browser/dist/browser.js | grep -A5 "getBrowserType"

问题: Rust 编译失败

解决: 安装 Rust

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source ~/.cargo/env

文件位置

文件 位置
camoufox 可执行文件 ~/Library/Caches/camoufox/Camoufox.app/Contents/MacOS/camoufox
agent-browser 全局安装 $(npm root -g)/agent-browser
安装脚本 ~/.openclaw/workspace/skills/camoufox-deploy/scripts/install.sh

参考

安全使用建议
Review and sandbox before running. Specifically: 1) Inspect the full install.sh yourself (it is included) and ensure you trust the remote endpoints (https://astral.sh and https://sh.rustup.rs). 2) Prefer running in an isolated VM or container, not on your primary machine, because the script overwrites a global npm package and compiles native code. 3) Back up the existing agent-browser installation (the script attempts backups, but verify them). 4) Avoid piping curl to sh from unknown hosts — fetch the installer, inspect it, then run. 5) If you only need agent-browser to detect an alternate executable, consider making the small local code change manually in a cloned repo rather than replacing the global package. 6) Be aware this enables an anti‑detection browser; depending on your environment and policies, using such tooling may violate rules or be legally sensitive.
功能分析
Type: OpenClaw Skill Name: camoufox-deploy Version: 1.0.0 The skill is classified as suspicious due to its reliance on multiple high-risk installation methods that introduce significant supply chain vulnerabilities and potential for Remote Code Execution (RCE). The `scripts/install.sh` file uses `curl -LsSf <URL> | sh` to install `uv` and `rustup` from `astral.sh` and `sh.rustup.rs` respectively. It also performs `git clone` from GitHub and `npm install -g` for `agent-browser`, all of which download and execute code from external sources without explicit integrity checks. While these actions are intended to achieve the stated goal of deploying and patching the `camoufox` browser and `agent-browser` tool, they expose the system to compromise if any of the upstream sources or their delivery mechanisms were to be compromised. There is no evidence of intentional malicious behavior, but the methods used are inherently risky.
能力评估
Purpose & Capability
The name/description (deploy camoufox and patch agent-browser) match the included SKILL.md and install.sh: the script installs camoufox, installs/locates agent-browser, edits its browser detection logic, rebuilds, and replaces the global package. These steps are proportionate to the stated purpose, but they require modifying a third‑party global npm package and compiling native code — actions that have system-wide impact and go beyond a low-risk 'helper' script.
Instruction Scope
The SKILL.md and install.sh instruct the agent/user to run commands that touch system-wide locations: installing uv, pip packages system-wide, running npm -g, cloning GitHub repos, invoking rustup and cargo, and overwriting the globally installed agent-browser directory. The instructions perform code modification (edit TS/JS) and replace existing software, which is broader than a self-contained install and can affect other tools. They also run remote installers and execute generated Python patches without integrity checks.
Install Mechanism
There is no registry install spec, but the bundled install.sh invokes remote installers via curl|sh (astral.sh for uv and rustup.rs for Rust). The script clones GitHub repos (expected) and edits/writes files on disk. Curl-pipe-to-sh and automatic replacement of global packages are higher-risk patterns because they execute code fetched from the network without verification.
Credentials
The skill does not request environment variables or credentials. The operations use standard system paths (HOME, npm global path) and tools (npm, python, cargo). No secret access is requested by the skill.
Persistence & Privilege
The installer replaces a globally installed npm package (agent-browser) and may compile and install native binaries. This modifies other installed software on the system and therefore carries persistent, system-wide privilege. Although 'always' is false, the script's behavior is persistent and can affect other skills or workflows.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install camoufox-deploy
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /camoufox-deploy 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
一键部署 camoufox 反检测浏览器
元数据
Slug camoufox-deploy
版本 1.0.0
许可证
累计安装 1
当前安装数 1
历史版本数 1
常见问题

Camoufox Deploy 是什么?

One-click deployment of camoufox anti-detection browser with modified agent-browser. Patches agent-browser to auto-detect camoufox/firefox from executable pa... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 433 次。

如何安装 Camoufox Deploy?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install camoufox-deploy」即可一键安装,无需额外配置。

Camoufox Deploy 是免费的吗?

是的,Camoufox Deploy 完全免费(开源免费),可自由下载、安装和使用。

Camoufox Deploy 支持哪些平台?

Camoufox Deploy 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Camoufox Deploy?

由 AdAstraAbyssoque(@adastraabyssoque)开发并维护,当前版本 v1.0.0。

💬 留言讨论