Andrew Ng's OpenWorker, hands-on: a desktop AI coworker that runs on your model, your machine
Andrew Ng's OpenWorker is a desktop AI coworker that runs on your machine with your model — and a Harness SDK for building your own agentic apps. This tutorial installs the app, connects a local Ollama model, and builds a first agent, every step verified live.
- 19,656 stars and climbing: OpenWorker (andrewyng/openworker, MIT) sits on GitHub’s Python trending list this week; the Desktop App is in open beta and the Harness SDK is under active development.
- Bring your own model: OpenAI, Anthropic, Google Gemini, OpenRouter, or a local server — Ollama, LM Studio, llama.cpp, or vLLM. The local path costs nothing and needs no API key.
- Governance is the product: hard floors keep dangerous operations human-only, approvals graduate into standing rules only when you allow it, every tool call is audited, and OpenShell sandboxes what the agent runs.
- The SDK is the same engine:
npm install @openworkerai/harness-sdk(0.1.0-beta.5) gives you the Rust agent runtime in a Node process; the example in this tutorial ran end to end against a local 0.6B model on a CPU-only VM. - The quickstart proves the loop: PDF Notes uploads a document and answers with page citations — verified here with a one-page PDF, a 201 upload, and a streamed answer citing [p. 1].

Andrew Ng has shipped a lot of software, but he has never shipped a desktop app that does your work for you. OpenWorker is the first: an open-source AI coworker for macOS and Windows that researches, writes, reviews code, and carries out tasks across the tools you already use — and a Harness SDK that lets you build your own agentic apps on the same engine. It landed on GitHub in July 2026, and this week it climbed to the top of GitHub's Python trending list with 19,656 stars and counting.
The pitch is not new — every personal agent promises the same thing. What is different is the stance. OpenWorker is local-first and governed by design: the agent loop, your conversations, your connector tokens, and your model keys all live on your machine; you bring your own model, cloud or local; and the permissions system is architecture, not a settings page. Dangerous operations are human-only by construction, approvals graduate into standing rules only when you say so, and every tool call is recorded with its approval provenance. That is the whole reason to look at it: most agents ask you to trust them, OpenWorker is built so you do not have to.
This tutorial runs it end to end. You will install the Desktop App, point it at a local model running on Ollama, build your first agent with the Harness SDK, and run the official PDF Notes quickstart — a small web app that answers questions about an uploaded PDF with page citations. Every command below was run on this machine (a 2-core Linux VM, no GPU) against the real packages: SDK 0.1.0-beta.5, the quickstart's pinned 0.1.0-beta.4, Ollama 0.40.19, and qwen3:0.6b as the local model. The one exception is the Desktop App itself: it ships as macOS and Windows binaries, which cannot execute on Linux, so that section follows the project's documented install flow and the downloads were verified to exist and serve real binaries.
1. What you'll need#
- Node.js 22.12 or newer for the SDK and quickstart (this tutorial used Node 24.22.1; the SDK itself requires Node 20+). Check with
node --version. - Ollama if you want the free, key-free path used here. Any OpenAI-compatible endpoint works instead, and the Desktop App also takes OpenAI, Anthropic, Google Gemini, and OpenRouter keys directly.
- A model. The walkthrough uses
qwen3:0.6b, a 499 MB model that runs on CPU. It is fine for the text-only demos below. For real file and coding work, pick a larger tool-capable model — the docs are explicit that text generation alone is not enough, and a model that only describes a tool call instead of executing one is a sign to check the model's tool support. - No GPU, no Docker, no cloud account. The local path costs nothing beyond electricity. If you use a cloud provider instead, you pay that provider's normal API rates.
- About 45 minutes, most of it waiting on downloads. OpenWorker is in open beta and the SDK is under active development, so expect rough edges and an evolving API.
One decision up front: are you here to use the coworker, or to build with the SDK? Steps 1–2 cover using it; steps 3–5 cover building with it. Do the first two even if you only care about the SDK — they give you the mental model the SDK assumes.
2. Step 1: Install the Desktop App#
The Desktop App is the fastest way to meet OpenWorker. Download it from the project's download links: macOS (Apple Silicon, macOS 12+, signed and notarized, auto-updates) from https://download.openworker.com/mac, or Windows 10/11 (x64) from https://download.openworker.com/windows. Both links were checked for this tutorial and serve real binaries — 81.9 MB for macOS, 65.4 MB for Windows. The Windows builds are not yet code-signed, so SmartScreen will warn; the project says signing is in progress.
Open the app and connect a model first, in Settings → Models & Keys. Add a provider key, or point it at Ollama — the local path from step 2 below. Then try the first task straight from the project's README: give the session access to a folder of meeting notes and ask it to create a one-page brief with the key decisions, open questions, and next steps, saved as brief.md, leaving the originals unchanged and asking before writing. Follow the tool activity as it works, review the approval request before it writes, then open brief.md and continue in the same session — for example, ask it to make the next steps more specific and flag anything without an owner.
What you can delegate from there: research and writing (briefs, documents, spreadsheets, reports from your notes and files), security reviews (scan code and dependencies, review cloud configuration, investigate incidents — proposed fixes are re-scanned before approval), work across connected apps (GitHub, Slack, email, calendars, plus tools via MCP), delegation from Slack by mentioning @OpenWorker, and scheduled recurring work such as morning briefs and weekly reports, with transcripts to review. Specialist coworkers ship first for security work. Unattended runs never self-approve: their questions park in an inbox until a human answers.
Privacy, stated plainly: everything lives on your machine — the agent loop, conversations, connector tokens, model keys — in the app's local secret store. The only cloud piece is a small service that brokers OAuth handshakes for connectors, and you can use the app without signing in at all by creating connector credentials manually. Local inference keeps model-bound context on your hardware, but tools can still reach network services and connected apps still send their requests, so review the privacy docs before treating a workflow as fully offline.
3. Step 2: Put a local model behind it#
Install Ollama from https://ollama.com (the install script puts the binary in /usr/local/bin; on this machine it also needed zstd, installed via apt-get), then start the server and pull a model:
ollama serve
ollama pull qwen3:0.6b
Confirm the server answers and the model responds before going further:
curl -s http://127.0.0.1:11434/api/version
curl -s http://127.0.0.1:11434/api/chat -d '{"model":"qwen3:0.6b","messages":[{"role":"user","content":"What is 2+2? Answer with one short sentence."}],"stream":false,"options":{"temperature":0}}'
Expected output: {"version":"0.40.19"} from the first call, and 2 plus 2 is 4. from the second. The OpenWorker docs list the common local-server defaults if Ollama is not your choice: llama.cpp on http://localhost:8080, vLLM on http://localhost:8000, LM Studio on http://localhost:1234, Jan on http://127.0.0.1:1337, Docker Model Runner on http://localhost:12434/engines, and mlx-lm on http://127.0.0.1:8080. Those are defaults, not required ports — enter the address your server actually uses, and supply an API key only when the server requires one.
In the Desktop App, open Settings → Models & Keys, open the Ollama card, connect to the server, and select the model. Try a small task first — read one Markdown file and summarize it. If the model narrates a tool call instead of executing one, that is the docs' own diagnostic: check the model's tool support and server settings, and move to a more capable model before judging the app.
4. Step 3: Build your first agent with the Harness SDK#
The Desktop App is one product built on the Harness SDK. The SDK is the other half of the project: a Rust agent engine with TypeScript and Rust bindings, for building your own desktop app, web app, or local utility. Your app owns the UI, authentication, and session ownership; OpenWorker handles the agent loop, model calls, approvals, and durable sessions. Install it from npm — version 0.1.0-beta.5 at the time of writing:
mkdir openworker-first-agent && cd openworker-first-agent
npm init -y
npm install @openworkerai/[email protected]
npm pulls the matching native runtime automatically (on Linux, harness-runtime-linux-x64); no Rust build is needed. Save the following as agent.mjs. It is the complete runnable example from the SDK README, with the provider switched to Ollama exactly as the project's own quickstart does it — api: 'chat-completions' against http://127.0.0.1:11434/v1, no credentials:
import { resolve } from 'node:path';
import { Harness } from '@openworkerai/harness-sdk';
const model = process.env.OPENWORKER_MODEL ?? 'qwen3:0.6b';
const harness = await Harness.start({
stateDir: resolve('.openworker-state'),
sandbox: 'off',
});
try {
await harness.setModelProvider({
name: 'Ollama',
api: 'chat-completions',
baseUrl: 'http://127.0.0.1:11434/v1',
});
const agent = harness.createAgent({
name: 'first-agent-v1',
instructions: 'Give concise, helpful answers.',
defaultModel: { provider: 'Ollama', name: model },
tools: [],
planning: false,
memory: false,
scheduling: false,
});
const session = await agent.newSession();
const result = await session.run('Suggest three names for a file-organizing app.');
if (result.status !== 'completed') throw new Error(`Run ended: ${result.status}`);
console.log('STATUS:', result.status);
console.log('ANSWER:', result.finalOutput);
} finally {
await harness.shutdown();
}
Run it with the Ollama server from step 2 still up:
OPENWORKER_MODEL=qwen3:0.6b node agent.mjs
The run on this machine completed in about 30 seconds and printed:
STATUS: completed
ANSWER: Here are three concise file-organizing app names:
1. **FolderMaster** – Focuses on organizing files into folders.
2. **FileVault** – Emphasizes secure file management.
3. **OrganizeIt** – Highlights simplicity and ease of use.
Three things in that short program are worth noticing, because they are the whole SDK contract. Harness.start launches the Rust engine once per app and manages it as a child process. setModelProvider supplies model credentials — here a local endpoint with no key; for OpenAI you would pass api: 'responses', the https://api.openai.com/v1 base URL, and credentials: { apiKeyEnv: 'OPENAI_API_KEY', storage: 'memory' }. And createAgent gives the agent a fixed identity: its name, instructions, model, and tools. Agent identities are immutable by design — changing instructions, tools, or approvals requires a new agent name, which is how the audit trail stays meaningful. Sessions are durable and survive restarts; reuse a session for follow-ups instead of starting a new one.

