百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
Z

zosma-cowork

> 前端框架
开源

用于 pi 编码代理的桌面 GUI - 开源的 Claude Cowork 替代方案

100 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

用于 pi 编码代理的桌面 GUI - 开源的 Claude Cowork 替代方案

Zosma Cowork

The open-source AI work platform for companies and teams

Run AI coworkers across employee machines, servers, and harnesses from one secure workspace.

Documentation · Releases · Roadmap · Discord


Zosma Cowork is an MIT-licensed, work-focused AI agent platform. It gives people and teams one place to delegate work, supervise long-running agents, review approvals, and collect results—without forcing everyone to use the same model or agent harness.

Cowork is built for more than software development. It is intended for finance, operations, research, sales, support, administration, and engineering teams working with files, applications, business systems, and repeatable processes.

Project status: Cowork ships as a local Pi-powered web application in a thin Tauri shell. The transport-independent Pi backend, versioned /api/v1 discovery and read-only session slice are shipped; the next slices move interactive commands and events behind the same boundary. The machine daemon, control plane, mobile client, and additional harness adapters remain planned.

What Cowork Is

Cowork is an open-source, MIT-licensed work harness for individuals, small teams, and large organizations. It runs in the cloud or on your own machines, stays provider-agnostic, and lets you use the model of your choice. Thanks to Pi and other open-source packages, Cowork stands on the shoulders of the open-source ecosystem rather than reinventing it.

What Cowork Is Not

Cowork is not a coding assistant that opens a folder. It is not tied to a single provider, model, or harness — you choose the tools that fit the work.

What Cowork Wants to Be

A single, open work platform where a person, a small team, or a whole company can run their AI work across any provider and any model, from any device, under a permissive MIT license — on the infrastructure of their choosing.

Our Goal

To work with agents as seamlessly as possible.

Chat, get notifications of clarifications, information, and approvals — and schedule repeated tasks as you talk to the harness.

The agents create skills, learn from past experiences, and grow the more you use them.

That's the goal.

Product vision

A company installs one lightweight Cowork daemon on each employee machine or managed server. The daemon discovers and supervises supported agent harnesses, keeps credentials and execution local, and opens an authenticated outbound connection to the Cowork backend.

People use the web, mobile, or desktop app to start work, monitor sessions, answer questions, approve sensitive actions, and review outputs from anywhere.

mermaid
flowchart LR
    W[Next.js Web] --> B[TypeScript Control Plane]
    M[Expo Mobile] --> B
    E[Tauri Desktop
bundles the Next.js app] --> B
    B  D[TypeScript Machine Daemon]
    E -. local mode .-> D
    D --> PI[Pi]
    D --> CC[Claude Code]
    D --> CX[Codex]
    D --> ACP[ACP Agents]
    ACP --> H[Hermes]
    ACP --> G[Gemini / Cursor / Copilot / Kimi]

One daemon, many harnesses

The machine daemon owns the capabilities every harness needs:

  • process and session supervision
  • reconnects, heartbeats, and crash recovery
  • files, Git, worktrees, terminals, and artifacts
  • local credentials and machine capabilities
  • approvals and organization policy enforcement
  • normalized events for every client

Harness adapters only translate between native harness protocols and Cowork's protocol. We prefer SDKs, JSON-RPC, JSONL, native APIs, and ACP over terminal-screen scraping.

Agents of your choosing

Cowork plans to support multiple agent harnesses, chosen per employee's job type and the work they do — starting with our favourite, the Pi Coding Agent. Pi remains Cowork's first-class runtime: existing Pi extensions, skills, prompts, providers, steering, session trees, and deeper runtime controls stay available.

Each harness advertises its own capabilities rather than being forced into a lowest-common-denominator interface, so the app exposes richer controls whenever a selected harness supports them.

Harness Integration Status
Pi Native TypeScript SDK ✅ First-class runtime; backend extraction and /api/v1 read slice shipped
Claude Code Native structured integration ⬜ Planned
Codex Native app-server integration ⬜ Planned
ACP-compatible agents Agent Client Protocol adapter ⬜ Planned
Hermes ACP first, native adapter only if needed ⬜ Planned

Applications

The target monorepo has three user-facing applications:

apps/
├── web/       # Next.js web application
├── app/       # React Native application built with Expo
└── desktop/   # Tauri shell that bundles and renders apps/web

Web

The Next.js application is the complete browser experience for individuals, teams, and administrators.

App

The Expo application provides native mobile sessions, push notifications, voice input, approvals, task monitoring, and artifact review.

Desktop

The Tauri application does not maintain a second frontend. In development it loads apps/web; release builds bundle the Next.js standalone server and machine daemon, supervise both processes, and render the local Next.js application in an Tauri window.

Repository structure

…

The desktop app bundles the packaged Next.js server (web/dist-server) and the machine daemon, supervises both processes, and renders the local Next.js application in a Tauri window. The daemon is a standalone Hono HTTP server (health, IPC dispatch, SSE) that the web tier proxies to over /api/v1.

Deployment modes

Mode Description Status
Local Desktop talks directly to the local web/runtime bundle ✅ Current product; standalone machine daemon is next
Hosted Zosma control plane connects users and company machines ⬜ Planned
Self-hosted Company operates the control plane in its own environment ⬜ Planned

The daemon initiates outbound connections, so employee machines do not need publicly exposed ports. Provider credentials remain on the machine unless an organization explicitly configures managed credentials.

