Prerequisites
Get Your API Key
Sign up and get your API key from the Hyperbrowser Dashboard.Install Dependencies
- Playwright
- Puppeteer
Part 1: Automate with Playwright or Puppeteer Scripts
Let’s start by scraping the top story from Hacker News using Playwright or Puppeteer. This shows how you can launch Hyperbrowser sessions and connect to them with automation libraries like Playwright or Puppeteer.- Playwright
- Puppeteer
Part 2: AI-Powered Automation
Now let’s solve the same problem using HyperAgent, our AI-powered browser automation tool. Instead of writing selectors and navigation logic, you simply describe what you want in natural language.The Difference
With HyperAgent, you don’t need to:- Write CSS selectors
- Handle page navigation
- Manage browser state
- Debug DOM changes
Hyperbrowser also integrates with other popular AI agent frameworks including BrowserUse, Claude Computer Use, Gemini Computer Use, and OpenAI CUA. All agents benefit from Hyperbrowser’s cloud infrastructure, stealth capabilities, and proxy support.
Next Steps
Learn more about managing browsers sessions and other capabilities:Browser Sessions
Learn about managing cloud browser sessions at scale
Web Scraping APIs
Extract data from websites with our scraping APIs
AI Agents
Dive deeper into HyperAgent and other AI automation tools
API Reference
Explore the complete API documentation
Additional Resources
Browser Integrations
- Puppeteer Integration - Connect with Puppeteer for automation
- Playwright Integration - Connect with Playwright for automation
SDKs
- Node.js SDK - TypeScript/JavaScript SDK reference
- Python SDK - Python SDK reference
AI Agent Integrations
- BrowserUse - Open-source agent for fast browser automation
- Claude Computer Use - Anthropic’s Claude with computer capabilities
- Gemini Computer Use - Google’s Gemini computer use agent
- OpenAI CUA - OpenAI’s computer use agent