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

# Browser Use

> 使用 TokenLab 模型執行 Browser Use 代理

## 概覽

Browser Use 可以透過 `ChatOpenAILike`（與 OpenAI 相容的聊天模型封裝器）呼叫 TokenLab。

<Note>
  **類型**: 瀏覽器自動化代理框架

  **主要路徑**: 與 OpenAI 相容的 Chat Completions

  **支援信心**: 支援與 OpenAI 相容的路徑
</Note>

## 環境設定

```bash theme={null}
export TOKENLAB_API_KEY="sk-your-tokenlab-key"
```

## 範例

```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["TOKENLAB_API_KEY"],
    base_url="https://api.tokenlab.sh/v1",
)

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

## 端點注意事項

若您的 Browser Use 工作流程需要透過與 OpenAI 相容的客戶端呼叫 Chat Completions，請使用此頁面。如果您的工作流程需要 TokenLab 原生回應、Anthropic Messages 或 Gemini 端點，請在 Browser Use 中使用直接支援該協定的客戶端路徑。
