Let Claude Code or Codex use your logged-in Chrome (without opening a debug port)
说明与用途
编码代理可以在不打开调试端口的情况下使用您已登录的 Chrome,借助 chrome‑use 扩展和 CLI,通过本地消息传递保持会话状态。
问题
Coding agents often get stuck because they launch a fresh browser context that is not signed in, preventing access to logged‑in sites and requiring manual login steps.
结果
Agents can now interact with the user’s signed‑in Chrome without opening a remote‑debugging port, preserving session state, avoiding repeated confirmation dialogs, and allowing the user to handle 2FA or CAPTCHA steps directly.
工作流
- Install the chrome‑use CLI via a one‑line script
- Add the chrome‑use extension from the Chrome Web Store and register the native‑messaging host
- Configure the agent (Claude Code, Codex, Cursor, or custom scripts) to use the chrome‑use skill
- Run a read‑only task to verify the agent can interact with the user’s signed‑in Chrome
- Proceed to authenticated tasks once verified
证据
Ask a coding agent to "check the open issues on our dashboard" and it usually gets stuck at the first step. The browser it drives is a fresh automation browser, and that browser is signed in to nothing.
chrome-use takes a third path.
The CLI talks to a small extension over Chrome native messaging: a local inter-process channel with no network socket, no token and no remote server.
- 记录日期: 2026-10-27T08:26:18.230Z