Browser automation plugin for Eliza OS that provides web scraping and browser automation capabilities.
The Browser plugin serves as a powerful component of Eliza OS, providing browser automation and web scraping capabilities using Playwright. It enables automated web interactions, content extraction, and browser-based tasks for Eliza agents.
- Browser Automation: Web scraping and content extraction with Playwright
- Multiple Browser Support: Works with Chromium, Firefox, and WebKit
- Headless Mode: Support for both headless and headed browser operations
- Page Interaction: Automated form filling, clicking, and navigation
- Content Extraction: HTML parsing and data extraction
- Screenshot Capture: Page and element screenshot capabilities
- Network Handling: Request interception and network monitoring
npm install @elizaos/plugin-browser
The plugin may require various environment variables depending on your use case:
CAPSOLVER_API_KEY=your_capsolver_api_key # Optional: For CAPTCHA solving capabilities
import { createBrowserPlugin } from "@elizaos/plugin-browser";
// Initialize the plugin
const browserPlugin = createBrowserPlugin();
// Register with Eliza OS
elizaos.registerPlugin(browserPlugin);
Provides comprehensive web automation and scraping capabilities using Playwright:
- Page navigation and interaction
- Form filling and submission
- Content extraction and parsing
- Screenshot capture
- Network request handling
- CAPTCHA solving (with appropriate configuration)
- Sandbox Environment: Browser operations run in isolated contexts
- Resource Management: Automatic cleanup of browser instances
- Request Filtering: Control over network requests
- Memory Management: Efficient handling of browser resources
- Browser Launch Failures
Error: Failed to launch browser
- Verify system dependencies are installed
- Check for sufficient system resources
- Ensure proper permissions
- Page Navigation Issues
Error: Navigation timeout
- Check network connectivity
- Verify URL accessibility
- Adjust timeout settings
Enable debug logging for detailed troubleshooting:
process.env.DEBUG = "eliza:plugin-browser:*";
- Node.js 16.x or higher
- Supported operating system (Windows, macOS, or Linux)
- Sufficient RAM for browser operations
- Internet connectivity
For issues and feature requests, please:
- Check the troubleshooting guide above
- Review existing GitHub issues
- Submit a new issue with:
- System information
- Error logs
- Steps to reproduce
This plugin integrates with and builds upon several key technologies:
- Playwright - Core browser automation
- CAPSolver - CAPTCHA solving capabilities (optional)
Special thanks to:
- The Playwright community for their excellent browser automation framework
- The Eliza community for their contributions and feedback
This plugin is part of the Eliza project. See the main project repository for license information.