爱意满满的作品展示区。
i0error

Codex 的 chrome control 很好用,我折腾了一下让其他 agent 也可以用上它

  •  
  •   i0error · 1h 44m ago · 582 views

    Codex 自带的 Chrome 控制非常好用:直接接管日常在用的 Chrome Profile ,登录态、当前开着的标签页全都能复用,不用开干净浏览器。支持 CDP ,开发/调试看 Network 、Console 、Performance 都很方便。

    可惜 Claude Code 这边目前没发现一样好用的功能。

    于是我指挥 Codex 研究了一下它自己,把这个能力包装成了 MCP server ,这样别的 agent 也能用上了。安装、配置一下 MCP 、skill (可选)即可。

    Quick start:

    注意:我仅在 macOS 上验证了 Chrome 、Edge 的可用性,其他平台、浏览器很可能不支持。欢迎研究下一起贡献支持。完整内容见 https://github.com/iola1999/codex-control-chrome-mcp

    npm install -g codex-control-chrome-mcp
    codex-control-chrome-mcp install-native-host
    

    然后配置 MCP:

    {
      "type": "stdio",
      "command": "codex-control-chrome-mcp",
      "args": ["--stdio"],
      "startup_timeout_sec": 30
    }
    

    用了几天没发现什么问题,挺好用的,分享给大家。

    15 replies    2026-07-08 10:21:12 +08:00
    i0error
        1
    i0error  
    OP
       1h 21m ago
    漏了第一步,首先需要安装 Codex chrome extension: https://chromewebstore.google.com/detail/codex/hehggadaopoacecdllhhajmbjkdcmajg
    kuhung
        2
    kuhung  
       57 mins ago
    这个 token 消耗也巨快。claude 印象中不是也会起自己的吗
    Yishanshan
        3
    Yishanshan  
       55 mins ago
    请问没有插件的情况下效果会变差吗
    tomaple
        4
    tomaple  
       47 mins ago
    @i0error 安装不了这个拓展的,应用商店提示无法下载
    i0error
        5
    i0error  
    OP
       47 mins ago
    @kuhung token 开销目前感受还好,没有碰到明显异常的。Claude Desktop App 有 chrome 功能,code 没有看到。只能自己用 chrome-devtools-mcp 了,这个强制用独立的 data dir 启动,就没法复用现有的 chrome 窗口和登录态了?也可能有其他的我没发现。
    i0error
        6
    i0error  
    OP
       45 mins ago
    @Yishanshan 是指 skill 吗?不加也可以正常使用,相信模型会搞懂用法的。功能都正常,只是最后可能不会清理标签页。
    i0error
        7
    i0error  
    OP
       44 mins ago
    @tomaple Google 搜了下有人说是网络的问题,比如 hk 的梯子可能不行?需要自行搜索研究了下
    Yishanshan
        8
    Yishanshan  
       44 mins ago
    @i0error #6 浏览器插件
    i0error
        9
    i0error  
    OP
       43 mins ago
    @Yishanshan #8 是必须安装的
    ODESZA
        10
    ODESZA  
       42 mins ago
    @tomaple 直接让 codex 下载本地安装包,然后手动安装
    Yishanshan
        11
    Yishanshan  
       41 mins ago
    @i0error #9 浏览器插件应该对操作页面的能力没有提升吧,只是能复用登录状态等信息
    Rache1
        12
    Rache1  
       40 mins ago
    @tomaple 最好是美国节点
    DICK23
        13
    DICK23  
       36 mins ago
    为什么我的 codex 始终记不住它,总是优先会调 playright/agent-browser 。我在 AGENTS.md 和项目 skill 文件中都已经标明调用都不行,都得每次会话时带上
    i0error
        14
    i0error  
    OP
       31 mins ago
    @DICK23 可以 @Chrome 强制触发
    i0error
        15
    i0error  
    OP
       30 mins ago
    @Yishanshan #11 嗯跟 chrome-devtools-mcp 能力一致,好处就是复用现有登录态和标签页。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5789 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 1510ms · UTC 02:51 · PVG 10:51 · LAX 19:51 · JFK 22:51
    ♥ Do have faith in what you're doing.