ugh browser use is really polluting the cli depend...
# proj-sdk
q
ugh browser use is really polluting the cli dependencies
as of today do we support browsing in cli?
c
i think we can remove it for CLI?
✅ 1
but we do need it for server 😞
were you running into issues in compiling the binary?
q
just trying to trim binary dependencies it should be fine if i can remove browser use completely
c
i guess we will run into this issue again in the agent server lolsob
nod 1
l
Isn't it an MCP that we interact with? Why would we need any dependencies?
Or did we finally decide to not do that because of cost tracking
q
It would be great if it were an mcp instead We have a builtin tool for browser use atm: https://github.com/All-Hands-AI/agent-sdk/blob/main/openhands/tools/__init__.py#L3
I can't exclude it either because the tool package _`__init__`_ imports it by default - I'm going to open a PR upstream to lazy import at the very least
cc @chilly-france-44439 https://github.com/All-Hands-AI/agent-sdk/pull/330 This cuts down a huge chunk of memory and speed up boot up time in CLI Still backwards compatible, tool imports work as expected
👍 1
c
not really - browser use MCP requires you to plugin an OpenAI key which really doesn’t make sense for our use case. We eventually just port the tools in by importing relevant modules
👍 1
w
Nice work! I might suggest not having an init.py for the tools package, and instead importing them individually
that'd fix your lazy load problem a little more cleanly I think
I wonder if each tool should be its own package? Or its own set of conditional dependencies?
Plugin-y packages often publish as e.g.
@openhands-tools/bash
@openhands-tools/file-editor
, etc
nod 1