OpenWorker:本地优先的桌面智能代理与 Harness SDK
一个在本机运行的 AI 工作桌面和 SDK,给开发者接入工具与模型,审批和沙箱比普通脚本更内建。
GitHub andrewyng/openworker 更新 2026-12-05 分支 main 星标 20.4K 分叉 3.0K
Python/Rust/TypeScript 桌面智能代理 Ollama macOS/Windows

🧭 决策指南

适合,如果你

  • 你要在 macOS 12+ 上用 Ollama 或云端模型处理研究、代码审查和工具调用
    “Use the OpenWorker Desktop App”章节说明支持 macOS 12+、Ollama、研究和代码审查
  • 你正在用 TypeScript 构建桌面或 Web agentic app,需要审批、流式输出和持久会话
    “Build agentic apps using OpenWorker Harness SDK”章节列出 TypeScript SDK、tool calls、approvals、streaming 和 durable sessions
  • 你需要把命令放进 NVIDIA OpenShell 沙箱,并限制可访问的网络主机
    “Governed by design”章节说明每个 agent 使用 Linux container,并只允许网络主机白名单

不适合,如果你

  • 你的 Windows 10/11 发布流程要求安装包已经完成代码签名
    “Use the OpenWorker Desktop App”章节明确写着 Windows builds are not yet code-signed,SmartScreen 会警告
  • 你需要稳定版而不是仍处于 open beta 的桌面应用
    “Use the OpenWorker Desktop App”章节明确说明 Desktop App is in open beta
  • 你的部署要求所有 agent 请求在无人值守时自动批准
    “Governed by design”章节明确说明 unattended runs never self-approve,未处理请求会停在 inbox

前置条件

  • 桌面应用开发环境需要 Python 3.10+、Node 20+ 和通过 rustup 安装的 Rust toolchain
  • 源码启动需要先执行 bash packaging/setup_dev_env.sh 创建 .venv
  • 模型可使用 OpenAI、Anthropic、Google Gemini、OpenRouter,或 Ollama、LM Studio、llama.cpp、vLLM
  • macOS 下载版本要求 macOS 12+;Windows 下载版本支持 Windows 10/11 x64

第一步命令(README 原文)

git clone https://github.com/andrewyng/openworker

要注意

  • 从源码运行 server 时,直接 API 调用必须发送 X-OpenWorker-Token
    “Run the Desktop App from source”章节说明令牌位于 /sidecar-8765.token,并用于 X-OpenWorker-Token 请求头
  • Windows 开发脚本需从 Git Bash 或 WSL 运行
    setup_dev_env.sh 的 README 注释写明 on Windows, run from Git Bash or WSL
  • 完整桌面应用需把 GUI 启动命令替换为 npm run tauri dev
    “Run the Desktop App from source”章节说明 Tauri shell 通过 npm run tauri dev 启动
  • 自动批准不能替代人工安全判断,README 明确称 reviewer verdicts 不是 guarantees
    “Governed by design”章节说明 reviewer verdicts are judgments, not guarantees

材料未说明

  • README 未说明 Linux 桌面应用是否提供可直接安装的发行版
  • README 未给出不同模型提供商和本地模型的兼容版本矩阵
  • README 未提供桌面应用或 Harness SDK 的性能、并发和资源消耗数据
  • README 未说明 25+ connectors 的完整清单及各连接器的权限范围
  • README 未说明 open beta 的预计稳定版发布时间和已知缺陷清单
  • README 未提供 Windows 代码签名完成时间

💡 深度解析

6
不适合 我只能在 Windows 10/11 x64 上部署,并且组织不允许安装尚未代码签名的桌面程序;OpenWorker 当前版本是否适合进入我的开发环境?
适合读者: 维护 Windows 10/11 x64 工作站、需要让 Agent 访问代码仓库和终端的软件工程师,同时受组织安全策略限制,不能绕过 SmartScreen 警告

