This repository contains a Docker Compose template and an associated .env
file creator for starting an OpenHands instance. The OpenHands project is an open-source initiative aimed at creating a collaborative platform for AI development and research.
FWIW you can get this to work with Ollama pretty easily, but Ollama has a tendency to bomb out...it's kind of an issue of finding the "right" model that is ready for agentic actions and is good at calling tools. They exist but using something like Deepseek...especially during the daily discount period...is really a much better alternative. You'll really save yourself a lot of time/effort for not much money.
This repository provides the necessary Docker Compose configuration to easily set up and run an OpenHands instance. OpenHands is designed to facilitate the development and sharing of AI models, datasets, and tools.
To get started with OpenHands using Docker, follow these steps:
-
Clone this repository:
git clone https://github.com/mattgagliardi/OpenHands.git
-
Navigate to the project directory:
cd OpenHands
-
Ensure you have Docker and Docker Compose installed on your system.
-
Set up the necessary environment variables for the script:
export GITHUB_PAT=-github-PAT-token- export LLM_API_KEY=-api-key-for-llm-of-choice- export LLM_MODEL=-llm-model-name- export TAVILY_API_KEY=-tavily-search-api-token- export GIT_USERNAME=-your-github-username- export GIT_EMAIL=-your-github-email-
-
Create the
.env
file Docker Compose will use by running thegenerate-env.sh
script. Review the script, you probably need to add some environment variables to make the script populate fully.chmod +x generate-env.sh ./generate-env.sh
-
Start the OpenHands instance using Docker Compose:
docker-compose up -d
-
Follow any additional instructions in the
.env
files or documentation to configure your instance as needed. You may need to enter your desired model provider, API keys, etc. in the UI that's exposed athttp://localhost:3000
.