openworker README

项目的 README,来自 github.com/andrewyng/openworker。合并为一个 markdown 文件:README.md。

OpenWorker

A Desktop App for everyday work.
A Harness SDK to power your AI ideas.

openworker.com · Desktop App · Harness SDK · Issues

andrewyng%2Fopenworker | Trendshift

Use the OpenWorker Desktop App to research, write, review code, and carry out tasks across the tools you already use. Or build your own agentic desktop and web apps with the OpenWorker Harness SDK.

Bring your choice of cloud or local models. Set permissions for your agents and decide which actions need your approval.

This README mainly covers the OpenWorker Desktop App. For SDK setup, examples and architecture, see the OpenWorker Harness SDK README.

Use the OpenWorker Desktop App

An AI coworker for your everyday work. Go from a request to a prepared brief, an organized folder, or a reviewed pull request.

It runs on your machine. Bring your own model key or run locally with Ollama, and choose which integrations it can access. Commands can run inside an NVIDIA OpenShell sandbox. See Governed by design for its approval and safety controls.

How the OpenWorker Desktop App works

⬇ macOS (Apple Silicon) macOS 12+ · signed & notarized · auto-updates

⬇ Windows 10/11 (x64) builds are not yet code-signed, so SmartScreen will warn; signing is in progress

Open the app, add a model key (or point it at Ollama), and ask for something real.

The OpenWorker Desktop App is in open beta and supports automatic updates. Issues welcome as we polish rough edges.

Build agentic apps using OpenWorker Harness SDK

Bring agentic capabilities to your own desktop app, web app or local utility. Build the product experience while OpenWorker handles the agent loop, tool calls, approvals, streaming and durable sessions.

Use the TypeScript SDK from npm, or embed the Rust engine in your application. Start with one agent. Add sub-agents, teams, OpenShell sandboxing and observability as your application grows.

npm install @openworkerai/harness-sdk

Explore the Harness SDK → · Desktop guide · Web guide · Build with your coding agent

The rest of this README focuses on the OpenWorker Desktop App. For SDK documentation, continue with the Harness SDK README.

What you can do with the Desktop App

Your work How OpenWorker helps
Research and create Turn notes, files and research into briefs, documents, spreadsheets and reports.
Review security risks Scan code and dependencies, review cloud configuration, and investigate incidents. Proposed code fixes are re-scanned and reviewed before approval.
Work across your tools Bring together GitHub, Slack, email, calendars and other connected apps. Add tools through MCP.
Delegate from Slack Mention @OpenWorker; the task runs on your desktop and the reply returns to the thread.
Automate recurring work Schedule morning briefs, weekly reports and other repeatable tasks, with transcripts to review.
Choose your model Connect a cloud provider or use a local model through Ollama and other compatible servers.
Control agent actions Review approvals, inspect recorded actions, and isolate supported commands with OpenShell or platform sandboxing.

Specialist coworkers come with tools and instructions for a particular job. Security coworkers ship first.

Try your first task

Start with a folder of meeting notes. No connected apps are needed for this example.

  1. Choose a model. Open Settings → Models & Keys and connect a provider or local model.
  2. Choose your working folder. Give the session access to a folder containing a few text or Markdown notes.
  3. Ask for a brief. Paste the request below, follow the tool activity, and review any approval requests before continuing.

Read the meeting notes in this folder. Create a one-page brief with the key decisions, open questions and next steps. Save it as brief.md. Leave the original notes unchanged and ask before writing the brief.

Example workflow: meeting notes become a brief after you review the proposed write

Open brief.md in the working folder and review it. Continue in the same session: “Make the next steps more specific, and flag anything without an owner.”

Governed by design

The Desktop App combines approvals, recorded tool activity and optional sandboxing. You can review proposed actions and decide how much autonomy to allow.

How approvals, audit trails and sandboxing work