不适合直接进入该环境,因为 README 明确说明 Windows 构建尚未代码签名,SmartScreen 会发出警告。

  • 项目提供 Windows 10/11 x64 下载路径,但签名仍在进行中;这与“组织禁止未签名程序”的硬约束直接冲突。
  • Windows 的隔离路径是隐藏本地账户,该账户不能看到用户 profile;它不是 README 所说的 macOS 内置沙箱或 NVIDIA OpenShell Linux container。
  • 应用处于 open beta,README 还提到正在打磨 rough edges,因此不能把当前 Windows 包视为已经完成企业发布流程。
  • 如果改走源码运行,仍需处理 Python、Node.js 和桌面 shell 的开发环境,但这不会自动解决组织对签名和发行物审查的要求。
  • Use the OpenWorker Desktop App:Windows 10/11 (x64)
  • Use the OpenWorker Desktop App:builds are not yet code-signed, so SmartScreen will warn; signing is in progress
  • Governed by design:on Windows, through a hidden local account that cannot see your profile
  • Use the OpenWorker Desktop App:The OpenWorker Desktop App is in open beta
材料未说明:README 未说明组织能否使用企业证书重新签名、是否提供 MSI/企业部署包,以及 Windows 沙箱的具体权限边界。;README 未说明当前 Windows 构建是否通过企业杀毒软件和端点管理系统的兼容性验证。
适合 我有 Python 3.10+、Node 20+ 和 Rust toolchain,想从源码启动 Python agent server 与 Vite GUI,并运行 server、GUI unit 和 e2e 测试;README 是否给出了足够直接的开发路径?
适合读者: 需要从源码运行 OpenWorker 的 Python/Node.js/Rust 全栈贡献者,使用 Python 3.10+、Node 20+,并希望同时验证服务端、GUI 单元测试和端到端测试

适合,README 给出了从仓库克隆到启动服务、运行浏览器 GUI 和执行三类测试的连续路径。

  • 前置条件明确为 Python 3.10+、Node 20+,桌面 shell 还需要通过 rustup 安装 Rust toolchain。
  • README 提供了原样的 bootstrap、Python server 和 GUI 启动命令,并说明 Windows 应从 Git Bash 或 WSL 执行初始化脚本。
  • 测试入口也已列出:.venv/bin/pytest 覆盖 server,npm test 覆盖 GUI unit,npm run e2e 覆盖 hermetic end-to-end。
  • 需要注意 standalone server 会生成 /sidecar-8765.token,Vite 启动时读取该文件;端口、工作目录和跨平台 Python 路径仍需按环境处理。
  • Run the Desktop App from source:Prerequisites: Python 3.10+, Node 20+, and ... the Rust toolchain via rustup
  • Run the Desktop App from source:bash packaging/setup_dev_env.sh
  • Run the Desktop App from source:.venv/bin/python -m coworker.server.run --cwd ~/some/project --port 8765
  • Run the Desktop App from source:npm install / npm run dev
  • Run the Desktop App from source:Tests: `.venv/bin/pytest`, `npm test` and `npm run e2e`
git clone https://github.com/andrewyng/openworker
cd openworker

# 1. One-time bootstrap - creates the Python venv at .venv
#    (on Windows, run from Git Bash or WSL)
bash packaging/setup_dev_env.sh
材料未说明:README 未说明 Python、Node.js 和 Rust 的最低补丁版本,也未列出系统级依赖或端口冲突处理。;README 未说明 e2e 测试是否需要模型密钥、Ollama 或外部连接器。
视情况 我主要处理 GitHub pull request、代码文件和终端任务,不能接受 Agent 自行执行不可逆操作;OpenWorker 的审批、审计和沙箱是否满足这个约束?
适合读者: 负责 GitHub 代码审查和重复性报告的软件工程师,团队希望 Agent 能访问 pull request、文件和终端,但高风险操作必须人工批准并留下可追溯记录

