dream-num/univer-workspace
Manage the Office content your agents create. An open-source, self-hosted workspace where people and AI agents edit, collaborate, and review changes. Built with Univer Office SDK.
What is Univer Workspace?
Univer Workspace is an open-source office workspace where people and AI agents can create, collaborate, and review documents together. It is built on the Univer Office SDK and brings Sheets, Docs, Slides, relational tables, canvases, and more into one shared runtime. Data and references stay connected across different document types as the workspace changes.
Main Entry Points
The project offers four ways to interact with the workspace:
- Workspace Browser – Directly edit documents, collaborate, organize spaces, and review changes.
- Workspace Agent – A local web app that lets you chat with an AI beside your documents, reference local or remote files, and review changes made by the agent.
- Workspace CLI – A command-line tool for automating document tasks from a terminal, scripts, or an existing agent environment.
- Workspace MCP – A remote server that lets AI assistants like Claude, ChatGPT, Cursor, VS Code, and others work in the workspace using a single URL.
All three (Browser, Agent, CLI) connect to the Workspace Server, which handles document storage and permissions.
Key Features
- For people: Organize content in Personal and Team Spaces, co-edit Sheets, Docs, Slides, Bases, and Boards, share with role-based access control (including anonymous viewing), and use Recent, Trash, import/export, and review views.
- For agents: Create and edit rich Office content through the Univer Facade API, inspect data, render screenshots/PDFs, run layout checks, and discover version-matched Skills and APIs offline. Agents work in isolated Worktrees, verify their changes, and hand the result to a person for review.
- For operators: Deploy one Browser and Server application, keep product, collaboration, and Blob data under application control, integrate password, GitHub, Discord, or application OAuth login, and operate a documented HTTP API with explicit recovery boundaries.
Spreadsheet-based Mini-apps
Agents can generate spreadsheet-based mini-apps, such as decision-making dashboards, interactive reports, and business dashboards. Metrics, charts, and controls on the web page are bound to cells, supporting data reads, writes, and collaborative updates. See the HTML View showcase for ten page styles, live editing, and public sharing with visitor trials.
How It Works
The Workspace Server is the authoritative source for identity, permissions, product workflows, and collaboration. The Browser is the direct editing surface, the Agent combines conversation with document previews and Worktree review, and the CLI gives agents a structured way to load, understand, edit, validate, and render content.
Worktree turns agent editing into an explicit review workflow:
- Create a Worktree (an isolated draft)
- Agent edits and verifies the draft
- Mark as Ready
- Human reviews in the Browser or Agent
- Merge or Reopen
- Changes go to the trunk
Intermediate changes remain isolated from shared content until a person accepts them.
Quick Start
Requirements: Node.js 24+ and pnpm 11.
pnpm install
cp apps/workspace/.env.example apps/workspace/.env
Start the Server:
pnpm workspace:dev:server
In another terminal, start the Browser:
pnpm workspace:dev:web
Open http://127.0.0.1:5173. The Server can also serve the built Browser from port 3020 if apps/workspace/dist/public exists. API docs are at http://127.0.0.1:3020/api-docs.
One-Click Deploy
There is a one-click deploy option via RepoCloud (button in the README).
Repository Layout
The repository contains:
apps/workspace– Browser, Server, HTTP contract, and deployment appapps/cli– Agent-ready remote automation applicationapps/mcp– Private MCP gatewayapps/agent– Workspace Agent applicationpackages/– Private implementation modules (client-core, reference-provider, workspace-html-viewer, etc.)scripts– SDK version and CLI release tooling
This repository is the product composition root, not a replacement for the upstream SDKs. Univer Runtime owns the Unit model, rendering, Facade APIs, and Office content capabilities. Univer Collaboration SDK owns snapshots, revisions, OT, realtime collaboration, and Worktree protocol contracts. Univer CLI SDK owns the reusable headless runtime, execution, inspection, and rendering capabilities.
Architecture Principles
- One authoritative Server – Client-provided data is never trusted as authority.
- Separate storage boundaries – Product data, collaboration state, and Blob bytes have distinct owners.
- Published SDK contracts only – The repository consumes public package exports.
- One exact SDK baseline – All
@univer-cli/*,@univerjs/*, and@univerjs-pro/*packages move together. - Contract-first HTTP – OpenAPI source, generated types, Server routes, Browser, and CLI describe the same behavior.
Development and Verification
Run pnpm verify (and optionally pnpm verify --stage test-mcp) before opening a PR. There are six stages of verification.
Additional Components
- Space Preview – A proof-of-concept plugin for DeepSeek Harness (DSH) that lets you browse files, edit Univer Docs and Sheets, and chat with an AI alongside an open document. It is optional and does not replace Workspace Agent.
- Workspace Agent – A desktop app built on DSH for Univer Workspace. It allows referencing files with
@, creating/editing documents through conversation, and reviewing changes before merging. - Workspace CLI – Can be installed globally via npm and includes version-matched Skills, structured JSON output, Facade API discovery, content inspection, PNG/PDF rendering, Office exchange, and Worktree workflows.
Connecting AI Assistants (MCP)
The Workspace runs a remote MCP server at https://space.univer.ai/mcp (or your own deployment). It supports Streamable HTTP and OAuth. Toolsets can be customized with ?toolsets=core,files,admin,all. Many clients are supported, including Claude Code, Claude.ai, ChatGPT, Codex, Cursor, VS Code, Gemini CLI, opencode, Windsurf, WorkBuddy, Grok, and others.
All information above is taken directly from the README. No external facts were added.
Related
- Project
- Dispatch
- Project
- Project
- Project