Skip to main content
OpenBrowser supports a wide variety of LLM providers. Choose the one that best fits your needs.

Google Gemini example

GEMINI_API_KEY is deprecated and should be named GOOGLE_API_KEY as of 2025-05.
Required environment variables:
.env

OpenAI example

O3 model is recommended for best accuracy.
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

And add the variable:
.env

Azure OpenAI example

Required environment variables:
.env

AWS Bedrock example

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.

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

Required environment variables:
.env

Oracle Cloud Infrastructure (OCI) example

OCI provides access to various generative AI models including Meta Llama, Cohere, and other providers through their Generative AI service.
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

  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 OpenBrowser.

Qwen example

Currently, only qwen-vl-max is recommended for OpenBrowser. 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

Other models (DeepSeek, Novita, OpenRouter…)

We support all other models that can be called via OpenAI compatible API. We are open to PRs for more providers.

DeepSeek example

Required environment variables:
.env

Novita example

Required environment variables:
.env

OpenRouter example

Required environment variables:
.env

Browser-Use LLM example

ChatBrowserUse() is an external LLM service from browser-use.com optimized for browser automation tasks.
Required environment variables:
.env
Get your API key from browser-use.com.