A Kernel application that implements the Browser Use SDK with the BU 1.0 model for autonomous browser automation tasks.
This application provides a dual-mode Browser Use agent that can run both locally and as a deployed Kernel action. It leverages the Browser Use framework and bu-1.0 model to perform autonomous web browsing tasks on Kernel-hosted browsers.
- Python 3.11 or higher
 - Kernel CLI (for deployment)
 - Kernel API Key
 - Browser Use API key
 
- Install dependencies using uv:
 
uv syncOr using pip:
pip install -r requirements.txt- Set up your environment variables in 
.env: 
BROWSER_USE_API_KEY=your_api_key_here
KERNEL_API_KEY=your_api_key_here
Run the agent locally with a task:
uv run main.py "Give me a 1 sentence summary of each of the last three releases from Browser Use"The script will:
- Create a Kernel browser session
 - Execute the Browser Use agent (using 
BU 1.0model) with your task - Print the browser live view URL for monitoring
 - Return the result and clean up resources
 
Deploy as a Kernel action:
kernel deploy main.py --env-file .envThen invoke via API:
kernel invoke bu-api-task --payload '{"task": "Give me a 1 sentence summary of each of the last three releases from Browser Use"}'The Browser Use agent is configured with:
ChatBrowserUseProviderBU 1.0llm model- Stealth mode enabled
 - Automatic browser cleanup after task completion
 
See main.py for implementation details and customization options.
For more information, see the Kernel<>Browser Use Integration Guide.