> ## Documentation Index
> Fetch the complete documentation index at: https://docs.aisonar.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Browser Use

> Run Browser Use agents with AI Sonar models

## Overview

Browser Use can call AI Sonar through `ChatOpenAILike`, the OpenAI-compatible chat model wrapper.

<Note>
  **Type**: Browser automation agent framework

  **Primary Path**: OpenAI-compatible Chat Completions

  **Support Confidence**: Supported OpenAI-compatible path
</Note>

## Environment

```bash theme={null}
export API_KEY="sk-your-api-key"
```

## Example

```python theme={null}
import os

from browser_use import Agent
from browser_use.llm.openai.like import ChatOpenAILike

llm = ChatOpenAILike(
    model="claude-sonnet-5",
    api_key=os.environ["API_KEY"],
    base_url="https://api.aisonar.dev/v1",
)

agent = Agent(
    task="Compare the top search results for AI Sonar integrations",
    llm=llm,
)
```

## Endpoint Notes

Use this page for Browser Use workflows that call Chat Completions through an OpenAI-compatible client. If your workflow needs AI Sonar native Responses, Anthropic Messages, or Gemini endpoints, use a client path in Browser Use that speaks that protocol directly.
