Browser-Use API - Self-Hosted AI Browser Automation by Ananiya KestoBrowser-Use API - Self-Hosted AI Browser Automation by Ananiya Kesto

Browser-Use API - Self-Hosted AI Browser Automation

Ananiya Kesto

Ananiya Kesto

๐Ÿš€ Browser-Use REST API - Watch Your AI Work in Real-Time

The Most Advanced Self-Hosted Browser Automation API
Drop-in replacement for Browser-Use Cloud with real-time VNC viewing, browser session management, and 15+ LLM models

โœจ What Makes This Special?

๐Ÿ‘๏ธ Watch AI Work in Real-Time

See exactly what your AI agent is doing through browser VNC streaming. Debug faster, understand better.

๐Ÿ”„ Persistent Browser Sessions

Create browser profiles, save login states, and reuse sessions across multiple tasks - just like a human would.

๐ŸŽฎ Full Task Control

Start, stop, pause, resume tasks. Get real-time step updates as your agent executes.

๐ŸŒ 15+ LLM Models

Switch between GPT-4, Claude, Gemini, Llama and more. Get $10 free with browser-use-llm.

๐Ÿ”“ 100% Self-Hosted

Complete control over your data. No cloud dependencies. Works offline.

โšก Production Ready

Docker support, multi-arch builds, health checks, supervisor process management, and CI/CD ready.

๐ŸŽฌ See It In Action


Output:

Navigate to http://localhost:8080/vnc.html and watch your AI agent work in real-time! ๐ŸŽฅ

๐Ÿš€ Quick Start (3 Commands)

Option 1: Docker (Recommended - 30 seconds)


โœ… Done! API is running at http://localhost:8080
๐Ÿ‘๏ธ VNC Viewer: http://localhost:8080/vnc.html ๐Ÿ“š API Docs: http://localhost:8080/docs

Option 2: Docker Compose (For Development)


Option 3: Local Python (Advanced)


๐ŸŽฏ Real-World Use Cases

๐Ÿ” Research Automation


Perfect for researchers, analysts

๐Ÿ›’ E-commerce Monitoring


Price tracking, competitor analysis

๐Ÿ“Š Data Collection


Web scraping, lead generation

๐ŸŽซ Booking & Reservations


Restaurant bookings, event tickets

๐Ÿงช QA Testing


E2E testing, regression testing

๐Ÿ“ฑ Social Media


Social media automation

๐ŸŒŸ Key Features

๐ŸŽฅ Real-Time Browser Viewing (VNC)

NEW! Watch your AI agent work through a browser interface. No more blind automation.

Features:
๐Ÿ–ฅ๏ธ Full HD 1920x1080 display
๐Ÿ”„ Real-time screen updates
๐Ÿ–ฑ๏ธ Interactive mode (click, type, scroll)
๐Ÿ“น Watch task execution live
๐Ÿ› Debug issues instantly

๐Ÿ”„ Browser Session Management

Create persistent browser sessions with saved cookies, localStorage, and authentication:

Features:
๐Ÿ’พ Save/load browser profiles
๐Ÿช Persistent cookies and sessions
๐Ÿ” Keep login states across tasks
๐Ÿ“ Share profiles between tasks
โ™ป๏ธ Reuse authenticated sessions

๐Ÿ“Š Advanced Task Tracking

Get real-time step-by-step updates as your agent executes:

๐Ÿค– 15+ LLM Models Supported

Provider Models API Key Required Browser-Use browser-use-llm (Get $10 free) โœ… Get Key OpenAI gpt-4.1, gpt-4.1-mini, gpt-4o, gpt-4o-mini, o4-mini, o3 โœ… Google gemini-2.5-flash, gemini-2.5-pro, gemini-flash-latest, gemini-flash-lite-latest โœ… Anthropic claude-sonnet-4, claude-sonnet-4-5, claude-3-7-sonnet โœ… Meta llama-4-maverick-17b-128e-instruct โœ…
๐Ÿ’ก Tip: Start with gemini-flash-lite-latest (fast & cheap) or browser-use-llm ($10 free credit).

๐Ÿ“– API Endpoints

๐ŸŽฏ Task Management