Governance is the architecture, not a plugin - the agent can't grant itself new permissions, and no prompt can talk it past a gate. Four tiers, all in this repo:

  1. Hard floors. A set of dangerous and irreversible operations is human-only, always. No mode - including full auto-approve - lowers these floors; they always escalate to you.

  2. A ladder of earned autonomy. Actions are approval-gated by default. One-off approvals can graduate into standing rules, then into config allowlists - each step explicit, visible, and revocable. In auto-approve mode a reviewer model lets routine actions through and escalates anything it isn't sure about to you; repeated denials trip a circuit breaker that pauses the reviewer and hands control back. Reviewer verdicts are judgments, not guarantees - the floors and the audit trail are what backstop them.

  3. An audit trail that answers "who did this, and why?" Every tool call is recorded with its approval provenance - auto-approved, user-approved, or denied, with the reviewer's reasoning attached - and persisted with the conversation.

  4. A sandbox for what the agent runs. A session's commands and file tools can run inside an NVIDIA OpenShell sandbox — one Linux container per agent that holds the session's folders and nothing else: no keys, no other files, and only an allow list of network hosts. The agent loop, the model keys and the connectors stay outside the wall, so a prompt injection that reaches a command lands in a box that holds nothing. On a Mac the same protection is available with nothing to install, through the sandbox built into macOS; on Windows, through a hidden local account that cannot see your profile. See docs/openshell.md, docs/macos-sandbox.md and docs/windows-sandbox.md.

Unattended runs never self-approve: their asks park in an inbox until a human answers. Found a vulnerability? See SECURITY.md.

Bring your own model

Connect OpenAI, Anthropic, Google Gemini, OpenRouter and other providers, or use a local model through Ollama, LM Studio, llama.cpp or vLLM. Choose and switch models in Settings → Models & Keys.

See Desktop App model setup for provider options, account connections and custom endpoints. SDK developers can use the separate models and credentials guide.

Desktop App privacy

The OpenWorker Desktop App is local-first. Everything lives on your machine: the agent loop, your conversations, connector tokens, and model keys - all in the app's local secret store. The only cloud piece is a small service that brokers OAuth handshakes for connectors. You can always use the App without signing-in - use the connectors via manually-created credentials/API-keys.

Documentation

Start here What you’ll find
Desktop App model setup Cloud providers, OpenRouter accounts and custom endpoints.
Local models Connect models running on your own hardware.
Approvals and safety How the Desktop App handles permissions and records actions.
NVIDIA OpenShell Set up sandboxed command and file execution for the Desktop App.
Harness SDK SDK installation, architecture and examples.
Build a desktop app · Build a web app Learn the SDK through working applications.
App-building skill Build with OpenWorker, Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode or Windsurf.
SDK troubleshooting Diagnose SDK setup and runtime problems.

Run the Desktop App from source

Development setup and architecture

The Desktop App uses a Python agent engine. The Harness SDK provides a separate Rust engine for applications you build.

Under the hood:

┌────────────────────────────────────────────────┐
│              OpenWorker Desktop App            │  native shell + GUI
├────────────────────────────────────────────────┤
│           local agent server (Python)          │  engine · tools · connectors - built on aisuite
├───────────────┬────────────────┬───────────────┤
│  your files   │   your tools   │  your model   │  everything runs with your keys,
│  & terminal   │ 25+ connectors │  any provider │  on your machine
└───────────────┴────────────────┴───────────────┘

Prerequisites: Python 3.10+, Node 20+, and (for the desktop shell) the Rust toolchain via rustup.

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

# 2. Start the local agent server
.venv/bin/python -m coworker.server.run --cwd ~/some/project --port 8765
#    (Windows: .venv\Scripts\python -m coworker.server.run ...)

# 3. In a second terminal, start the UI
cd surfaces/gui
npm install
npm run dev        # browser UI on the Vite dev port

The standalone server creates a per-launch token at <state-dir>/sidecar-8765.token; Vite reads that user-only file when it starts. For direct API calls, send its value in the X-OpenWorker-Token header. The desktop app uses an in-memory launch token instead and never writes it to disk.

To run the full desktop app instead of the browser UI, replace step 3 with npm run tauri dev (from surfaces/gui/) - the Tauri shell launches the window and supervises the server itself.

Tests: .venv/bin/pytest (server), npm test and npm run e2e in surfaces/gui (GUI unit + hermetic end-to-end). Desktop bundles are built with packaging/build_dmg.sh / packaging/build_windows.ps1.

Repository layout

