Skip to main content

Repository Customization

You can customize how OpenHands works with your repository by creating a .openhands directory at the root level.

Microagents

You can use microagents to extend the OpenHands prompts with information about your project and how you want OpenHands to work. See Repository Microagents for more information.

Setup Script

You can add .openhands/setup.sh, which will be run every time OpenHands begins working with your repository. This is a good place to install dependencies, set environment variables, etc.

For example:

#!/bin/bash
export MY_ENV_VAR="my value"
sudo apt-get update
sudo apt-get install -y lsof
cd frontend && npm install ; cd ..