简介
用 OfficeCLI 让 AI agent 通过 CLI 创建/修改 Office 文件,并在本地预览结果。
OfficeCLI 提供单二进制的 Word/Excel/PPT 操作能力:让 agent 读写与生成文档并支持本地实时预览,无需安装 Microsoft Office,适合做文档自动化与批量处理。
适合谁: 希望把文档自动化接入 agent 工作流(生成 PPT、修补 DOCX、批量编辑),且不想依赖 Office 安装的开发者
可搭配: macOS/Linux/Windows,安装/下载二进制后直接使用,本地文件路径,支持可选的实时预览服务
上手时间: 约 3–8 分钟(安装脚本 + 首次运行)
关键事实(已验证)
- GitHub:4,383 stars · 363 forks · 最近更新 2026-05-14。
- 许可证:Apache-2.0(GitHub API 已验证仓库 URL / 头像等基础信息)。
- 入口命令(基于 README):
curl -fsSL https://raw.githubusercontent.com/iOfficeAI/OfficeCLI/main/install.sh | bash。
主要内容
- 让 Office 生成更可控:模板入库,只允许 agent 修改约定的占位符/变量区域。
- 开发阶段用
watch快速验证版式,再把流程固化到批量脚本/流水线里。 - CI 场景把输出集中到 artifacts,并对结构性变更做 diff/回归检查。
README 摘录(来源)
# OfficeCLI
> **OfficeCLI is the world's first and the best Office suite designed for AI agents.**
**Give any AI agent full control over Word, Excel, and PowerPoint — in one line of code.**
Open-source. Single binary. No Office installation. No dependencies. Works everywhere.
**Built-in agent-friendly rendering engine** — agents can *see* what they create, no Office required. Render `.docx` / `.xlsx` / `.pptx` to HTML or PNG, closing the *render → look → fix* loop anywhere the binary runs.
[](https://github.com/iOfficeAI/OfficeCLI/releases)
[](LICENSE)
**English** | [中文](README_zh.md) | [日本語](README_ja.md) | [한국어](README_ko.md)
<p align="center">
<strong>💬 Community:</strong> <a href="https://discord.gg/2QAwJn7Egx" target="_blank">Discord</a>
</p>
<p align="center">
<img src="assets/ppt-process.gif" alt="OfficeCLI creating a PowerPoint presentation on AionUi" width="100%">
</p>
<p align="center"><em>PPT creation process using OfficeCLI on <a href="https://github.com/iOfficeAI/AionUi">AionUi</a></em></p>FAQ
Q: 需要安装 Microsoft Office 吗? A: README 描述为单二进制方案,不依赖 Office 安装。
Q: 最快的演示方式?
A: 先 create 生成文件,再用 officecli watch 打开实时预览。
Q: 能让 agent 直接用吗? A: 仓库提供了面向 agent 的 SKILL 文件与 CLI 命令;建议从本地文件与最小权限路径开始。