智能体 · 中文选型解读

OpenHands

已解读GitHubMITTypeScript

OpenHands是一款自托管的代码智能体管控平台,支持多类型大模型智能体、多后端部署,可对接常用研发工具实现开发任务自动化。

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

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

AI 依据上游资料解读 · 2026/10/7

OpenHands是一款自托管的代码智能体管控平台,支持多类型大模型智能体、多后端部署,可对接常用研发工具实现开发任务自动化。

解决什么问题
解决企业代码类AI工具分散难管控、设备离线时任务中断、对接内部研发工具流程繁琐、代码及业务数据存在外流风险的问题,降低开发环节的重复人力投入。
适合什么团队
适合有一定研发规模,需统一管控AI编码工具、希望实现开发流程自动化、对数据安全有自托管要求的科技企业研发及技术管理团队。
使用前注意
当前项目处于beta阶段;无沙箱部署时智能体将获得设备全文件系统访问权限;公网部署需按照官方文档完成安全加固。

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

项目导读

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

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

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

Agent Canvas 自托管的代码智能体与自动化任务研发管控中心

一、项目定位

OpenHands的核心产品是Agent Canvas,是面向研发场景的自托管智能体管控平台,并非直接生成代码的工具,而是统一管理所有代码类AI智能体的中枢。它可以对接市面上主流的代码智能体,同时兼容各类部署环境,帮助企业把分散的AI编码工具统一管控,所有数据都留存在企业自有环境中,避免外流。

二、核心能力

1. 多环境灵活部署切换

支持在个人笔记本、专用办公设备(如Mac Mini)、云服务器等多种环境部署后端,同一前端界面可以无缝切换不同后端。比如团队可以共用云服务器上的智能体做代码评审、依赖更新这类公共任务,研发人员个人也可以用本地运行的智能体处理临时编码需求,互不干扰。

2. 主流工具与智能体兼容

支持对接所有符合ACP(Agent-Client Protocol,智能体客户端协议,是不同代码智能体统一对接的标准协议)的智能体,包括开源的OpenHands智能体,以及商用的Claude Code、Codex、Gemini等;也支持对接任意LLM(大语言模型,能够理解和生成自然语言、代码的人工智能模型),企业可以根据自身需求选择适配的模型和智能体,不需要更换平台。

3. 跨工具自动化流程配置

可以对接Slack、GitHub、Linear、Notion等常用研发协作工具,支持配置定时触发或者事件触发的自动化工作流,不需要人工干预就可以完成高频重复的开发相关任务。

4. 权限与资源可管控

可以通过沙箱配置限制智能体的文件访问范围,也可以通过团队共享的后端服务统一管控智能体的使用权限,避免敏感代码泄露。

三、典型使用场景

  1. 团队AI编码工具统一管控:替代研发人员各自安装的零散AI编码工具,所有智能体的使用都在统一平台上,操作可追溯,代码数据全部留存在企业自有环境中,满足数据安全要求。
  2. 高频开发任务自动化:可以实现GitHub Issue自动拆分成可执行子任务、代码提交后自动完成初版评审、依赖版本定时检查更新、研发进度报表自动生成推送至团队沟通群等场景,减少研发人员的重复劳动。
  3. 长耗时任务托管:部署在云服务器上的后端可以24小时运行,不需要依赖个人电脑在线,适合运行代码全量扫描、批量依赖更新这类耗时较长的任务,不会因为个人设备关机中断。

四、部署方式选择

你可以根据使用场景选择对应的部署方案:

  1. 个人试用:可以直接通过npm安装本地运行,或者使用Docker沙箱部署,限制智能体仅能访问指定的项目文件夹,避免设备文件泄露。
  2. 小团队共享:可以部署在团队共用的Mac Mini或者云虚拟机上,所有团队成员都可以访问,公共任务统一在服务端运行,不会因为个人设备离线中断。
  3. 企业级部署:参考官方自托管文档完成安全加固,建议使用多Docker沙箱模式,每个会话独立运行在隔离的容器中,避免不同任务之间相互干扰,同时配置强API密钥管控访问权限。