Directory What's in it
coworker/ Python backend - agent engine, model providers, connectors, MCP client, memory, automations
harness/ Rust agent runtime, Rust/TypeScript SDKs, service and SDK examples
surfaces/gui/ Desktop app - React UI + Tauri shell that supervises the server
stt/ Speech-to-text sidecar (Rust) for voice input
packaging/ Installer builds (macOS DMG, Windows), auto-update manifest, dev bootstrap
docs/ Design specs and decision logs
tests/ Backend test suite

Built on aisuite

The OpenWorker Desktop App's engine is built on aisuite, a lightweight Python library providing a unified chat-completions API across LLM providers and an agents layer with tools, toolkits, and MCP support. If you want to build your own agent harness rather than use ours, start there; this repo is a working reference for what aisuite can carry.

OpenWorker was originally developed inside the aisuite repository before moving to its own home here; thanks to the aisuite contributors whose work it builds on.

Contributing

Contributions and bug reports are welcome - open an issue or a pull request. The app updates itself, so fixes reach installs quickly. For any PR, please attach screenshots of what was broken and how it is fixed now. We will shortly add features that you can contribute to. Please note that we are actively developing based off a internal list and goal, so we may not approve PRs that add features that are already under-development or deviates from our vision.

License

MIT - see LICENSE.

openworker (andrewyng/openworker)

正在搜索数据库…

这是什么?OpenWorker 是一款开源的 AI 办公助手,它常驻在你的桌面上,交付的是成品而不只是聊天:经过审查并附带修复的代码、打磨好的文档、包含真实数据的 Slack 回复,以及分类整理好的收件箱。
这是聊天机器人,还是真的能替我完成任务?它是一款智能体式桌面应用:你描述想要的结果,它会把任务拆分成多个步骤,在你的文件和已连接的应用中执行,遇到重要操作前会先征求你的确认,最后交给你一份成品,而不是一条回复或一个待办清单。
我要怎么把它运行起来?下载已签名的 macOS(Apple Silicon,macOS 12+)或 Windows 10/11(x64)版本,打开应用,添加模型 API 密钥或将其指向 Ollama,然后让它处理一件实际的事情。也可以使用 Python 3.10+、Node 20+ 和 Rust 工具链从源代码运行。
它可以使用哪些 AI 服务商?你可以自带密钥接入 OpenAI、Anthropic、Google Gemini、DeepSeek、Kimi、Qwen、MiniMax、Mistral、Grok、通过 Together/Fireworks 调用的开放权重模型,或者借助 Ollama 完全在本地运行。它不会被锁定在某一家服务商上。
Windows 版本现在可以直接用吗?它能运行,但还没有进行代码签名,因此在签名工作完成之前,打开时 Windows SmartScreen 会显示警告;macOS 版本则已经完成签名和公证。
这个能在 Linux 上运行吗,还是只能用于 Mac 和 Windows?目前只提供 macOS(Apple Silicon,macOS 12+)和 Windows 10/11(x64)的下载版本;Linux 没有列为受支持的构建版本。
OpenWorker 如何防止自己在没有指令的情况下做出有害的事?一组危险且不可逆的操作被设为仅限人工执行的“硬底线”,任何模式(包括自动批准)都无法绕过。常规操作则遵循一个层级:从一次性批准,到长期有效的规则,再到配置中的允许列表。每一次工具调用都会记录其批准来源和理由。
它能在 Slack 里工作,而不必打开它自己的应用窗口吗?可以。在 Slack 频道中 @OpenWorker,桌面端就会使用你已连接的工具开启一个会话,完成的答案会以话题回复的形式返回。
aisuite 是什么?为什么 README 会提到它?aisuite 是一个轻量级的 Python 库,为各大 LLM 服务商提供统一的聊天补全 API 以及智能体/工具层。OpenWorker 的引擎就是基于它构建的,而这个项目最初其实是在 aisuite 仓库里诞生的,之后才迁移到自己的独立仓库。
它开箱即可连接哪些工具和应用?提供 25+ 个集成,包括 GitHub、Slack、Jira、Notion、Linear、HubSpot、Outlook、monday.com、Gmail 和 Google Calendar,此外还有你的终端和本地文件;其他任何工具都可以通过 MCP 接入。
有哪些类似的项目?laya, starnet, taskuary, evenfire, brigade, open-swe, OpenDuet, opensquilla
作者
andrewyng
大小
48.3 MB
星标
19.6K
时长
4个月
提交 · 90 天