Skip to main content
Browser Use natively supports 15+ LLM providers. Most providers accept any model string. Check each provider’s docs to see which models are available.
Which model should I use? See our benchmark results and recommendations for detailed comparisons across real-world browser tasks.

Browser Use example

ChatBrowserUse() is our optimized in-house model, matching the accuracy of top models while completing tasks 3-5x faster. See our blog post→
Read the bu-2-0 model card for details on intended use, inputs and outputs, tools, benchmarks, judge setup, and limitations.
Required environment variables:
.env
Get your API key from the Browser Use Cloud. New users get 5 free tasks.

Pricing

ChatBrowserUse offers competitive pricing per 1 million tokens: bu-2-0 / bu-latest (Default) bu-1-0 Since May 20, 2026, bu-1-0 is priced the same as bu-2-0:

Google Gemini example

Available models. Also supports Gemma models and Vertex AI via ChatGoogle(model="...", vertexai=True).
GEMINI_API_KEY is deprecated and should be named GOOGLE_API_KEY as of 2025-05.
Required environment variables:
.env

OpenAI example

Available models
Required environment variables:
.env
You can use any OpenAI compatible model by passing the model name to the ChatOpenAI class using a custom URL (or any other parameter that would go into the normal OpenAI API call).

Anthropic example

Available models. Coordinate clicking is automatically enabled for claude-sonnet-4-* and claude-opus-4-* models.
And add the variable:
.env

Azure OpenAI example

Available models
Required environment variables:
.env

Using the Responses API (for GPT-5.1 Codex models)

Azure OpenAI now requires api_version >= 2025-03-01-preview for certain models like gpt-5.1-codex-mini. These models only support the Responses API instead of the Chat Completions API.
Browser Use automatically detects and uses the Responses API for these models:
  • gpt-5.1-codex, gpt-5.1-codex-mini, gpt-5.1-codex-max
  • gpt-5-codex, codex-mini-latest
  • computer-use-preview
The use_responses_api parameter accepts:
  • 'auto' (default): Automatically uses Responses API for models that require it
  • True: Force use of the Responses API
  • False: Force use of the Chat Completions API

AWS Bedrock example

Available models. AWS Bedrock provides access to multiple model providers through a single API. We support both a general AWS Bedrock client and provider-specific convenience classes. Install with pip install "browser-use[aws]".

General AWS Bedrock (supports all providers)

Anthropic Claude via AWS Bedrock (convenience class)

AWS Authentication

Required environment variables:
.env
You can also use AWS profiles or IAM roles instead of environment variables. The implementation supports:
  • Environment variables (AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_DEFAULT_REGION)
  • AWS profiles and credential files
  • IAM roles (when running on EC2)
  • Session tokens for temporary credentials
  • AWS SSO authentication (aws_sso_auth=True)

Groq example

Available models
Required environment variables:
.env

Oracle Cloud Infrastructure (OCI) example

Available models. OCI provides access to various generative AI models including Meta Llama, Cohere, and other providers through their Generative AI service. Install with pip install "browser-use[oci]".
Required setup:
  1. Set up OCI configuration file at ~/.oci/config
  2. Have access to OCI Generative AI models in your tenancy
  3. Install the OCI Python SDK: uv add oci or pip install oci
Authentication methods supported:
  • API_KEY: Uses API key authentication (default)
  • INSTANCE_PRINCIPAL: Uses instance principal authentication
  • RESOURCE_PRINCIPAL: Uses resource principal authentication

Ollama

Available models.
  1. Install Ollama: https://github.com/ollama/ollama
  2. Run ollama serve to start the server
  3. In a new terminal, install the model you want to use: ollama pull llama3.1:8b (this has 4.9GB)

Langchain

Example on how to use Langchain with Browser Use.

Qwen example

Currently, only qwen-vl-max is recommended for Browser Use. Other Qwen models, including qwen-max, have issues with the action schema format. Smaller Qwen models may return incorrect action schema formats (e.g., actions: [{"navigate": "google.com"}] instead of [{"navigate": {"url": "google.com"}}]). If you want to use other models, add concrete examples of the correct action format to your prompt.
Required environment variables:
.env

ModelScope example

Required environment variables:
.env

Vercel AI Gateway example

Available models. Vercel AI Gateway provides an OpenAI-compatible API endpoint that acts as a proxy to various AI providers, with features like rate limiting, caching, and monitoring.
Required environment variables:
.env

DeepSeek example

Available models
Required environment variables:
.env

Mistral example

Available models
Required environment variables:
.env

Cerebras example

Available models
Required environment variables:
.env

OpenRouter example

Available models. Access 300+ models from any provider through a single API.
Required environment variables:
.env

LiteLLM

Requires separate install (pip install litellm). Supports any LiteLLM model string — useful when you need a provider not covered by the native integrations above.

Other OpenAI-Compatible Providers

Any provider with an OpenAI-compatible endpoint works via ChatOpenAI with a custom base_url: Examples available: