Frameworks & Platforms
Browser Use
Run Browser Use agents with TokenLab models
Overview
Browser Use can call TokenLab through ChatOpenAILike, the OpenAI-compatible chat model wrapper.
Environment
export TOKENLAB_API_KEY="sk-your-tokenlab-key"Example
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",
add_schema_to_system_prompt=True,
dont_force_structured_output=True,
)
agent = Agent(
task="Compare the top search results for TokenLab 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 TokenLab native Responses, Anthropic Messages, or Gemini endpoints, use a client path in Browser Use that speaks that protocol directly.