iOfficeAI/OfficeCLI让 AI 帮你读写和改 Word、Excel、PPT 文件
OfficeCLI 是一个专门给 AI 用的办公文档工具,能让 AI 读、改、做 Word、Excel、PowerPoint 文件。以前想让程序自动处理这类文档,往往要装 Office、写一堆代码、拼好几个库,现在一条指令就能办。它免费开源,只有一个程序文件,不用装 Office,也没有别的依赖。
用法有两种:装一个叫 AionUi 的桌面软件,用大白话描述需求,它背后就靠 OfficeCLI 干活;或者直接给 AI 编程助手装上一个技能文件,它就能自己动手增删改文档内容。它还有个特别之处,能把文档渲染成网页或图片让 AI“看”效果,改完再看、看完再改,反复打磨到满意。
开发者从数据库或接口拿数据,用 OfficeCLI 自动生成 Word、Excel 报告,不用手动排版。
开发者批量做查找替换、统一改样式,一次处理大量文档,省去逐个打开修改。
在持续集成环境里,根据测试结果自动生成文档,全程无人值守。
AI 助手用 OfficeCLI 从零生成 PowerPoint 演示文稿,不用模板也不用人工编辑。
案例来自项目官方说明里举的例子和演示,不是本站编的。
用之前要准备:要能运行 AI 编程助手或 AionUi;直接命令行的方式需要自行下载程序文件
下载链接直接指向 GitHub 官方发布页的文件,不经过本站。国内下载 GitHub 文件可能偏慢。
也可以用命令装:
curl -fsSL https://raw.githubusercontent.com/iOfficeAI/OfficeCLI/main/install.sh | bash irm https://raw.githubusercontent.com/iOfficeAI/OfficeCLI/main/install.ps1 | iex brew install officecli scoop install officecli 命令原样摘自项目官方说明,本站没有改动。
能免费用、改、商用;改了代码再发出去要注明改过哪里,并保留原来的版权和许可说明。
以上是对许可证的通俗解释,不是法律意见;正式商用以官方仓库的 LICENSE 文件为准。
免费,而且是开源项目,许可证是 Apache-2.0。
不用。它是一个单独的可执行文件,不依赖 Office 安装,也没有其他依赖。
能。安装包覆盖 Windows、Mac、Linux 三个平台。
可以装 AionUi 桌面应用,用自然语言描述需求来创建和编辑文档,底层用的就是 OfficeCLI。
安装时会自动检测并接入 Claude Code、Cursor、Windsurf、GitHub Copilot 等编程助手。
下面是海外开发者在 Hacker News(国外程序员常去的技术论坛)上讨论这个项目的真实评论,按讨论热度挑选,中文由 AI 翻译,点「看原文」可以对照英文。
Nice, but I don't see a lot of ECMA 376 test cases. Both https://github.com/rcarmo/python-office-mcp-server and https://github.com/rcarmo/go-ooxml are ECMA 376 compliant (I made sure), because for headless generation and handling that's kind of important :) Oh, and you're not the first, I started this a year ago. :)
> OfficeCLI is the first and best Office suite purpose-built for AI agents to read, edit, and automate Word, Excel, and PowerPoint files. Free, open-source, single binary, no Office installation required. 1. Calling Microsoft Office simply "Office" without qualification treats it like a trademark, rather than a generic term that was in use for this class of product before MS appropriated it. 2. If you're going to treat it like a trademark, don't violate it in the same sentence.
How does this do for processing formulas or macros in excel?
Very good and well done. I found immediate use-case for this.
数据来自 GitHub,本站每周核对一次,最近核对于 2026-11-22。