Prerequisites
Launching the GUI Server
Using the CLI Command
You can launch the OpenHands GUI server directly from the command line using theserve command:
Prerequisites: You need to have the OpenHands CLI installed first, OR have
uv
installed and run uvx --python 3.12 openhands serve. Otherwise, you’ll need to use Docker
directly (see the Docker section below).- Check that Docker is installed and running
- Pull the required Docker images
- Launch the OpenHands GUI server at http://localhost:3000
- Use the same configuration directory (
~/.openhands) as the CLI mode
Mounting Your Current Directory
To mount your current working directory into the GUI server container, use the--mount-cwd flag:
/workspace inside the container.
Using GPU Support
If you have NVIDIA GPUs and want to make them available to the OpenHands container, use the--gpu flag:
- NVIDIA GPU drivers must be installed on your host system
- NVIDIA Container Toolkit (nvidia-docker2) must be installed and configured
Requirements
Before using theopenhands serve command, ensure that:
- Docker is installed and running on your system
- You have internet access to pull the required Docker images
- Port 3000 is available on your system
Using Docker Directly
Alternatively, you can run the GUI server using Docker directly. See the local setup guide for detailed Docker instructions.Overview
Initial Setup
- Upon first launch, you’ll see a settings popup.
- Select an
LLM ProviderandLLM Modelfrom the dropdown menus. If the required model does not exist in the list, selectsee advanced settings. Then toggleAdvancedoptions and enter it with the correct prefix in theCustom Modeltext box. - Enter the corresponding
API Keyfor your chosen provider. - Click
Save Changesto apply the settings.
Settings
You can use the Settings page at any time to:- Setup the LLM provider and model for OpenHands.
- Setup the search engine.
- Configure MCP servers.
- Connect to GitHub, connect to GitLab and connect to Bitbucket.
- Set application settings like your preferred language, notifications and other preferences.
- Manage custom secrets.