To use a cloud model instead, keep the same program and change the provider block: name: 'OpenAI', api: 'responses', baseUrl to the provider's endpoint, and OPENWORKER_MODEL to an exact model ID available to your account, with the key in a private env file outside the project. OPENWORKER_MODEL_URL optionally selects another Responses-compatible endpoint. Keep credentials and durable state outside model-readable files — the SDK docs repeat that, and the quickstart keeps keys in Electron's main process or the web server, never in the renderer or browser.
5. Step 4: Run the PDF Notes quickstart end to end#
The repository ships two small example apps — Code Atlas (an Electron UI that summarizes a code directory) and PDF Notes (a browser UI that answers questions about an attached PDF with page citations). PDF Notes is the better first run because it exercises the full loop — sessions, attachments, streaming — through plain HTTP. Clone the repo and run the setup, which installs the pinned SDK (0.1.0-beta.4) and its native runtime:
git clone https://github.com/andrewyng/openworker.git
cd openworker/harness/examples/quickstart
npm run setup
Setup is a single npm ci and took about 30 seconds here (292 packages). Run the test suite next — the input-reader tests run without a provider:
npm test
Expected result: 2 pass, 0 fail, with 2 integration tests skipped (they need OPENWORKER_EXECUTABLE set to a custom host). Then start the web app against your local model. OPENWORKER_PDF_MODE=text matters: it tells the example to extract the PDF's text locally instead of sending the file to a model that understands PDFs natively:
OPENWORKER_PROVIDER=Ollama OPENWORKER_MODEL=qwen3:0.6b \
OPENWORKER_PDF_MODE=text npm run web
The server listens at http://127.0.0.1:4352/. It is deliberately a single-user instance: expose it beyond loopback only with APP_ACCESS_TOKEN set and HTTPS at your ingress. Upload a PDF and ask it a question with curl — the upload returns a document id, and the ask streams newline-delimited JSON:
curl -s -X POST --data-binary @sample.pdf \
-H "Content-Type: application/pdf" \
http://127.0.0.1:4352/api/documents
curl -s -X POST -H "Content-Type: application/json" \
-d '{"id":"<id-from-upload>","question":"What does OpenWorker run on, according to the document? Answer in one sentence."}' \
http://127.0.0.1:4352/api/ask
Against a one-page test PDF, the upload returned 201 {"id":"3ce6f79d-…","pages":1,"mode":"text"}, and the ask streamed back to a done event reading OpenWorker runs agents locally with your own model key. [p. 1] — the right sentence, with the page citation, grounded in the document rather than the model's training data. Note the guardrails in the agent's instructions: answer using only the supplied document, cite page numbers as [p. N], and say so if the answer is absent. Citations here are model-generated references to supplied page numbers, not independently verified answers — the docs say that outright, and it is the honest way to read them.
Two limits to know before you build on this example: native mode accepts PDFs up to 8 MiB and sends the original file to a compatible model, while text mode caps at 8 MB / 80 pages / 180,000 characters with a 15-second extraction timeout; and each upload gets its own session and a random document id, with document handles expiring from memory after one hour — restart the server and you upload again. Concurrent requests for one document are rejected.
6. Step 5 (optional): Let your coding agent build with the builder skill#
If you would rather describe the app than write the SDK calls, install the builder skill into your project:
npx @openworkerai/openworker-harness-builder --agent claude --project .
It installs .claude/skills/openworker-harness-builder with a SKILL.md and references covering the SDK lifecycle, custom tools, approvals, streaming, sub-agents, observability, desktop and web tracks, and Railway deployment — no repository checkout required. Use --agent codex for Codex, or --global instead of --project . for all your projects. The install was verified here (builder 0.1.0-beta.8; its installation.json records the tested SDK pin, 0.1.0-beta.5). Open a new coding-agent session and give it a concrete task, for example the one from the SDK README: build a local file-organizing app, start with ten sample text files in a new demo directory, restrict its file tools to that directory, ask before creating subdirectories or moving files, and show tool activity as it works. The skill supplies the SDK instructions and runnable examples; the file-organizer example it bundles demonstrates scoped tools and per-operation approvals, which is the pattern to copy before you give any agent write access to a real directory.
7. How the governance actually works#
OpenWorker's selling point is governance, so it is worth understanding what that word covers here, because it is four separate mechanisms and they backstop each other.
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.
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 is unsure about; 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.
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.
A sandbox for what the agent runs. A session's commands and file tools can run inside NVIDIA OpenShell — one Linux container per agent that holds the session's folders and nothing else: no keys, no other files, 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 through the sandbox built into macOS; on Windows, through a hidden local account that cannot see your profile.

