跳到主内容
AIHO 2026 全新改版上线
TOOL · CODING #06/06编程 Agent
O

Openhands

访问官网
01 / 01深度解读

title: "OpenHands" seoTitle: "OpenHands 评测 2026:开源 AI 编程 Agent,Devin 替代方案" slug: "coding/agent/openhands" domestic: false free: true pillar: "coding" category: "agent" tagline: "开源自主编程 Agent(前 OpenDevin),MIT 许可,多入口(Cloud/CLI/Local/SDK)" description: "OpenHands 真实评测:MIT 开源自主编程 Agent,前身 OpenDevin。可云端、本地 GUI、CLI、SDK 多种方式跑,BYOK 任意 LLM。Individual 免费、Enterprise 自托管多用户。40k+ GitHub stars。" website: "https://www.openhands.dev" github: "https://github.com/All-Hands-AI/OpenHands" pricing: "OSS MIT 免费 / Individual Cloud 免费 BYOK / Enterprise 定制" platforms: docker, cloud, cli languages: zh, en chinese_friendly: 4 opensource: true self_host: true api_compatible:

  • OpenAI
  • Anthropic
  • Google score: power: 4 ux: 3 price: 5 cn_support: 4 stability: 3 tags: agent, autonomous, opensource, mit, sandbox, mcp, byok verdict: "想要 Devin 能力又不想为 ACU 付费 + 担心代码出境的人选 OpenHands。MIT 开源 + Docker 自托管 + BYOK 任意 LLM,是企业级自主 Agent 的开源旗手。" cover: "/img/tools/openhands.webp" priceTable:
  • { plan: "OSS 自托管", price: "$0", seats: "1", notes: "MIT,Docker 起,BYOK,单用户" }
  • { plan: "Individual Cloud", price: "$0", seats: "1", notes: "每日 10 会话上限,BYOK 或用 OpenHands LLM at-cost" }
  • { plan: "Enterprise", price: "Custom", seats: "∞", notes: "自托管多用户、RBAC、SAML/SSO、SLA、专属支持" } faq:
  • q: "OpenHands 和 OpenDevin 什么关系?" a: "同一个项目。2024 年底从 OpenDevin 改名 OpenHands,由 All Hands AI 主导维护,社区贡献者来自学术界和工业界。"
  • q: "和 Devin 比能力差多少?" a: "核心能力覆盖:plan、code、run command、browser use、MCP tool use 都有。差距主要在『一体化体验』——Devin 自带 Wiki/Slack/IDE,OpenHands 需要自己拼 Docker + GUI/CLI;任务成功率两者接近,特定 benchmark(SWE-Bench)OpenHands 还领先过。"
  • q: "本地跑要什么配置?" a: "Docker 必备(Linux/macOS/WSL2),16GB 内存以上推荐,API key 可走 Anthropic Claude / OpenAI GPT / 本地 Ollama。沙箱用 docker-in-docker,CPU 占用偶发尖峰。"
  • q: "Individual Cloud 真的免费?" a: "免费,但限制每天 10 会话;BYOK 自付模型 token,或用『OpenHands LLM provider』按 at-cost 转售价 PAYG(无加价)。" sources:
  • { name: "OpenHands 官方 pricing", url: "https://www.openhands.dev/pricing", accessed: "2026-06-24" }
  • { name: "AISO Tools — OpenHands Pricing 2026", url: "https://aisotools.com/pricing/openhands", accessed: "2026-06-24" }
  • { name: "AI Tool Finder — OpenHands Review 2026", url: "https://aitoolfinder.org/tools/openhands", accessed: "2026-06-24" }
  • { name: "OSS-AI-SWE — OpenHands intro", url: "https://oss-ai-swe.org/open-hands", accessed: "2026-06-24" } alternatives: "coding/agent/devin", "coding/cli/aider", "coding/cli/cline", "agent/general/manus" relatedPlaybooks: "onboarding/legacy-codebase-onboarding" published: 2026-06-19 updated: 2026-06-24

lastVerified: 2026-08-02 relatedReviews: "aider-deep-review", "cline-deep-review", "manus-deep-review"


TL;DR

OpenHands(前 OpenDevin)是 MIT 开源的自主编程 Agent 平台,由 All Hands AI 主导,GitHub 40k+ stars。它的目标和 Devin 一致——给 AI 一个完整的开发者工具集(编辑器、shell、浏览器、API),让它能像人一样完成端到端开发任务。差异在于:OpenHands 完全开源 + 多入口 + BYOK,可以本地 docker 起一个、可以走免费 Cloud、可以企业自托管。

适合:合规 / 隐私敏感场景、想用 Claude / GPT / 本地 Ollama 的人、嫌 Devin 贵且不能落地的人。不适合:想要开箱即用 SaaS 体验、不想碰 Docker / yaml 的非技术用户。

它是什么

OpenHands 的核心是「Agent + 工具集」,工具集包括:

  • 文件编辑(多文件 diff/edit)
  • shell command 执行(Docker sandbox 隔离)
  • 浏览器自动化(点击、表单、截图)
  • API 调用 / HTTP 请求
  • Git 仓库操作(clone、commit、PR)
  • MCP 协议:可挂载任意第三方 tool

四种使用入口:

  1. OSS 自托管docker run 一行起,本地 Web GUI + CLI
  2. Individual Cloud:openhands.dev 注册免费用,每天 10 会话
  3. Enterprise:私有云 + 多用户 + RBAC + 集中 billing
  4. Cloud Agent SDK:把 OpenHands 当 lib 嵌入自家产品

价格(2026-06)

Plan价格限制
OSS 自托管$0BYOK,单用户,自己付 LLM 费
Individual Cloud$0每天 10 会话,BYOK 或 OpenHands at-cost LLM
EnterpriseCustom多用户、SAML/SSO、专属支持、Slack 频道

至今没有「Cloud Pro $X/月」中间档——要么免费 BYOK,要么直接谈 Enterprise。BYOK 路线下,实际 LLM 成本主导:跑一个中等任务(5–10 步)约 $0.5–$2 Claude Sonnet token。

实测(本地 docker 一周高强度试用)

好的地方

  • 起步快:docker run -p 3000:3000 allhandsai/openhands 三分钟到 Web UI
  • 中文支持比 Devin 好——社区贡献了不少中文 prompt 案例
  • 浏览器 use 能力扎实——能去 stackoverflow 搜错误后修代码
  • 任务可视化:sandbox 里跑的每条命令、改的每个文件都有回放
  • BYOK 灵活:白天 Claude Sonnet 4,晚上 DeepSeek R1,省钱

踩坑

  • 自主性偶尔失控:会陷入「装包失败 → 改 requirements → 再装 → 再失败」死循环,需要人工打断
  • 长任务(>30 分钟)context window 会爆,需要把任务拆小
  • Windows 用户必走 WSL2 + Docker Desktop,原生 docker 不稳
  • GUI 体验不如 Cursor / Devin 精致——是工程师工具,不是 PM 工具
  • 沙箱占资源——idle 时也吃 1–2GB 内存

上手

  1. 装 Docker(含 docker-in-docker 支持)
  2. docker pull docker.all-hands.dev/all-hands-ai/openhands:latest
  3. 一行启动(官方推荐命令在 docs),打开 localhost:3000
  4. 选 LLM provider(Anthropic / OpenAI / Ollama / 任意 OpenAI 兼容 endpoint)+ 填 API key
  5. 描述任务(中文 OK),Agent 在 sandbox 里跑给你看
  6. 进阶:编辑 config.toml 加 MCP server,或 fork 仓库改 microagent prompt

对比一览

维度OpenHandsDevinAiderManus
开源✅ MIT
自托管
起步价$0$20 + ACU$0$39/月
中文4/51/53/55/5
Browser use
上手成本中(需 Docker)

避坑

  • 沙箱必启用:直接给 OpenHands 你的家目录权限 = 自杀,永远走 docker-in-docker 隔离
  • API key 限额要设:BYOK 没有月度上限,Agent 一旦循环可能一夜烧掉 $100+,在 Anthropic / OpenAI 控制台配 budget alert
  • 大仓库先 wiki:让 OpenHands 跑一遍 summarize the repo,把结果存到 microagents/,后续任务上下文更准
  • MCP 来源审计:开 MCP server 等于给 Agent 一把外部钥匙,第三方 server 先审代码
  • 不要给 production repo 直接权限:先 fork / 分支隔离,让 Agent 提 PR 而不是直接 push

适合 / 不适合

  • ✅ 中文 / 国内场景(速度 + 隐私 + 成本三优)
  • ✅ 合规 / 私有云部署
  • ✅ 想做企业内部 AI 开发平台的底座
  • ❌ 不会 Docker / 不愿读 yaml 的 PM / 设计师
  • ❌ 要 Devin 那种端到端体验(PR / Slack / Wiki 全自动)

相关阅读

来源

  1. OpenHands 官方 Pricing https://www.openhands.dev/pricing
  2. AISO Tools — OpenHands Pricing 2026(2026-06-21)https://aisotools.com/pricing/openhands
  3. AI Tool Finder — OpenHands Review 2026(2026-05-14)https://aitoolfinder.org/tools/openhands
  4. OSS-AI-SWE 项目目录 https://oss-ai-swe.org/open-hands
Newsletter

关注这个工具的后续更新

订阅 AIHO 周报,第一时间获取该工具版本更新、定价变动与重新评测结果。