五、安全与项目状态说明

当前项目处于beta迭代阶段,功能还在持续更新中。部署时需要注意:无沙箱模式下运行的智能体将获得设备全文件系统的访问权限,请勿在存放敏感数据的设备上使用该模式;如果需要部署在公网供团队访问,必须按照官方自托管文档完成安全加固,关闭局域网会话密钥注入,设置强API密钥,避免未授权访问。

六、许可与采用建议

项目采用MIT许可证,你可以免费商用,也可以根据自身需求修改源码二次开发,不需要开源修改后的内容。建议企业先在非核心开发场景试点,比如自动拆分Issue、依赖更新这类低风险任务,跑通流程后再逐步推广到核心代码相关的场景,降低试用风险。

可核对的事实层

官方资料与来源

查看来源 →
  • agent
  • artificial-intelligence
  • chatgpt
  • claude-ai
  • cli
  • developer-tools
  • gpt
  • llm
  • openai
默认分支main
关注仓库496
复刻次数12.2k
开放议题1.1k
近期更新2026/10/28
仓库状态未标记归档
上游部署线索
## 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, Pi, OpenCode, 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 third-party agents such as Claude Code, Codex, Gemini CLI, Pi, and OpenCode.

| | | | -------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | | 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, Pi, OpenCode, 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 24 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 127.0.0.1:8000:8000 \
  -e AGENT_CANVAS_ALLOW_LAN_SESSION_KEY=true \
  -v "$HOME/.openhands:/home/openhands/.openhands" \
  -v "${PROJECTS_PATH}:/projects" \
  ghcr.io/openhands/agent-canvas:1.34.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: With Multiple Docker Sandboxes

Run each new conversation in its own Docker container, with its own Agent Server and tools. This is useful for running several agents concurrently. Canvas and the outer Agent Server run on your host and route conversation requests to the containers.

Prerequisites: Node.js 24 or later, uv, and a running Docker Desktop (macOS) or Docker Engine/Desktop (Linux). The user starting Canvas must be able to run docker commands.

macOS / Linux:

npm install -g @openhands/agent-canvas
OH_CONVERSATION_RUNTIME=docker agent-canvas

Open http://localhost:8000 and start a new conversation. Existing local conversations are not converted. Each container mounts its conversation's workspace and persisted state, so workspace files and conversation history survive container replacement. Conversations using the same host workspace still share those files; choose separate directories or worktrees to avoid conflicting edits.

This setting isolates conversation execution; it does not move the entire Canvas or automation service into a sandbox. For Windows, see README.windows.md.

Option 4: 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 24 or later, npm 11.12.1 (the repository pin), uv (for running the agent server via uvx)

Check npm --version before resolving dependencies. The seven-day release-age filter (npm install --min-release-age=7) requires npm >=11.10; older versions do not enforce it. Use npm ci to replay the committed lockfile. This npm requirement is for contributor dependency resolution, not for installing the published Canvas package.

git clone https://github.com/OpenHands/OpenHands.git
cd OpenHands
npm ci
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.

Local (npx / npm run dev) listeners bind loopback only (127.0.0.1) so the auto-injected session key is not reachable from other machines on the network. To listen on all interfaces, pass --host 0.0.0.0 (or set OHBINDHOST); the session key is then not injected and the UI uses the same API-key entry screen as --public.

Docker listens on all container interfaces so port publishing works, but does not inject its session key into HTML by default. The quickstart above explicitly enables injection while publishing the host port on 127.0.0.1 only. If you publish Docker on a LAN or public interface, omit AGENTCANVASALLOWLANSESSIONKEY and enter the API key in the UI. Set LOCALBACKENDAPIKEY to a strong value, or retrieve the generated value with docker exec sh -c 'cat "$STATEDIR/api-key.txt"'. For internet-facing installs, follow self-hosting.

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 S