视情况适合:OpenWorker 对执行过程提供了较强的权限治理,但它不能替代代码审查者对内容和业务副作用的判断。

  • README 将“reviewed pull request”列为桌面应用的目标结果,并支持连接真实工具、文件和终端。
  • 危险且不可逆的操作属于 hard floors,始终 human-only;即使 full auto-approve 也不能降低这条底线。
  • 每次 tool call 都记录批准来源、批准或拒绝状态及 reviewer reasoning,并与 conversation 一起持久化,便于追踪谁做了什么。
  • 命令和文件工具可放进 NVIDIA OpenShell sandbox;但审计只能提升可追溯性,不能撤销已经发生的 GitHub 或文件副作用。
  • Use the OpenWorker Desktop App:Go from a request to ... a reviewed pull request
  • Governed by design:A set of dangerous and irreversible operations is human-only, always
  • Governed by design:Every tool call is recorded with its approval provenance ... and persisted with the conversation
  • Governed by design:A session's commands and file tools can run inside an NVIDIA OpenShell sandbox
材料未说明:README 未列出 GitHub 连接器的具体权限范围、可执行操作清单或 pull request 写入边界。;README 未说明沙箱是否覆盖 GitHub API 调用,以及外部工具操作失败后的回滚机制。
适合 我需要在 OpenAI、Anthropic 和本地 vLLM 之间切换模型,并运行带审批的无人值守任务;OpenWorker 是否能同时满足模型可替换和不能自行批准的要求?
适合读者: 希望用 OpenAI、Anthropic 或本地 vLLM 在桌面端执行多步骤任务的个人开发者,需要在模型供应商切换、审批规则和无人值守任务之间取得平衡

适合,因为 README 同时覆盖多供应商模型接入和无人值守任务的人工审批边界。

  • Bring your own model 章节列出 OpenAI、Anthropic、Google Gemini、OpenRouter,以及 Ollama、LM Studio、llama.cpp 和 vLLM;模型可在 Settings → Models & Keys 中选择和切换。
  • 审批默认开启,单次批准可以升级为可撤销的长期规则或配置 allowlist;自动批准模式还会把不确定的操作升级给用户。
  • README 明确规定 unattended runs never self-approve,未决请求会停在 inbox,等待人工回答。
  • 这适合需要模型替换与治理并存的任务,但不同模型的工具调用能力、延迟和额度差异,README 没有给出统一保证。
  • Bring your own model:Connect OpenAI, Anthropic, Google Gemini, OpenRouter and other providers
  • Bring your own model:use a local model through Ollama, LM Studio, llama.cpp or vLLM
  • Governed by design:One-off approvals can graduate into standing rules, then into config allowlists
  • Governed by design:Unattended runs never self-approve: their asks park in an inbox until a human answers
材料未说明:README 未说明各模型提供商的工具调用协议、上下文上限、费用、速率限制或具体兼容矩阵。;README 未说明无人值守任务如何创建、调度、通知以及 inbox 是否支持外部审批集成。
视情况 我使用 macOS 12+ Apple Silicon,准备通过 Ollama 运行本地模型,并让 Agent 整理本机文件;OpenWorker 是否符合我对本地数据和凭据留存的要求?
适合读者: 在 macOS 12+ Apple Silicon 上工作的隐私敏感知识工作者,希望使用 Ollama,并让 Agent 处理本机文件而不把模型密钥和会话交给中心化服务

视情况适合:执行面和主要敏感状态都在本机,但使用连接器时仍存在外部服务交互。

  • README 明确支持 macOS 12+ Apple Silicon,且应用是 local-first;Agent loop、conversation、connector tokens 和 model keys 都保存在本机 secret store。
  • README 支持把模型指向 Ollama,并说明 macOS 可使用内置沙箱保护命令和文件工具。
  • 但唯一的云端部分是为连接器代理 OAuth handshake;如果不使用 OAuth,可通过手工凭据或 API key 使用连接器。
  • 本地模型的工具调用质量、上下文长度和硬件性能没有在 README 中给出保证,因此“凭据留在本机”不等于任务一定可靠。
  • Use the OpenWorker Desktop App:macOS 12+ · signed & notarized
  • Bring your own model:use a local model through Ollama
  • Desktop App privacy:Everything lives on your machine
  • Desktop App privacy:The only cloud piece is a small service that brokers OAuth handshakes for connectors
  • Governed by design:On a Mac the same protection is available with nothing to install
