Overview
Theopenhands serve command launches the full OpenHands GUI server using Docker. This runs the legacy Docker-based GUI locally; it does not launch Agent Canvas.
This requires Docker to be installed and running on your system.
Prerequisites
- Docker installed and running
- Sufficient disk space for Docker images (~2GB)
Basic Usage
- Check Docker requirements
- Pull the required Docker images
- Start the OpenHands GUI server
- Display the URL to access the interface
Options
Mounting Your Workspace
To give OpenHands access to your local files:/workspace in the container, allowing the agent to read and modify your files.
GPU Support
For tasks that benefit from GPU acceleration:- NVIDIA GPU
- NVIDIA Container Toolkit installed
- Docker configured for GPU support
Examples
How It Works
Theopenhands 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
Stopping the Server
PressCtrl+C in the terminal where you started the server to stop it gracefully.
Comparison: GUI Server vs Web Interface
Troubleshooting
Docker Not Running
Permission Denied
Port Already in Use
If port 3000 is already in use, stop the conflicting service or use a different setup. Currently, the port is not configurable via CLI.See Also
- Local GUI Setup - Detailed GUI setup guide
- Web Interface - Lightweight browser access
- Docker Sandbox - Docker sandbox configuration details

