arXiv:2511.03690cs.SEcs.AI2025-11中稿 · MLSys 2026被引 35

开源工具包让开发软件代理更灵活可靠,支持多模型、安全执行和多种交互方式。

The OpenHands Software Agent SDK: A Composable and Extensible Foundation for Production Agents

  • 用极简接口设计,支持快速构建到复杂功能的代理系统。
  • 实测显示新版本故障率显著降低,事件溯源开销几乎可忽略。
  • 适合需要定制化、高安全性部署的工程化智能代理开发者。

软件代理在开发流程中应用广泛,但构建生产级工程代理仍具挑战。有效部署需兼顾实现灵活性、执行可靠性与安全性,以及用户交互接口。本文提出 OpenHands 软件代理 SDK,是对主流 OpenHands 框架代理组件的完整架构重构。为提升灵活性,设计了仅需少量代码即可实现的基础接口,同时支持扩展自定义工具、内存管理等高级功能;为保障安全与可靠,提供本地至远程无缝执行迁移能力,并集成 REST/WebSocket 服务;为支持人机交互,可直接对接可视化工作区(如 VSCode、VNC、浏览器)、命令行及 API。相较 OpenAI、Claude 与 Google 等现有 SDK,OpenHands 独特集成原生沙箱执行、生命周期控制、模型无关的多大模型路由及内置安全分析。实证验证表明:生产部署数据证实 V1 版本相比 V0 显著降低系统相关故障,事件溯源开销微乎其微;跨模型与基准测试显示代理性能强劲。综合而言,该工具包为原型开发、新类应用探索及大规模可靠部署提供了实用基础。

原文摘要 · Abstract (English)

Agents are now used widely in the process of software development, but building production-ready software engineering agents is a complex task. Deploying software agents effectively requires flexibility in implementation and experimentation, reliable and secure execution, and interfaces for users to interact with agents. In this paper, we present the OpenHands Software Agent SDK, a toolkit for implementing software development agents that satisfy these desiderata. This toolkit is a complete architectural redesign of the agent components of the popular OpenHands framework for software development agents. To achieve flexibility, we design a simple interface for implementing agents that requires only a few lines of code in the default case, but is easily extensible to more complex full-featured agents with features such as custom tools, memory management, and more. For security and reliability, it delivers seamless local-to-remote execution portability, integrated REST/WebSocket services. For interaction with human users, it can connect directly to a variety of interfaces, such as visual workspaces (VSCode, VNC, browser), command-line interfaces, and APIs. Compared with existing SDKs from OpenAI, Claude and Google, OpenHands uniquely integrates native sandboxed execution, lifecycle control, model-agnostic multi-LLM routing, and built-in security analysis. We validate the architecture empirically: production deployment data shows that V1 substantially reduces system-attributable failures over V0 with negligible event-sourcing overhead, and evaluations across multiple models and benchmarks demonstrate strong agent performance. Put together, these elements allow the OpenHands Software Agent SDK to provide a practical foundation for prototyping, unlocking new classes of custom applications, and reliably deploying agents at scale.

软件代理开发工具多模型路由沙箱执行

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。