Getting Started
Getting started with running OpenHands locally.
Recommended Methods for Running Openhands on Your Local System
System Requirements
- MacOS with Docker Desktop support
- Linux
- Windows with WSL and Docker Desktop support
A system with a modern processor and a minimum of 4GB RAM is recommended to run OpenHands.
Prerequisites
Start the App
You’ll find OpenHands running at http://localhost:3000!
Setup
After launching OpenHands, you must select an LLM Provider
and LLM Model
and enter a corresponding API Key
.
This can be done during the initial settings popup or by selecting the Settings
button (gear icon) in the UI.
If the required model does not exist in the list, in Settings
under the LLM
tab, you can toggle Advanced
options
and manually enter it with the correct prefix in the Custom Model
text box.
The Advanced
options also allow you to specify a Base URL
if required.
Getting an API Key
OpenHands requires an API key to access most language models. Here’s how to get an API key from the recommended providers:
Consider setting usage limits to control costs.
Setting Up Search Engine
OpenHands can be configured to use a search engine to allow the agent to search the web for information when needed.
To enable search functionality in OpenHands:
- Get a Tavily API key from tavily.com.
- Enter the Tavily API key in the Settings page under
LLM
tab >Search API Key (Tavily)
For more details, see the Search Engine Setup guide.
Now you’re ready to get started with OpenHands.
Versions
The docker command above pulls the most recent stable release of OpenHands. You have other options as well:
- For a specific release, replace
$VERSION
inopenhands:$VERSION
andruntime:$VERSION
, with the version number. For example,0.9
will automatically point to the latest0.9.x
release, and0
will point to the latest0.x.x
release. - For the most up-to-date development version, replace
$VERSION
inopenhands:$VERSION
andruntime:$VERSION
, withmain
. This version is unstable and is recommended for testing or development purposes only.
Next Steps
- Connect OpenHands to your local filesystem. to use OpenHands with your GitHub repositories
- Run OpenHands in a scriptable headless mode.
- Run OpenHands with a friendly CLI.
- Run OpenHands on tagged issues with a GitHub action.