智能体 · 中文选型解读

OpenHands

已解读GitHubMITTypeScript

OpenHands是面向研发场景的自托管代码智能体管控平台,支持对接多类大模型与智能体,可帮助企业实现常见研发任务的自动化处理。

85.7kstar今天仍有更新维护状态MIT · 可评估商用商用提醒
在 GitHub 查看官方项目
适合解决让 AI 拆解任务、调用工具并完成多步骤流程
更适合希望自动化运营、调研、销售或内部流程的团队
投入判断上手门槛:需评估。需要明确流程边界,并持续评测结果
一分钟看懂

这个项目值得继续研究吗?

AI 依据上游资料解读 · 2026/9/1

OpenHands是面向研发场景的自托管代码智能体管控平台,支持对接多类大模型与智能体,可帮助企业实现常见研发任务的自动化处理。

解决什么问题
企业使用AI代码工具时普遍面临平台分散难统一管理、敏感代码易外泄、无法和内部研发工具打通、自定义自动化任务难落地等问题,难以充分释放AI对研发效率的提升价值。
适合什么团队
适合有自研需求、对代码数据安全有较高要求、想要落地AI辅助研发流程、定制研发自动化任务的企业技术团队与研发效能团队。
使用前注意
项目当前处于beta阶段,无沙箱部署时智能体可直接访问部署机器全文件系统,云端部署需参考官方文档完成安全加固配置。

本页用于缩短初步筛选时间,不构成技术、采购或法律结论。 正式使用前请在真实业务数据上验证,并以官方说明与许可证为准。

项目导读

从官方资料看清能力、部署与采用边界

AI 翻译整理 · 保留官方来源

以下内容依据项目公开 README 或模型卡翻译整理,代码、命令和产品名保持原样。

项目定位

OpenHands Agent Canvas是面向研发场景的自托管智能体管控中心,可将各类代码智能体整合为统一的自动化研发资源,替代零散的AI代码工具,所有数据与运行过程都可控,满足企业的安全与自定义需求。它默认内置开源OpenHands智能体,也支持对接第三方智能体,可运行在本地、私有服务器或企业内部基础设施中。

核心能力

OpenHands具备以下核心能力:

  1. 灵活的部署选项:支持在个人电脑、专用硬件(如Mac Mini)、云服务器等多种环境部署,也可选择对接OpenHands Cloud或企业版商业基础设施。
  2. 多后端无缝切换:可在同一前端界面切换本地、远程、云端的多个智能体后端,例如团队可共享公共服务器上的智能体处理代码评审、依赖升级类任务,研发人员可同时使用本地运行的个人智能体处理日常开发工作。
  3. 自动化流程编排:支持自定义自动化工作流,可设置定时触发或通过webhook事件触发,覆盖各类研发重复任务。
  4. 现有工具打通:可对接Slack、GitHub、Notion、Linear、Datadog等第三方工具,实现自动化流程和现有研发工具链的打通。
  5. 多LLM兼容:支持对接任意LLM(大语言模型),企业可选择使用自研大模型或商用大模型。
  6. 多智能体兼容:支持OpenHands、Claude Code、Codex、Gemini等所有符合ACP(智能体客户端协议)的智能体。

典型使用方式

企业可基于OpenHands落地常见的研发自动化场景:

  • 自动生成研发数据报表,同步推送到企业沟通工具
  • 自动将GitHub issue拆解为可执行的研发子任务
  • 定时自动扫描并更新项目依赖版本
  • 自动完成代码规范性评审,给出修改建议
  • 响应webhook事件触发自定义研发处理流程

部署方式

OpenHands提供三种官方部署方案:

方案1:无沙箱部署

直接在部署机器上运行智能体服务,注意:该模式下智能体拥有部署机器的全文件系统访问权限。 前置要求:Node.js 22.12.x及以上版本、uv 部署命令:

npm install -g @openhands/agent-canvas
agent-canvas

也可单独运行前后端:

agent-canvas --frontend-only  # 仅运行静态前端与入口
agent-canvas --backend-only   # 仅运行智能体服务、自动化后端与入口

部署完成后可通过 http://localhost:8000 访问界面。

方案2:Docker沙箱部署

通过Docker容器运行,智能体仅能访问指定的项目目录,安全性更高。 前置要求:macOS/Windows需安装Docker Desktop,Linux需安装Docker Engine或Docker Desktop;提前创建好允许智能体访问的项目目录。 macOS/Linux部署命令:

