使用 Inngest-AgentKit 和 Firebase-Genkit 构建的浏览器代理,具备智能网页导航和任务执行的代理系统。
git clone https://github.com/tmahesh/playwright-agent.git
cd playwright-agent
npm install
cp .env.sample .env
# 使用您的 API 密钥编辑 .env 文件
npx @playwright/mcp@latest --port 8931
npx tsx genkit.ts
# 开发服务器(可选但推荐)
# 它内置了出色的可观测性功能,使用 opentelemetry
npx genkit start -- npx tsx --watch genkit.ts
npx tsx agentkit.ts
# 开发服务器(可选)
npx inngest-cli@latest dev --no-discovery -u http://localhost:3000/api/inngest -v