A browser agent built with Inngest-AgentKit and Firebase-Genkit, featuring an agent system for intelligent web navigation and task execution.
- Node.js (v20 or higher)
- npm or yarn
- OpenAI API key (for GPT models)
- Goolge AI key (for gemini models)
- Clone the repository:
git clone https://github.com/tmahesh/playwright-agent.git
cd playwright-agent- Install dependencies:
npm install- Set up environment variables:
cp .env.sample .env
# Edit .env with your API keys- Start plawright mcp server in a seperate terminal window
npx @playwright/mcp@latest --port 8931- To run with genkit sdk
npx tsx genkit.ts
#dev server(optional but recommended)
#It has fantastic observaibility built-in with opentelemetry
npx genkit start -- npx tsx --watch genkit.ts- If you want to try agentkit of inngest-cli (NOTE: the names are very close agentkit nad genkit)
npx tsx agentkit.ts
#dev-server (optional)
npx inngest-cli@latest dev --no-discovery -u http://localhost:3000/api/inngest -v