How to Install OpenHands, the AI Software Engineer
OpenHands is an open-source AI software engineer that writes code, runs commands and browses the web to finish tasks. This guide explains what it does and how to install it.
What is OpenHands?
OpenHands is an open-source AI software engineer. You hand it a task in plain language, and it works through the job itself: it writes code, runs commands, tests the result, and browses the web when it needs information. It is built to handle whole features, not just single lines of code, and it works with several different AI models, so you are not tied to one provider.
The project is published as open source on GitHub, where you can read the source code and the README.
What can you do with it?
- Give it a feature request and let it write the code
- Let it run commands and tests on its own to check its work
- Let it search the web for documentation or answers while it works
- Use it with different AI models, not just one
How to install OpenHands
The quickest way is the command-line tool. Open a terminal and run:
npm install -g @openhands/agent-canvasOn Windows, run that command in CMD, not PowerShell, because PowerShell blocks the installer script. On macOS or Linux, use a normal terminal. The README also covers installing with Docker or uvx if you prefer one of those routes.
Once installed, you can start the interface with a command such as:
agent-canvas --frontend-onlyIf your projects live in one folder, point the tool at it first, for example on macOS or Linux:
export PROJECTS_PATH="$HOME/projects"First steps after installing
Start with a small, safe task in a test project, such as fixing a bug or adding a small feature, and watch how the agent plans and works. Review the changes it makes before accepting them, and run the tests yourself the first few times. Once you trust the workflow, give it larger jobs, such as building a new feature end to end, and let it run the tests and report back. Remember that the AI models it calls need API access, so check the pricing of the provider you choose.
Frequently asked questions
Is OpenHands free? The software is free and open source. The AI models it uses need API access, which is billed by the model provider.
Is it hard to install? No. One command is enough for the quick install, and the README covers the Docker and uvx routes.
How do I uninstall it? The README does not list uninstall steps, so check the project's GitHub page for the exact removal instructions.
Comments (0)