export PROJECTS_PATH="$HOME/projects"  # 存放项目的目录
mkdir -p "$PROJECTS_PATH" "$HOME/.openhands"

docker run -it --rm \
  -p 8000:8000 \
  -v "$HOME/.openhands:/home/openhands/.openhands" \
  -v "${PROJECTS_PATH}:/projects" \
  ghcr.io/openhands/agent-canvas:1.16.0

Windows部署命令可参考README.windows.md。 部署完成后可通过 http://localhost:8000/canvas 访问界面。

方案3:源码部署

直接拉取源码运行,注意:该模式下智能体拥有部署机器的全文件系统访问权限。 前置要求:Node.js 22.12.x及以上版本、npm、uv 部署命令:

git clone https://github.com/OpenHands/OpenHands.git
cd OpenHands
npm install
npm run dev

部署完成后可通过 http://localhost:8000 访问界面。 如果需要部署在云端服务器,可参考官方自托管文档完成安全加固配置,云端部署的智能体可在本地电脑关机后持续运行,也更方便对接Slack、GitHub等第三方服务触发任务。

开源架构说明

OpenHands采用多仓库架构,不同模块分别维护:

  • OpenHands/OpenHands:负责Agent Canvas前端、用户管控界面、后端选择、本地栈编排
  • OpenHands/software-agent-sdk:负责Python SDK、智能体服务、智能体、工具、会话、工作空间、事件、官方服务API
  • OpenHands/typescript-client:负责浏览器兼容的智能体服务API TypeScript客户端
  • OpenHands/automation:负责自动化定义、调度、webhook、运行历史、任务分发

许可证与采用建议

本项目使用MIT许可证,允许企业自由修改、商用。当前项目处于beta阶段,建议企业先在非核心研发场景小范围测试验证效果,涉及敏感代码的场景优先选择Docker沙箱部署模式,云端部署需严格按照官方文档完成安全加固后再上线使用。

可核对的事实层

官方资料与来源

查看来源 →
  • agent
  • artificial-intelligence
  • chatgpt
  • claude-ai
  • cli
  • developer-tools
  • gpt
  • llm
  • openai
默认分支main
关注仓库482
复刻次数11.2k
开放议题604
近期更新2026/8/30
仓库状态未标记归档
上游部署线索
## Quickstart

You can install OpenHands to run agents on any machine: on your laptop, on a dedicated computer like a Mac Mini,
or on a server in the cloud.

The most powerful way to run OpenHands is on a server in the cloud. This allows your agents to continue running
even when your laptop is shut, and makes it easier to trigger your agents through third-party services
like Slack, GitHub, and Datadog. See [SELF_HOSTING.md](docs/SELF_HOSTING.md) for details, especially with respect to security hardening.

Notably, you can run the backend in _multiple different environments_, and switch between
them from the same Agent Canvas frontend. E.g. you can share an Agent Server with your team for agents doing
code review and dependency updates, then have your personal agents running on your laptop.

### Option 1: Without a Sandbox

> [!WARNING]
> This runs the agent-server directly on the machine

该片段来自项目 README,仅用于初步判断;实际部署请以官方文档为准。

核对上游原始说明节选

🙌 OpenHands: AI-Driven Development

Agent Canvas The self-hosted developer control center for coding agents and automations. Run OpenHands, Claude Code, Codex, Gemini, or any ACP-compatible agent across local, remote, and cloud backends. Quickstart | Docs | Self-Hosting | ACP Agents | Automations | Slack

OpenHands Agent Canvas turns your coding agents into a self-hosted, always-on engineering team. It's a developer control center for starting conversations and automating everyday tasks — like generating reports that publish to Slack or automatically decomposing GitHub issues into tasks.

It runs locally on your machine by default, but can connect to multiple “agent backends”, e.g. running agents in Docker containers, on VMs, or within your company infrastructure. You can optionally choose to run agents on OpenHands Cloud or OpenHands Enterprise infrastructure.

Agent Canvas runs the open source OpenHands agent out-of-the-box, but can use any third-party agent like Claude Code and Codex.

