Documentation Index
Fetch the complete documentation index at: https://allhandsai-feat-plugin-via-agent-context-example.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Theopenhands 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.
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
| Option | Description |
|---|---|
--mount-cwd | Mount the current working directory into the container |
--gpu | Enable GPU support via nvidia-docker |
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
| 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 |
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 Runtime - Docker configuration details

