A CLI wrapper around the user_profile_directory fork of HyperAgent (https://github.com/kpprasa/HyperAgent-BrowserProfile) for executing web automation tasks with natural language commands.
- Task Execution: Execute natural language tasks on web pages
- Custom Starting Page: Specify a starting URL for your automation tasks
- Execution Timing: Built-in timing to measure task completion duration
- Chrome Configuration: Support for custom Chrome profiles and user data directories
- Node.js 22.19.0 (managed via Volta)
- OpenAI API key
- Clone this repository
- Install dependencies:
npm install
- Set your OpenAI API key:
export OPENAI_API_KEY="your-api-key-here"
Basic usage:
npx ts-node run-agent.ts "Your task description here"With a custom starting page:
npx ts-node run-agent.ts "Navigate to the menu and find pizza options" --starting-page=https://example.comWith custom Chrome profile:
npx ts-node run-agent.ts "Add items to cart" --user-data-dir=/path/to/chrome/data --profile-directory="Profile 2"--starting-page=<url>- Specify the initial page to load--user-data-dir=<path>- Set Chrome user data directory--profile-directory=<name>- Set Chrome profile directory--proxy-server=<url>- Configure proxy server
OPENAI_API_KEY- Required for LLM functionalityDEBUG=true- Enable debug mode for detailed logging
# Navigate to a website and find information
npx ts-node run-agent.ts "Find Italian restaurants in my area" --starting-page=https://doordash.com
# E-commerce automation
npx ts-node run-agent.ts "Add a large pepperoni pizza to my cart" --starting-page=https://dominos.com
# Search and browse
npx ts-node run-agent.ts "Search for laptops under $1000" --starting-page=https://amazon.com
# Social media automation
npx ts-node run-agent.ts "Check my notifications" --starting-page=https://twitter.comThe agent provides:
- Task confirmation and arguments display
- Real-time execution feedback
- Task completion time in milliseconds and seconds
- Structured output from the automation process