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

How to Connect Claude Code to Gaffa for Browser Automation

说明与用途

将 Gaffa 与 Claude Code 集成,使 AI 能够在真实浏览器中编写、运行和验证浏览器自动化脚本,消除手动调试的需要。

问题

AI coding agents can write browser automation code but lack feedback from a real browser, causing repeated failures.

结果

The integration allows AI agents to write, run, and validate browser automation against a real website in a single loop, reducing manual debugging cycles.

工作流

  • Install Gaffa skills via npx @gaffa-dev/cli install --tools=claude-code --scope=project -y
  • Run npx @gaffa-dev/cli doctor to verify installation
  • Set GAFFA_API_KEY environment variable
  • Use Gaffa CLI or API to send browser actions (e.g., click, type, capture_screenshot) and receive results
  • Let the AI agent generate and execute Playwright-like scripts through Gaffa skills
  • Iterate based on real browser feedback until success

证据

AI coding agents are great at writing browser automation code. They are terrible at knowing whether it works.

来源

Give the agent a real browser behind an API, plus instructions on how to use it, and the loop changes completely: look at the page, write the request, run it, check the output, fix, repeat.

来源

npx @gaffa-dev/cli install --tools=claude-code --scope=project -y

来源

curl -sS -X POST https://api.gaffa.dev/v1/browser/requests ...

来源

  • 记录日期: 2026-10-27T17:11:54.208Z