The honest caveat: governance is the architecture, not a guarantee. The docs say the agent cannot grant itself new permissions and no prompt can talk it past a gate — but they also say the reviewer model is a judgment call and the sandbox is a container boundary, not a kernel boundary. Treat it as a well-designed seatbelt, not a proof.
8. When to use OpenWorker vs the alternatives#
| Tool | Best when | OpenWorker differs by |
|---|---|---|
| OpenWorker | You want a governed desktop coworker, or you are building an agentic app and want the loop, approvals, and sessions handled | — |
| n8n Nod | You want a personal agent with its own computer that chases invoices and cancels trials on real websites | Nod is a finished personal agent; OpenWorker is a coworker plus a buildable SDK |
| OpenClaw | You want a self-hosted agent you fully control and extend yourself | OpenClaw is a bring-your-own-everything harness; OpenWorker adds the desktop product and the governance model |
| Mastra + Ollama | You are building TypeScript agents and want workflows, memory, and tools as code | Mastra is a framework; OpenWorker is a runtime plus a desktop app, with approvals and sandboxing built in |
| Claude Code | Your work is coding, in a terminal, right now | Claude Code is a coding agent; OpenWorker is a general coworker that also reviews code |
The short version: pick OpenWorker when the deciding factor is control — your model, your machine, your approval gates — and when you might build on it. Pick a narrower tool when the job is already defined: Nod for personal automation, Mastra for TypeScript agent code, Claude Code for coding sessions. There is overlap everywhere; the governance model and the SDK are the two reasons to choose OpenWorker over the field.
9. The takeaway#
OpenWorker earns its trending spot for a specific reason: it is the first personal agent from a major AI figure that treats permission as the product. The Desktop App gives you a coworker that runs on your model and your machine; the Harness SDK gives you the same engine to build with; and both were verified here end to end — the SDK example ran against a local 0.6B model on a CPU-only VM, and the PDF Notes quickstart uploaded a document and answered with a page citation. Start with the Desktop App and the Ollama path: it costs nothing, it keeps your data at home, and the first brief you get back will tell you within ten minutes whether a governed coworker fits how you work. If it does, the SDK is the same engine, and the builder skill will write the boilerplate for you.