-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Usability] Improving CLI interface for OpenHands with oh launch here
and oh launch here --remote
#4024
Comments
I think if you would expand on what CLI means in the context of openhands (via pip), i.e. which file to call etc., you should label it "fix-me" and let it try it. |
OpenHands started fixing the issue! You can monitor the progress here. |
…ith `oh launch here` and `oh launch here --remote`'
A potential fix has been generated and a draft PR #4204 has been created. Please review the changes. |
This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
This issue was closed because it has been stalled for over 30 days with no activity. |
What problem or use case are you trying to solve?
I hope to start OpenHands wherever I want it to work. But now we have to manually maintain a lengthy docker run script and change
WORKSPACE_BASE
every time, or have tomake run
in a directory and modifyconfig.toml
to set the right workspace directory.Describe the UX of the solution you'd like
For example, I am in a folder
xyz/
, and instead of launching a lengthy docker run command, the experience i hope to have is:cd xyz/
pip install openhands
oh launch cli here
-> It will launch a OpenHands CLI pointing toxyz/
as the workspace.oh launch ui here
-> It will launch a OpenHands UI pointing toxyz/
as the workspace.Do you have thoughts on the technical implementation?
Currently, we install OpenHands via
make build
, which uses poetry under the hood, and we already have a command line interface:poetry run python -m openhands.core.cli
. You can find the details of the arg parser inget_parser
function ofopenhands/core/config/utils.py
.Specifically, it has a
--directory
argument.What i want is:
poetry run python -m openhands.core.cli
, I want to directly runoh
oh launch cli here
, i hope i can have aopenhands.core.cli
started with--directory
point to the current pwd.oh launch ui here
, i hope i can start a GUI (followingrun
in./Makefile
) with environment variableWORKSPACE_BASE
andWORKSPACE_MOUNT_PATH
set to pwdDescribe alternatives you've considered
Additional context
The text was updated successfully, but these errors were encountered: