🙌 OpenHands:73.5k Stars 的 AI-Driven Development 全栈平台,CLI + GUI + SDK 三件套,一个命令拉起你的 AI 编程搭档
项目地址:OpenHands/OpenHands | ⭐ 73.5k Stars | 🐍 Python | MIT License
用过 Claude Code 或 Codex 的人都知道,AI 编程助手确实快,但总差那么点"专业感"——你只能在终端里敲命令,没有 GUI、没有团队协作、没有企业级管理。
OpenHands 就是来解决这个问题的。73.5k Stars,它不只是一个 CLI 工具,而是一整套 AI-Driven Development 平台:CLI 给个人开发者、GUI 给团队、SDK 给需要定制化 Agent 的工程师。而且它支持 Claude、GPT、甚至开源模型随便换,不绑厂商。
一、CLI 模式:5 种运行方式
# 安装(推荐 uv)
uv tool install openhands --python 3.12
# 或者用一键脚本
curl -fsSL https://install.openhands.dev/install.sh | sh
# 完整的功能矩阵
openhands # 终端 TUI 模式(交互式开发)
openhands acp # IDE 集成(支持 Toad / Zed / VS Code / JetBrains)
openhands --headless -t "修复 login 页的 CSS 问题" # 无头模式(CI/CD)
openhands web # 浏览器 UI 模式
openhands serve # 启动完整 Web GUI
最实用的场景是 --headless 模式——你可以在 CI 流水线里跑它,输出 JSON 供下游解析:
openhands --headless --json -t "为 auth.py 写单元测试"
二、MCP 扩展:一行命令加工具
# 列出已有 MCP 服务
openhands mcp list
# 添加网络搜索工具
openhands mcp add tavily --transport stdio \
npx -- -y mcp-remote "https://mcp.tavily.com/mcp/"
# 启用/禁用
openhands mcp enable tavily
三、Cloud 模式:后台跑任务
openhands login # 登录云端
openhands cloud -t "修复 bug #42" # 在云端跑
四、确认模式:从无脑到安全
openhands # 默认模式:每步确认
openhands --yolo # 自动批准所有操作
openhands --llm-approve # LLM 安全分析器
五、SDK:自己造 Agent
OpenHands 的底层是 Software Agent SDK,一个可组合的 Python 库。它包含了 OpenHands 所有的 Agent 技术——你可以在代码里定义 Agent:
from openhands_sdk import Agent, LLMConfig
agent = Agent(
llm=LLMConfig(model="claude-sonnet-4-20250514"),
skills=["coding", "testing", "code_review"]
)
agent.run("优化这个数据库查询")
然后在本地跑,或者 scale 到云端跑 1000 个实例。
总结
OpenHands 和 Claude Code / Codex 最大的区别是:它不只是一个终端工具,而是一个完整的 AI-Driven Development 平台。CLI 给个人、GUI 给团队、SDK 给高级用户、Cloud 给企业。已经被 TikTok、VMware、Netflix、Apple、Google 的工程师用上了。
如果你只是在终端里敲命令写代码,OpenHands CLI 就够用。但如果你需要团队协作 + 企业级权限 + 自定义 Agent,OpenHands 是目前少有的完整方案。
OpenHands (73.5k⭐ · OpenHands/OpenHands · MIT)
CLI: curl -fsSL https://install.openhands.dev/install.sh | sh
SDK: pip install openhands-sdk
Web: https://app.all-hands.dev
🙌 OpenHands: 73.5k⭐ AI-Driven Development Platform — CLI + GUI + SDK, One Command to Start Your AI Coding Partner
Project: OpenHands/OpenHands | ⭐ 73.5k Stars | 🐍 Python | MIT
If you've used Claude Code or Codex, you know the feeling — AI coding assistants are fast, but they feel incomplete. Terminal-only, no GUI, no team collaboration, no enterprise management.
OpenHands is the answer. 73.5k stars, it's not just a CLI tool — it's a full AI-Driven Development platform: CLI for solo devs, GUI for teams, SDK for engineers who need custom agents. And it works with Claude, GPT, or any open model — no vendor lock-in.
Quick Start
# Install via uv (recommended)
uv tool install openhands --python 3.12
# Or one-liner
curl -fsSL https://install.openhands.dev/install.sh | sh
# Start coding
openhands # TUI mode (interactive)
openhands --headless -t "Fix CSS bug in login page" # Headless (CI/CD)
Why OpenHands Stands Out
| Mode | Command | Use Case |
|------|---------|----------|
| Terminal TUI | openhands | Interactive coding |
| IDE | openhands acp | VS Code, JetBrains, Zed |
| Headless | openhands --headless | CI/CD pipelines |
| Web GUI | openhands serve | Team browser UI |
| Cloud | openhands cloud -t "..." | Remote execution |
MCP integration: extend capabilities with one command — openhands mcp add tavily.
Safety modes: --yolo for auto-approve, --llm-approve for AI security analysis.
SDK: Custom agents in 3 lines of Python — pip install openhands-sdk, compose agents, scale to thousands.
Trusted by engineers at TikTok, Netflix, Apple, Google, NVIDIA, Amazon, MongoDB, VMware, Mastercard, Red Hat, Roche, C3 AI.
OpenHands is the most complete AI-Driven Development stack available today. One command starts your AI coding partner — where you take it from there is up to you.