Roadmap

Last updated: 2026-09-09 Current state: API foundation shipped; interactive API cutover is next.

This roadmap tracks the product that exists today and the next architecture slices. The detailed implementation plan lives in docs/superpowers/roadmaps/2026-09-07-modular-headless-pi-backend-roadmap.md.

Shipped

  • Tauri shell and Next.js web UI migration
  • Pi backend contracts, errors, runtime manager, session services, and model services
  • Versioned /api/v1 health, capability, model, runtime-state, and read-only session endpoints
  • Persistent sessions, session trees, concurrent runs, streaming, tools, files, Git, worktrees, extensions, and provider configuration
  • Cross-platform desktop packaging and local-first operation

Current focus

  • Move session creation, prompts, abort, steering, follow-ups, queues, and SSE onto /api/v1
  • Move runtime controls, tools, compaction, Bash, model/thinking controls, and reload onto /api/v1
  • Finish history, branching, export, and extension-UI API adapters

Next platform slices

  • Workspace, file, and file-index APIs
  • Git status, diffs, and worktree APIs
  • Model configuration, project trust, provider credentials, and OAuth APIs
  • Skills, plugins, updates, and remaining utility APIs
  • Retire legacy agent/session/model routes after browser migration is complete

Product direction

  • TypeScript machine daemon with local credentials, supervision, reconnects, and approvals
  • Hosted and self-hosted TypeScript control plane
  • Web, Tauri desktop, and Expo mobile clients using shared protocol contracts
  • Native Pi, Claude Code, Codex, and ACP harness adapters
  • Team workspaces, scheduled work, policies, audit history, and usage controls

For the implementation sequence, see ROADMAP.md and the dated design plans under docs/superpowers/.

What works today

The current release is a local Pi-powered Cowork application with persistent sessions, streaming, tools, files, Git support, extensions, model configuration, and packaged desktop builds. The current web/Tauri runtime is the stable product surface while the standalone daemon and control-plane architecture are developed.

Download the current release from GitHub Releases.

Build

Requirements:

  • Node.js 22.19 or newer
  • pnpm 10
  • Rust 1.85 or newer for the Tauri shell (apps/desktop)
bash
git clone https://github.com/zosmaai/zosma-cowork.git
cd zosma-cowork

corepack enable
pnpm install

# Browser development server (web + daemon supervisor)
pnpm web:dev

# Full desktop application (Tauri window loading apps/web)
pnpm dev

# Marketing/docs site
pnpm website:dev

Useful checks (run from the repo root):

bash
pnpm test          # all workspace packages (protocol, web, daemon)
pnpm lint
pnpm typecheck
pnpm web:build     # Next.js build + package-server → web/dist-server
pnpm daemon:build
pnpm desktop:build # Tauri release bundle (needs TAURI_SIGNING_PRIVATE_KEY for signed updater)

Docker deployment

See fleet.md for what fleet mode is, how to start it, how it works, and when to use it.

Experimental Docker deployment supports local single-host use and fleet control-plane testing. Requires Docker Desktop or Docker Engine, Node 22-compatible Pi credentials in ~/.pi, and a trusted work directory.

bash
cp .env.example .env
# Set ZOSMA_DAEMON_TOKEN to: openssl rand -hex 32
# Set ZOSMA_WORK_DIR to an absolute host directory you want the daemon to use.
docker compose up --build

Open http://localhost:3000, then Add folder… → /work to open the mounted workspace and start chatting.

The web container proxies to the daemon over the Docker network; daemon state and Pi home use named volumes. The work directory is mounted at /work in both containers (the picker browses the web container's filesystem, the daemon executes in its own).

Provider credentials: the container starts with an empty /root/.pi, so prompts fail with No API key found for the selected model until you sign in through the UI or bind-mount an existing Pi home:

yaml
# docker-compose.yml, daemon service
volumes:
  - ${HOME}/.pi:/root/.pi

Fleet

Fleet adds a control plane (:64714) that many daemons dial out to — no inbound port on any machine. Set the fleet variables in .env, then:

bash
# ZOSMA_CONTROL_PLANE_TOKEN=$(openssl rand -hex 32)
# ZOSMA_CONTROL_PLANE_URL=ws://control-plane:64714/ws
# ZOSMA_MACHINE_ID=node-1
docker compose --profile fleet up --build -d

Then verify and dispatch work (the control plane refuses to start without a token, and machine ids are durable — see the reference for exact semantics):

bash
TOKEN=$(grep '^ZOSMA_CONTROL_PLANE_TOKEN=' .env | cut -d= -f2)
curl -s -H "Authorization: Bearer $TOKEN" http://localhost:64714/machines
curl -s -X POST -H "Authorization: Bearer $TOKEN" -H 'content-type: application/json' -d '{"method":"pi:health"}' http://localhost:64714/machines/node-1/commands

A machine can be revoked (DELETE /machines/:id, terminal for its daemon) and re-admitted (POST /machines/:id/register — restart that daemon afterwards). Run the control plane behind a TLS-terminating reverse proxy for anything off-localhost.

Full reference: fleet.md — quick start, every environment variable, wire protocol, identity/revocation semantics, delivery guarantees, security model, limits, and how a future Kubernetes deployment sits on top of this.

Principles

  1. Work is the product. The agent and harness should disappea

Issues· 1 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

TypeScriptagentai-assistantchat-uicoding-agent

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类前端框架
定价开源

> 相关工具

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架