| | | | -------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | | Self-host your way | Run agents locally, in Docker, on VMs, or anywhere you can run an agent server backend | | Switch between different backends | Switch between local, remote, and cloud agents without losing focus | | Create automations | Create automations and workflows that integrate with Slack, GitHub, Linear, and more. Run on a schedule or in response to webhook events | | Integrate with the tools you use | Connect your automations with third-party services like Slack, GitHub, Notion, and more to automate workflows | | Bring your own model | Use with any LLM | | Use with any agent | Use with OpenHands, Claude Code, Codex, Gemini, or any agent with Agent-Client Protocol (ACP). |

If you have questions or feedback, please open a GitHub issue or join the #proj-agent-canvas channel in Slack.

Quickstart

You can install OpenHands to run agents on any machine: on your laptop, on a dedicated computer like a Mac Mini, or on a server in the cloud.

The most powerful way to run OpenHands is on a server in the cloud. This allows your agents to continue running even when your laptop is shut, and makes it easier to trigger your agents through third-party services like Slack, GitHub, and Datadog. See SELFHOSTING.md for details, especially with respect to security hardening.

Notably, you can run the backend in multiple different environments, and switch between them from the same Agent Canvas frontend. E.g. you can share an Agent Server with your team for agents doing code review and dependency updates, then have your personal agents running on your laptop.

Option 1: Without a Sandbox

[!WARNING]
This runs the agent-server directly on the machine you're installing on — the agent will have full access to your filesystem!

Prerequisites: Node.js 22.12.x or later, uv

npm install -g @openhands/agent-canvas
agent-canvas

The agent-canvas command starts the full local stack by default. You can also split it when you want to run pieces separately:

agent-canvas --frontend-only  # static frontend + ingress only
agent-canvas --backend-only   # agent server + automation backend + ingress only

Option 2: With a Docker Sandbox

Prerequisites:

  • Docker: Docker Desktop on macOS/Windows, or Docker Engine/Docker Desktop on Linux.
  • A host directory for PROJECTSPATH containing the project folders you want the agent to access. Create it before starting the container.

macOS / Linux:

export PROJECTS_PATH="$HOME/projects"  # directory containing your project folders
mkdir -p "$PROJECTS_PATH" "$HOME/.openhands"

docker run -it --rm \
  -p 8000:8000 \
  -v "$HOME/.openhands:/home/openhands/.openhands" \
  -v "${PROJECTS_PATH}:/projects" \
  ghcr.io/openhands/agent-canvas:1.16.0 # x-release-please-version

Windows (PowerShell / Windows Terminal): See README.windows.md for the equivalent commands.

The agent will be able to access any project under PROJECTSPATH.

Option 3: From Source

[!WARNING]
This runs the agent-server directly on the machine you're installing on — the agent will have full access to your filesystem!

Prerequisites: Node.js 22.12.x or later, npm, uv (for running the agent server via uvx)

git clone https://github.com/OpenHands/OpenHands.git
cd OpenHands
npm install
npm run dev

---

Access the UI at http://localhost:8000 for the npm/source launchers, or http://localhost:8000/canvas for the Docker image. You can add additional backends directly from the UI.

Architecture

Agent Canvas is powered by the OpenHands Agent Server, a REST API for running multiple agents on a single machine. Each Agent Server runs on a single host/port; the Agent Canvas can connect to multiple Agent Servers and easily flip between them.

You can run an Agent Server anywhere:

  • Directly on your laptop (be careful!)
  • On a dedicated machine like a Mac Mini
  • On a virtual machine in the cloud
  • Inside OpenHands Cloud (our commercial offering)

The Agent Server is often paired with an Automation Server, which lets you set up agents that run on a schedule or in response to events.

Repository boundaries

Agent Canvas is part of a multi-repository OpenHands system. Changes should go to the repository that owns the behavior:

| Repository | Responsibility | |---|---| | OpenHands/OpenHands | Agent Canvas frontend, user-facing control center, backend selection, and local-stack orchestration. | | OpenHands/software-agent-sdk | Python SDK, Agent Server, agents, tools, conversations, workspaces, events, and the canonical server API. | | OpenHands/typescript-client | Browser-compatible TypeScript client for the Agent Server API. | | OpenHands/automation | Automation definitions, scheduling, webhooks, run history, and dispatching. |

The Agent Server API is implemented by the SDK and consumed through the TypeScript client by Agent Canvas. The automation service decides when work runs and dispatches conversations to the Agent Server/SDK, which decides what runs. See AGENTS.md for contributor-specific boundaries and the required custom code-review guide.

More documentation

  • Documentation index
  • Architecture overview
  • Development guide
  • Self-hosting guide