An intelligent AI-powered browser automation agent that can open websites, perform searches, and execute tasks autonomously.
- Autonomous Decision Making: Uses AI to decide whether to chat or perform browser actions
- Browser Automation: Opens websites and performs Google searches using Puppeteer
- Real-time Execution: Actions are performed immediately without user intervention
- Conversation History: Tracks all interactions with persistent storage
- Modern UI: Clean, professional interface built with Next.js and Tailwind CSS
- Frontend: Next.js 15, React 19, Tailwind CSS
- Backend: Next.js API Routes
- AI: OpenRouter API (GPT-4o-mini)
- Browser Automation: Puppeteer
- Storage: LocalStorage for history
-
Clone the repository
git clone <your-repo-url> cd Rusty
-
Install dependencies
npm install
-
Set up environment variables
Create a
.env.localfile in the root directory and add:OPENROUTER_API_KEY=your_openrouter_api_key_hereGet your API key from OpenRouter
-
Run the development server
npm run dev
-
Open your browser
Navigate to http://localhost:3000
- Start a conversation: Type your message in the input box
- Watch the AI think: See the AI's reasoning process
- Automatic actions: The agent will open websites or search when needed
- View history: Check the sidebar for all your previous interactions
- Delete entries: Use the delete button to remove history items
- "open amazon.com" - Opens Amazon website
- "search for latest smartphones" - Performs Google search
- "what's the weather today?" - Regular chat response
The app requires an OpenRouter API key for AI functionality:
- Sign up at OpenRouter.ai
- Generate an API key
- Add it to your
.env.localfile
For production:
- Set
headless: truein Puppeteer configuration - Remove debug delays
- Deploy to Vercel, Netlify, or your preferred platform
Rusty/
├── src/app/
│ ├── api/
│ │ ├── agent/route.ts # Main AI agent logic
│ │ └── browser/route.ts # Browser automation
│ ├── layout.tsx # App layout
│ └── page.tsx # Main UI
├── package.json
├── tailwind.config.ts
└── README.md
- Fork the repository
- Create a feature branch
- Make your changes
- Test thoroughly
- Submit a pull request
This project is open source and available under the MIT License.
- Built with Next.js
- AI powered by OpenRouter
- Browser automation with Puppeteer
Made with ❤️ for smarter browser interactions