Endpoint Method Description /tasks POST Create a new browser automation task /tasks GET List all tasks (with pagination & filters) /tasks/{id} GET Get detailed task info with steps /tasks/{id} PATCH Control task (stop, pause, resume) /tasks/{id}/vnc GET Get VNC viewer URL for task /tasks/{id}/logs GET Download task execution logs /tasks/{id}/debug GET Debug endpoint for raw data

๐ŸŒ Browser Session Management (NEW!)

Endpoint Method Description /browser/launch POST Launch a browser with profile /browser/sessions GET List all active browser sessions /browser/{id} DELETE Close a browser session /browser/{id}/navigate POST Navigate browser to URL /browser/profiles GET List saved browser profiles /browser/profiles/{name} DELETE Delete a browser profile

๐Ÿ”ง System & Health

Endpoint Method Description /health GET API health check /vnc/health GET VNC services status / GET API info & version /docs GET Interactive Swagger UI

๐Ÿ”ฅ Advanced Examples

Example 1: Multi-Step Research with VNC Viewing


Example 2: Persistent Login Session


Example 3: E-commerce Price Monitoring


Example 4: Parallel Task Execution


๐Ÿณ Production Deployment

Docker Compose (Recommended)


Environment Variables


Scaling with Kubernetes


๐Ÿ†š Self-Hosted vs Cloud

Feature Self-Hosted (This) Browser-Use Cloud Cost ๐ŸŸข Free (your hardware) ๐ŸŸก Pay per task Privacy ๐ŸŸข 100% private ๐ŸŸก Data sent to cloud VNC Viewing ๐ŸŸข Real-time browser view ๐Ÿ”ด Not available LLM Models ๐ŸŸข 15+ models ๐ŸŸข 15+ models API Compatibility ๐ŸŸข v2 compatible ๐ŸŸข v2 native Offline Mode ๐ŸŸข Works offline ๐Ÿ”ด Requires internet Setup Time ๐ŸŸก 5 minutes ๐ŸŸข Instant Scalability ๐ŸŸก Manual scaling ๐ŸŸข Auto-scaling Support ๐ŸŸก Community ๐ŸŸข Official support
๐Ÿ’ก Best of both worlds: Use self-hosted for development/testing, cloud for production at scale!

๐Ÿ”ง Configuration & Customization

Request Schema


Response Schema


๐Ÿ› Debugging & Troubleshooting

Check Service Health


View Container Logs


Debug Task Execution


Common Issues

VNC not connecting

Browser crashes/hangs

LLM API key errors

๐Ÿ“Š Performance Benchmarks

Task Type Avg Time Success Rate Best LLM Simple navigation 5-10s 99% gemini-flash-lite Form filling 15-30s 95% gpt-4o-mini Data extraction 30-60s 92% gpt-4.1 Complex workflows 2-5min 85% claude-sonnet-4 Multi-step research 5-10min 80% o3
Tested on: 4-core CPU, 8GB RAM, 50Mbps internet

๐ŸŽ“ Learning Resources

๐ŸŽฅ Video Tutorial: Getting Started (coming soon)
๐Ÿ“ Blog: Advanced Automation Patterns (coming soon)
๐Ÿ”ง GitHub Examples Repository (coming soon)

๐Ÿค Contributing

We welcome contributions! Here's how you can help:
๐Ÿ› Report bugs - Open an issue with detailed reproduction steps
๐Ÿ’ก Suggest features - Share your ideas in discussions
๐Ÿ”ง Submit PRs - Fix bugs or add new features
๐Ÿ“– Improve docs - Help others understand the project
โญ Star the repo - Show your support!

๐Ÿ“œ License

MIT License - see LICENSE file for details.
This project is a REST API wrapper for browser-use by the Browser-Use team.

๐ŸŽ Bonus: Pre-Built Automation Templates

๐Ÿ“Š Data Extraction Template

๐Ÿ” Login Automation Template

๐Ÿ”„ Periodic Monitoring Template

Questions? Ideas? Feedback?
Open an issue or join our Discord - we'd love to hear from you!
Like this project

Posted Aug 17, 2026

Self-hosted AI browser automation (8 stars) โ€” Docker REST API compatible with Browser-Use Cloud API v2 spec, live VNC viewing.