If you want to create a browser service that will run in every room:
meshagent service create --name "browser" --image docker.io/meshagent/sample-browser:0.0.31 --env="MESHAGENT_PORT=8090" --port "num=8090 type=meshagent.callable liveness=/ path=/agent participant_name=browser"
If you want to test the browser with a single room:
meshagent service test --room my-room --name "browser" --image docker.io/meshagent/sample-browser:0.0.31 --env="MESHAGENT_PORT=8090" --port "num=8090 type=meshagent.callable liveness=/ path=/agent participant_name=browser"
Here is the browser service code if you want to create your own app:
from meshagent.api import RequiredToolkit
from meshagent.openai import OpenAIResponsesAdapter
from meshagent.computers import ComputerAgent, BrowserbaseBrowser, Operator
from meshagent.api.services import ServiceHost

import asyncio

service = ServiceHost()


@service.path("/agent")
class BrowserbaseAgent(ComputerAgent):
    def __init__(self):
        super().__init__(
            name="meshagent.browser",
            title="browser agent",
            description="a task runner that can use a browser",
            requires=[
                RequiredToolkit(
                    name="ui",
                    tools=[
                        # "ask_user",
                        # "display_document",
                        # "show_toast"
                    ],
                ),
            ],
            llm_adapter=OpenAIResponsesAdapter(
                model="computer-use-preview",
                response_options={
                    "reasoning": {"generate_summary": "concise"},
                    "truncation": "auto",
                },
            ),
            labels=["tasks", "computers"],
            computer_cls=BrowserbaseBrowser,
            operator_cls=Operator,
        )


asyncio.run(service.run())