OpenHands — Open-Source AI Software Developer
Autonomous AI software developer that can write code, run commands, browse the web, and interact with APIs. Formerly OpenDevin. Resolves 53% of SWE-bench Verified tasks. 45,000+ stars.
Review-first install path
This asset needs a review step. The copied prompt tells the agent to dry-run, show the writes, then proceed only after confirmation.
npx -y tokrepo@latest install d837fdc2-8ab0-47fa-adb3-df44233d3a5e --target codexDry-run first, confirm the writes, then run this command.
What it is
OpenHands (formerly OpenDevin) is an open-source autonomous AI software developer. It can write code, execute shell commands, browse the web, interact with APIs, and manage git workflows. The agent operates in a sandboxed Docker environment with full terminal access, making it capable of end-to-end software tasks: from reading an issue to submitting a pull request.
OpenHands targets development teams who want to offload routine coding tasks to an AI agent. It resolves 53% of SWE-bench Verified tasks, demonstrating strong performance on real-world software engineering problems.
How it saves time or tokens
Unlike chat-based coding assistants that suggest code snippets, OpenHands executes the full development cycle autonomously. It reads the codebase, plans changes, writes code, runs tests, and iterates on failures. This eliminates the copy-paste loop between a chat interface and your IDE. The sandboxed environment means the agent can safely try things, check results, and self-correct without risking your development machine.
How to use
- Pull the runtime image and start OpenHands:
docker pull docker.all-hands.dev/all-hands-ai/runtime:0.20
docker run -it --rm \
-e SANDBOX_RUNTIME_CONTAINER_IMAGE=docker.all-hands.dev/all-hands-ai/runtime:0.20 \
-v /var/run/docker.sock:/var/run/docker.sock \
-p 3000:3000 \
docker.all-hands.dev/all-hands-ai/openhands:0.20
- Open
http://localhost:3000and configure your LLM API key.
- Describe the task and let OpenHands work autonomously.
Example
Giving OpenHands a coding task:
Task: Fix the pagination bug in the /api/users endpoint.
The offset parameter is ignored when limit is set to 0.
OpenHands will:
1. Read the relevant source files
2. Identify the bug in the query builder
3. Write a fix
4. Run existing tests
5. Add a test case for the edge case
6. Create a git commit
Related on TokRepo
- AI Tools for Coding — AI-powered development tools and coding agents
- AI Tools for Agents — autonomous AI agent frameworks
Common pitfalls
- OpenHands requires Docker socket access to create sandboxed environments; this is a security consideration for production machines
- Large codebases may exceed context limits; use workspace filtering to focus the agent on relevant directories
- The agent can execute arbitrary commands in its sandbox; review its actions before applying changes to your main branch
Frequently Asked Questions
OpenHands supports Claude, GPT-4, and other LLMs via API. You configure your preferred model and API key through the web interface. Performance varies by model; stronger models produce better results on complex tasks.
OpenHands runs in a sandboxed Docker container. It cannot access your host filesystem or network beyond what you explicitly mount. Review the agent's proposed changes before merging them into your main codebase.
Claude Code is an interactive CLI where you guide the AI through tasks. OpenHands is more autonomous: you describe a task and it executes the full cycle independently. Claude Code offers more control; OpenHands offers more automation.
SWE-bench Verified is a benchmark of real-world software engineering tasks from popular open-source repositories. Each task involves resolving an actual GitHub issue. OpenHands resolves 53% of these tasks autonomously.
Yes. OpenHands can interact with GitHub through its sandbox, creating branches, committing changes, and opening pull requests. You configure GitHub credentials through the interface.
Citations (3)
- OpenHands GitHub— OpenHands autonomous AI developer
- SWE-bench— SWE-bench Verified benchmark results
- OpenHands Docs— OpenHands documentation
Related on TokRepo
Source & Thanks
Created by All Hands AI. Licensed under MIT.
OpenHands — ⭐ 45,000+
Thanks for building the most capable open-source AI developer.
Discussion
Related Assets
OpenHands — AI-Driven Development Agent
OpenHands is an MIT open-source dev agent for agentic coding, with docs, an SDK, and a Docker-first runtime to run tasks reproducibly.
Reactive Resume — AI-Powered Open-Source Resume Builder
Free open-source resume builder with AI integration. Supports Claude, GPT, Gemini for content generation. Drag-and-drop, PDF export, self-hostable, privacy-first. MIT, 36,000+ stars.
Twenty — Open-Source AI CRM (Salesforce Alternative)
Modern open-source CRM with AI features. Custom objects, kanban views, email sync, workflow automation. NestJS + React + PostgreSQL. AGPL-3.0, 43,700+ stars.
Open-Sora — Open-Source Text-to-Video Generation
Open-source alternative to Sora by HPC-AI Tech. Generate videos from text prompts with an 11B parameter model. Apache 2.0 licensed. 28,800+ stars.