Browser use rest API with openrouter models
3.5K
Docker compose
services:
browser-use-openrouter-rest-api:
image: theapu/browser-use-openrouter-rest-api:latest
container_name: browser-use-openrouter-rest-api
ports:
- "25000:8000"
- "5901:5900"
shm_size: 2gb
environment:
# Pass the API Key from your host system or .env file
- OPENROUTER_API_KEY=<openrouter key>
# Defaults (can be overridden)
- OPENROUTER_MODEL_NAME=google/gemini-2.5-flash-preview-09-2025
- OPENROUTER_BASE_URL=https://openrouter.ai/api/v1
- ANONYMIZED_TELEMETRY=false
- MAXSTEPS=50 # Maximum allowed number of steps for browser-use
# Optional: set this to require an X-API-Key header on all requests
# - API_KEY=your_secret_key_here
restart: unless-stopped
Example request
curl -X POST http://localhost:25000/run
-H "Content-Type: application/json"
-H "X-API-Key: your_secret_key_here"
-d '{"task": "Go to google.com and search for the weather in London"}'
Content type
Image
Digest
sha256:de8c67e94…
Size
636.5 MB
Last updated
7 days ago
docker pull theapu/browser-use-openrouter-rest-api