OpenHands
Open Sourceby All Hands AI
★ 4.6 (289 reviews)
OpenHands is a free, open-source autonomous coding agent that reads your repo, writes code across files, runs tests, and opens pull requests.
Try OpenHands free
Self-hosting is free; you pay only for the LLM API calls. OpenHands Cloud offers trial credits.
We may earn a commission from this link, at no extra cost to you. Disclosure.
Last reviewed
Best for
Developers who want an autonomous coding agent they can run locally against private repositories.
What is OpenHands?
OpenHands (formerly OpenDevin) is an open-source AI software engineer. Given a task, it explores the codebase, edits multiple files, runs commands and tests in a sandbox, and iterates until the change works. You run it with your own model API keys, so private code stays under your control.
Key features
- ▹Multi-file autonomous edits
- ▹Sandboxed command execution
- ▹Runs and fixes tests
- ▹Bring your own model
- ▹CLI + web UI
- ▹GitHub integration
Pros
- +Fully open-source
- +Private code stays local
- +Model-agnostic
- +Strong on multi-step tasks
Cons
- −Model API costs add up on big tasks
- −Needs Docker to run safely
OpenHands pricing
Free tier: Self-hosting is free; you pay only for the LLM API calls. OpenHands Cloud offers trial credits.
Open Source (self-hosted)
Free
- ▹Unlimited use
- ▹Your own API keys
OpenHands Cloud
Usage-based
- ▹Managed sandbox
- ▹Trial credits
How to get started with OpenHands
- 1 Pull and run the OpenHands Docker image
- 2 Set your LLM API key
- 3 Point it at a repo
- 4 Describe the task and review the resulting diff
Try OpenHands free
Self-hosting is free; you pay only for the LLM API calls. OpenHands Cloud offers trial credits.
We may earn a commission from this link, at no extra cost to you. Disclosure.
OpenHands FAQ
Is OpenHands safe for private code?
Yes, when self-hosted. It runs in a local Docker sandbox and only sends code to the LLM provider you configure — nothing goes to a third-party SaaS.
How much does OpenHands cost to run?
The software is free. Your only cost is the model API usage, which varies with task size and the model you pick.
OpenHands alternatives
Other coding agents worth comparing.
Cline
Best for: VS Code users who want an approval-gated autonomous agent inside their editor.
Aider
Best for: Terminal-first developers who want precise, git-aware AI edits with full cost control.
Agent Zero
Best for: Power users who want a fully transparent, hackable autonomous agent they run locally.