材料未说明:README 未说明 Ollama 在 Apple Silicon 上推荐的模型、内存要求、上下文长度或工具调用兼容性。;README 未说明连接器在实际任务中会传输哪些数据,以及各第三方服务的数据保留策略。
适合 我正在做一个 TypeScript Web 应用,想复用 Harness SDK 的 Rust engine、Agent loop、tool calling、approval、streaming 和 persistent sessions;OpenWorker 是否比我自己拼装这些能力更合适?
适合读者: 准备把 Agent 能力嵌入 Web 应用的 TypeScript 工程师,希望复用 OpenWorker Harness SDK 的 Rust engine、流式输出、审批和持久化会话,而不是只调用模型 API

适合,因为 Harness SDK 的定位就是把 Agent 运行能力作为可嵌入基础设施提供,而不是只提供模型调用。

  • 项目洞察说明 SDK 使用 Rust engine,并通过 TypeScript SDK 面向 desktop app、Web app 和 local tools 集成。
  • SDK 封装了 Agent loop、tool calling、approval、streaming 和 persistent sessions,正好覆盖问题中列出的基础能力。
  • Desktop App 与 Harness SDK 分层:桌面产品使用 Python agent engine,而 SDK 为开发者构建自己的 Agent 产品提供独立 Rust engine,避免必须嵌入桌面 GUI。
  • 但 README 将 SDK 的 setup、examples 和 architecture 放在单独的 Harness SDK README;当前提供的正文没有展示具体 API、版本兼容策略或生产部署方式。
  • OpenWorker:A Harness SDK to power your AI ideas
  • README 开头:For SDK setup, examples and architecture, see the OpenWorker Harness SDK README
  • 项目洞察 solution_analysis:Harness SDK 使用 Rust 引擎,并通过 TypeScript SDK 向桌面应用、Web 应用和本地工具提供集成能力
  • 项目洞察 key_features:提供 Agent 循环、工具调用、审批、流式输出和持久化会话等可复用能力
材料未说明:提供的 README 正文未包含 Harness SDK 的安装命令、TypeScript API、事件协议或 Rust/Node 绑定方式。;README 未说明 SDK 是否支持多租户隔离、数据保留、错误恢复和生产级可观测性。

✨ 核心亮点

  • 支持 Ollama、本地模型与多云模型提供商
  • OpenShell 为命令提供隔离沙箱与网络白名单
  • Harness SDK 同时提供 TypeScript 与 Rust 引擎
  • Windows 10/11 构建版本尚未代码签名

🔧 工程化

  • 桌面端可连接 GitHub、Slack、邮件和日历等 25+ 工具
  • Harness SDK 处理代理循环、工具调用、审批和持久会话
  • 支持通过 Ollama、LM Studio、llama.cpp 和 vLLM 使用本地模型
  • Python agent server 与 Tauri GUI 可分别启动开发

⚠️ 风险

  • Windows 构建未签名,SmartScreen 会显示警告
  • 桌面应用仍处于 open beta,README 提到正在打磨粗糙边缘
  • 独立 server 的启动令牌会写入 /sidecar-8765.token
  • 自动批准仍受 hard floors、审计轨迹和熔断器约束

👥 适合谁?

  • 需要在 macOS 12+ 或 Windows 10/11 使用桌面代理的个人开发者
  • 用 TypeScript 构建桌面或 Web agentic app 的团队
  • 希望嵌入 Rust engine 并逐步加入子代理和 OpenShell 的开发者