Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

I gave Claude Code a browser with my real logins. Here’s what I had to get right

说明与用途

创建自定义浏览器 Kinaya,使 Claude Code 代理能够使用真实登录凭据,采用后台标签、用户批准的操作和本地加密密码存储。

问题

Agents built on Playwright start with a fresh profile, leaving them logged out of user accounts; using the main Chrome browser was insecure.

结果

Agents can now perform authenticated browsing tasks daily without manual login, with user‑approved actions and secure password handling.

工作流

  • Add Kinaya MCP to Claude Code with a single command
  • Launch Kinaya automatically if not running
  • Open a dedicated background tab per MCP session
  • Use tab_id to target specific tabs
  • Allow read actions freely while requiring approval for clicks, typing, navigation, form fills, uploads, and sign‑ins
  • Store passwords in an encrypted local vault (XChaCha20‑Poly1305) and never expose them to the model
  • Handle CAPTCHAs and phone codes via ask_user tool
  • Configure dialogs to auto‑answer and report back to the agent
  • Batch multiple actions to reduce round trips

证据

Tools built on Playwright start a fresh profile, so the agent is logged out of everything.

来源

Adding it to Claude Code is one line: claude mcp add kinaya -- /Applications/Kinaya.app/Contents/MacOS/kinaya —mcp

来源

The tab I'm looking at never moves. Every tool also takes an optional tab_id, so one agent running several tabs is still explicit.

来源

The agent never sees a password. sign_in fills a login saved in the browser's password vault, and create_login generates and saves a strong password for a sign-up.

来源

A browser alert or confirm can freeze an automated session. In Kinaya, dialogs raised while the agent acts are answered and reported back to the agent instead of blocking.

来源

  • 记录日期: 2026-10-22T15:11:06.535Z