| title | Local GUI |
|---|---|
| description | Launch the full OpenHands web GUI using Docker |
The openhands serve command launches the full OpenHands GUI server using Docker. This provides the same rich web interface as OpenHands Cloud, but running locally on your machine.
openhands serve- Docker installed and running
- Sufficient disk space for Docker images (~2GB)
# Launch the GUI server
openhands serve
# The server will be available at http://localhost:3000The command will:
- Check Docker requirements
- Pull the required Docker images
- Start the OpenHands GUI server
- Display the URL to access the interface
| Option | Description |
|---|---|
--mount-cwd |
Mount the current working directory into the container |
--gpu |
Enable GPU support via nvidia-docker |
To give OpenHands access to your local files:
# Mount current directory
openhands serve --mount-cwdThis mounts your current directory to /workspace in the container, allowing the agent to read and modify your files.
For tasks that benefit from GPU acceleration:
openhands serve --gpuThis requires:
- NVIDIA GPU
- NVIDIA Container Toolkit installed
- Docker configured for GPU support
# Basic GUI server
openhands serve
# Mount current project and enable GPU
cd /path/to/your/project
openhands serve --mount-cwd --gpuThe openhands serve command:
- Pulls Docker images: Downloads the OpenHands runtime and application images
- Starts containers: Runs the OpenHands server in a Docker container
- Exposes port 3000: Makes the web interface available at
http://localhost:3000 - Shares settings: Uses your
~/.openhandsdirectory for configuration
Press Ctrl+C in the terminal where you started the server to stop it gracefully.
| Feature | openhands serve |
openhands web |
|---|---|---|
| Interface | Full web GUI | TUI in browser |
| Dependencies | Docker required | None |
| Resources | Full container (~2GB) | Lightweight |
| Features | All GUI features | CLI features only |
| Best for | Rich GUI experience | Quick terminal access |
❌ Docker daemon is not running.
Please start Docker and try again.
Solution: Start Docker Desktop or the Docker daemon.
Got permission denied while trying to connect to the Docker daemon socket
Solution: Add your user to the docker group:
sudo usermod -aG docker $USER
# Then log out and back inIf port 3000 is already in use, stop the conflicting service or use a different setup. Currently, the port is not configurable via CLI.
- Local GUI Setup - Detailed GUI setup guide
- Web Interface - Lightweight browser access
- Docker Runtime - Docker configuration details