快速开始
安装指南
在 Windows、macOS、Linux 上安装 OpenCowork。
安装指南 / Installation
下载预构建包 / Download Pre-built Package
从 GitHub Releases 下载对应平台的安装包:
| 平台 | 文件格式 |
|---|---|
| Windows | .exe 安装程序 |
| macOS | .dmg 磁盘镜像 |
| Linux | .AppImage / .deb |
从源码构建 / Build from Source
前置要求
- Node.js 18+
- npm 9+
- Git
步骤
# 克隆仓库
git clone https://github.com/AIDotNet/OpenCowork.git
cd OpenCowork
# 安装依赖
npm install
# 启动开发模式(Electron + HMR)
npm run dev生产构建
# 构建所有平台
npm run build
# 仅构建 Windows
npm run build:win
# 仅构建 macOS
npm run build:mac
# 仅构建 Linux
npm run build:linux数据目录 / Data Directory
OpenCowork 的数据存储在用户主目录下:
~/.open-cowork/
├── data.db # SQLite 数据库(会话、消息、任务、Cron)
├── agents/ # 自定义 Agent 定义(.md 文件)
├── workflows/ # 工作流配置
└── plugins/ # 插件配置首次启动时会自动创建数据目录和数据库文件。