OpenHands is an open-source AI-powered software development platform that has rapidly grown to over 71,000 GitHub stars by redefining what’s possible with AI-assisted coding. Formerly known as OpenDevin, OpenHands is developed by All-Hands-AI and provides a comprehensive environment where AI agents can autonomously write code, debug issues, deploy applications, browse the web, and collaborate with human developers in real time.
The platform distinguishes itself by running inside a sandboxed execution environment, giving AI agents full access to a bash shell, browser, and code editor – much like a human developer’s workstation. This environment-first approach allows OpenHands to handle complex, multi-step software engineering tasks that go far beyond simple code completion, positioning it as one of the most capable open-source coding agents available in 2026.
What is OpenHands and how does it work?
OpenHands is an AI software development platform where LLM-powered agents operate within a secure, sandboxed environment. The agent receives a task, plans its approach, executes commands in the terminal, edits files, runs tests, and iterates until the task is complete. The platform supports multiple LLM backends including GPT-4, Claude, and open-source models, and provides a web-based UI for monitoring agent progress in real time.
OpenHands Components
| Component | Description | Technology |
|---|---|---|
| Agent Runtime | Sandboxed execution environment | Docker, MicroK8s |
| Code Editor | Built-in file editing interface | Monaco Editor |
| Browser | Headless browser for web tasks | Playwright |
| Bash Shell | Full terminal access | Docker container |
| Planner | Task decomposition and planning | LLM-guided |
| Web UI | Real-time agent monitoring | Next.js, React |
SWE-Bench Performance
OpenHands has consistently ranked among the top-performing systems on SWE-Bench, the industry standard benchmark for evaluating AI coding agents on real-world GitHub issues.
| Evaluation | Score | Date | Notes |
|---|---|---|---|
| SWE-Bench Verified | 48.6% resolved | 2025 Q3 | Open-source SOTA |
| SWE-Bench Lite | 42.3% resolved | 2025 Q3 | Full SWE-Bench Lite |
| SWE-Bench Full | 33.8% resolved | 2025 Q3 | 2,294 real issues |
| HumanEval | 92.1% pass@1 | 2025 Q3 | Python code generation |
How does the agent architecture work?
OpenHands uses a modular agent architecture. The core agent is an event-driven loop that processes observations from the environment (terminal output, file contents, browser state) and decides on the next action (write code, run a command, browse the web). Actions and observations are stored in a structured history that the agent can reference for context. The agent can also spawn sub-agents for parallel task execution.
flowchart TD
A[User Task] --> B[Agent Controller]
B --> C[Task Planner]
C --> D{Agent Loop}
D --> E[Observe Environment]
E --> F[LLM Reasoning]
F --> G[Select Action]
G --> H{Bash Command?}
G --> I{Edit File?}
G --> J{Browse Web?}
H --> K[Execute in Sandbox]
I --> L[Write to File System]
J --> M[Headless Browser]
K --> E
L --> E
M --> E
D --> N[Task Complete]
N --> O[Submit Result]What LLMs are supported?
| Provider | Models | Quality Tier |
|---|---|---|
| OpenAI | GPT-4o, GPT-4o-mini, o1, o3 | Excellent |
| Anthropic | Claude 3.5 Sonnet, Claude 4 | Excellent |
| Gemini 1.5 Pro, 2.0 Flash | Very Good | |
| Open Source | DeepSeek V3, Qwen 3, LLaMA 4 | Very Good |
| Local | Ollama, vLLM, LM Studio | Good (limited context) |
How does OpenHands handle software deployment?
OpenHands includes a deployment pipeline that can push applications to cloud platforms, configure CI/CD workflows, and manage infrastructure as code. The agent can create Dockerfiles, write deployment scripts, configure Nginx or Caddy, set up SSL certificates, and deploy to platforms like Vercel, Netlify, AWS, or any Linux server via SSH. This end-to-end capability means OpenHands can take a project from empty directory to live deployment without human intervention.
What enterprise features does OpenHands offer?
For enterprise deployments, OpenHands provides features including multi-agent orchestration with role-based task assignment, a REST API for integration into existing development workflows, custom sandbox configuration for security compliance, persistent workspaces for long-running projects, and an audit log of all agent actions. The project also supports a headless mode for server-side deployment, making it suitable for integration into CI/CD pipelines.
sequenceDiagram
participant Dev as Developer
participant OH as OpenHands
participant Sandbox
participant LLM as LLM Backend
participant Git as GitHub
Dev->>OH: "Fix this bug in PR #42"
OH->>Git: Clone repository
OH->>LLM: Analyze issue description
LLM-->>OH: Understanding of bug
OH->>Sandbox: Run tests to reproduce
Sandbox-->>OH: Test failure output
OH->>LLM: Propose fix strategy
LLM-->>OH: Fix plan
OH->>Sandbox: Edit source file
OH->>Sandbox: Run tests again
Sandbox-->>OH: All tests pass
OH->>Git: Commit and push fix
OH-->>Dev: "Bug fixed, PR updated"Frequently Asked Questions
What is OpenHands? OpenHands is an open-source AI-powered software development platform where AI agents autonomously write code, debug, deploy, and collaborate with human developers in a sandboxed environment.
What is its SWE-Bench score? OpenHands achieves 48.6% on SWE-Bench Verified, making it one of the top-performing open-source coding agents on real-world software engineering tasks.
What components does OpenHands include? The platform provides a bash shell, code editor, headless browser, task planner, and real-time web UI – all running inside a secure Docker sandbox.
What LLMs does OpenHands support? OpenAI GPT-4o, Anthropic Claude, Google Gemini, DeepSeek, Qwen, and local models via Ollama, vLLM, or LM Studio.
What enterprise features are available? Multi-agent orchestration, REST API, custom sandboxing, persistent workspaces, audit logging, and headless CI/CD integration.
無程式碼也能輕鬆打造專業LINE官方帳號!一鍵導入模板,讓AI助你行銷加分!