← 返回 Skills 市场
yishanjiu-3386

Browser Config

作者 Yishanjiu-3386 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
350
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install browser-config
功能描述
配置和管理 OpenClaw-CN 浏览器模式(openclaw/chrome),解决浏览器连接问题
使用说明 (SKILL.md)

Browser Config - 浏览器配置技能

描述

配置和管理 OpenClaw-CN 浏览器模式。支持两种浏览器模式:

  • openclaw - OpenClaw 独立管理的浏览器(推荐,稳定)
  • chrome - Chrome 扩展中继模式(需要扩展连接)

触发词

  • 配置浏览器
  • 切换浏览器模式
  • 浏览器打不开
  • 浏览器配置
  • 设置浏览器

两种模式对比

特性 openclaw 模式 chrome 模式
依赖扩展 ❌ 不需要 ✅ 需要 OpenClaw Browser Relay 扩展
稳定性 ⭐⭐⭐⭐⭐ 高 ⭐⭐⭐ 中(依赖扩展连接)
登录状态 独立保存 使用 Chrome 现有登录
适用场景 长期稳定使用、需要登录的网站 临时使用、想共用 Chrome 书签
启动命令 openclaw-cn browser --browser-profile openclaw start openclaw-cn browser --browser-profile chrome start

配置方法

切换到 openclaw 模式(推荐)

编辑 C:\Users\Administrator\.openclaw\openclaw.json,添加或修改:

{
  "browser": {
    "enabled": true,
    "defaultProfile": "openclaw",
    "headless": false,
    "noSandbox": false,
    "attachOnly": false,
    "profiles": {
      "openclaw": {
        "cdpPort": 18800,
        "color": "#FF4500"
      }
    }
  }
}

然后重启网关:

openclaw-cn gateway restart

启动浏览器:

openclaw-cn browser --browser-profile openclaw start

切换到 chrome 模式

编辑 C:\Users\Administrator\.openclaw\openclaw.json

{
  "browser": {
    "enabled": true,
    "defaultProfile": "chrome",
    "headless": false,
    "noSandbox": false,
    "attachOnly": false
  }
}

重启网关后,需要:

  1. 打开 Chrome 浏览器
  2. 点击 OpenClaw Browser Relay 扩展图标
  3. 确保扩展连接到当前标签页(图标显示 ON)

常见问题排查

问题 1:浏览器服务连不上

错误信息: Can't reach the OpenClaw-CN browser control service

解决方案:

  1. 检查浏览器状态:openclaw-cn browser --browser-profile \x3Cprofile名> status
  2. 如果 运行中:false,启动它:openclaw-cn browser --browser-profile \x3Cprofile名> start
  3. 如果是 chrome 模式,确保扩展已连接

问题 2:chrome 扩展模式一直连不上

原因: 扩展中继服务通信问题

解决方案: 改回 openclaw 模式(更稳定)

问题 3:网关重启后浏览器没了

解决方案: 重新运行启动命令:

openclaw-cn browser --browser-profile openclaw start

使用示例

打开网页

openclaw-cn browser --browser-profile openclaw open https://www.xiaohongshu.com

查看状态

openclaw-cn browser --browser-profile openclaw status

截图

通过 browser 工具调用:

browser: screenshot, targetId=\x3C标签页 ID>

注意事项

  1. 登录状态保存 - openclaw 模式的登录数据保存在 C:\Users\Administrator\.openclaw\browser\openclaw\user-data
  2. 不要混用模式 - 频繁切换模式可能导致登录状态丢失
  3. 推荐 openclaw 模式 - 更稳定,不依赖扩展,适合长期使用
  4. 发小红书/微博等 - 登录一次后会话会保持,不需要每次都登录

配置文件位置

  • 主配置:C:\Users\Administrator\.openclaw\openclaw.json
  • 浏览器数据:C:\Users\Administrator\.openclaw\browser\openclaw\user-data
  • 网关日志:C:\Users\Administrator\.openclaw\logs\gateway.log
安全使用建议
This skill appears coherent with its purpose, but take simple precautions before using it: (1) confirm the openclaw-cn binary you have is from a trusted source; (2) back up C:\Users\Administrator\.openclaw\openclaw.json before editing; (3) be aware the instructions require restarting the OpenClaw gateway and write access to that user profile (you may need administrative rights); (4) if using chrome mode, only install/use a trusted OpenClaw Browser Relay extension; (5) avoid running provided commands as an elevated user unless necessary — test changes in a safe environment first.
功能分析
Type: OpenClaw Skill Name: browser-config Version: 1.0.0 The skill bundle is a configuration guide for managing OpenClaw-CN browser modes (openclaw and chrome). It provides legitimate instructions for editing the 'openclaw.json' configuration file and using the 'openclaw-cn' CLI tool for troubleshooting and browser management. No evidence of data exfiltration, malicious execution, or prompt injection was found.
能力评估
Purpose & Capability
Name/description describe configuring OpenClaw-CN browser modes and the skill only requires the openclaw-cn binary and edits OpenClaw config files — these requirements are appropriate and expected for this purpose.
Instruction Scope
SKILL.md directs the user/agent to edit C:\Users\Administrator\.openclaw\openclaw.json, restart the OpenClaw gateway, and run openclaw-cn browser commands. This is within scope for a browser-config skill but requires write access to the user's OpenClaw config and ability to restart the gateway; no unrelated files, credentials, or external endpoints are referenced.
Install Mechanism
No install spec or downloaded code is included; the skill is instruction-only and relies on the existing openclaw-cn binary, which is low-risk from an install perspective.
Credentials
The skill requests no environment variables or external credentials. It references local OpenClaw config paths (in the Administrator user's home), which is expected for configuring the product and proportional to its function.
Persistence & Privilege
Skill is not marked always:true and is user-invocable; it does not request persistent elevated privileges or attempt to modify other skills or global agent settings. Autonomous invocation is permitted by platform default but not otherwise unusual here.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install browser-config
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /browser-config 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of Browser Config skill. - Provides clear instructions for configuring and switching between OpenClaw and Chrome browser modes. - Includes troubleshooting steps for common browser connectivity issues. - Explains configuration file locations and typical startup commands. - Offers best practice recommendations for stability and account state preservation. - Lists key trigger phrases for easy access and activation.
元数据
Slug browser-config
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Browser Config 是什么?

配置和管理 OpenClaw-CN 浏览器模式(openclaw/chrome),解决浏览器连接问题. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 350 次。

如何安装 Browser Config?

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

Browser Config 是免费的吗?

是的,Browser Config 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Browser Config 支持哪些平台?

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

谁开发了 Browser Config?

由 Yishanjiu-3386(@yishanjiu-3386)开发并维护,当前版本 v1.0.0。

💬 留言讨论