It seems the V0 CLI also supported launching the G...
# proj-sdk
q
It seems the V0 CLI also supported launching the GUI server Now that we have V1 CLI, which is standalone, do we still want to support this functionality ?
Or what is the reason for supporting this in the first place?
c
I think it might be a @elegant-branch-54423 question: Given that our CLI is now pretty lightweight, i don't see a reason why we can't force ppl to use CLI to launch the GUI server, this could allow us to: • share configuration between CLI and GUI • later when we figure out how we can connect CLI to OpenHands Cloud, maybe it is easier to seamlessly connect local GUI experience to cloud experience too. ā—¦ For example, i can launch local GUI session like
oh serve --mount-cwd
and it is pretty handy than writing a very complex docker command ā—¦ When we have OH cloud integration, i can also do
oh serve --mount-cwd --cloud
that will transparently send this task to cloud
q
But what's the difference between using the CLI and using
make run
to launch the GUI
? EDIT: ah realized it was packaged as
openhands-ai
in pypi so that makes sense, it doesn't requiring cloning our repo Since its a separate project we'd also like to keep the dependencies minimal and not introduce things like docker
The point about deduping the local to cloud connection is valid, although it seems like we'd run the risk of coupling the GUI with CLI once again
e
Our docs guide users to do this: Launch GUI (but also requires Docker running)
uvx --python 3.12 --from openhands-ai openhands serve
(or just
openhands serve
once installed) Launch CLI
uvx --python 3.12 --from openhands-ai openhands
(or just
openhands
once installed) In my mind, this is a nice way to show that you get 'both' - GUI and CLI - in a convenient install command In this context, both GUI and CLI share the same config right? (e.g., ~/.openhands) Let me know if I am not following this thread correctly šŸ™‚
c
Since its a separate project we'd also like to keep the dependencies minimal and not introduce things like docker
I think what CLI did there was just
subprocess.run(docker XXX
and it is fine to just throw errors and tells user to install docker
acknowledged 1
and manage the docker for user
q
okay cool! the only breaking change will be the package name for the CLI (
openhands-cli
instead of
openhands-ai
) i'll add the code to V1 since it seems easy enough and i want to rip out the old code
c
Actually, what do we feel about just naming it
OpenHands
if it will be the entry point for both šŸ¤”? (cc @wooden-umbrella-84098) we just got the
openhands
pypi packages
😲 1
e
what happens when we move to a new package name? Does this break updates for existing users?
q
people can still use the old package, but new updates will go to the new package
e
is there a reason we can't use the old package name? sorry if these are naive questions - trying to minimize disruption for our users... i.e., reduce as much friction as possible so they can benefit from the future updates etc.
q
we made the CLI its own project separate from the server, so it needs its own name (to prevent naming conflict)
c
i think we can definitly publish to both the old and the new pypi project
so both pip install openhands and pip install openhands-ai works
but we might want to use openhands going forward since it is simpler?
q
oh yeah i need to correct my prior statement, new CLI updates won't go to the openhands-ai project since we're removing the CLI from there
c
i guess maybe we should (after v1 rollout to OH server of course)
q
oh is it planned to have the CLI be part of the OH server as well?
(via dependency)
c
i was actually think if it will be actually useful to publish OH server as a PyPI package though..
ppl won't be able to do too much thing with it, if we indeed want to do it, maybe we will just do
openhands-server
w
IMO the CLI should not also come with the AppServer. It will blow out the size of the CLI package and cause the download to take longer and be more error prone
nod 1
Happy to chat further about this though, I can see an argument otherwise
but we've deliberately made these separate projects/packages to allow them to ship independently
e
Agree that lightweight install is most favorable. If we go with a new package name for CLI, we'll probably need to have some sort of "notice" or "banner" in
openhands-ai
that tells users to upgrade to the new package name
q
^ i think we can do another release for V0 CLI that contains deprecation warnings (instead of removing it completely from the start)
w
We are also publishing binaries via PyInstaller right? IMO that should be the new entrypoint instead of pypi
nod 1
it's way more friendly, especially for folks that aren't active python users
c
It's probably possible to have the cake and eat it too... like some install with optional deps to launch AppServer šŸ¤” +1 on a separate, lightweight, just-works CLI app, though, IMHO it matters
c
yeah i definitely agree on this - just suggesting that we still add these convenient methods like
oh serve
-- it doesn't add any dependency at all, just alias to a very long docker command
šŸ‘ 1
and it can also point user to the right pip install openhands-server command if user actually want that
basically it'll be one entry point for the application, and it should instruct user to install the right thing if user wants something fancy (eg instruct user to install docker if they want to launch GUI)
šŸ‘ 1
q
yep I have documented the plan in the PR description here - https://github.com/All-Hands-AI/OpenHands/pull/11220 lmk if this seems reasonable
šŸ‘ 1
c
sounds good!