iOfficeAI / OfficeCLI

iOfficeAI / 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. OfficeCLI 是全球首款专为 AI 智能体设计的最佳办公套件。只需一行代码,即可让任何 AI 智能体完全掌控 Word、Excel 和 PowerPoint。开源、单一二进制文件、无需安装 Office、无依赖项,可在任何地方运行。

OfficeCLI’s built-in HTML rendering engine reproduces documents with high fidelity — and that’s what gives AI eyes. It renders .docx / .xlsx / .pptx to HTML or PNG, closing the render → look → fix loop. OfficeCLI 内置的 HTML 渲染引擎能够高保真地还原文档,这正是赋予 AI“视觉”的关键。它能将 .docx / .xlsx / .pptx 渲染为 HTML 或 PNG,从而闭环实现“渲染 → 查看 → 修复”的工作流。


For AI Agents — Get Started in One Line

针对 AI 智能体 — 一行命令快速上手

Paste this into your AI agent’s chat — it will read the skill file and install everything automatically: 将此命令粘贴到你的 AI 智能体对话框中,它会自动读取技能文件并完成所有安装:

curl -fsSL https://officecli.ai/SKILL.md

That’s it. The skill file teaches the agent how to install the binary and use all commands. 搞定。该技能文件会教会智能体如何安装二进制文件并使用所有命令。


For Humans

针对人类用户

Option A — GUI: Install AionUi — a desktop app that lets you create and edit Office documents through natural language, powered by OfficeCLI under the hood. Just describe what you want, and AionUi handles the rest. 选项 A — 图形界面 (GUI): 安装 AionUi。这是一个桌面应用程序,允许你通过自然语言创建和编辑 Office 文档,其底层由 OfficeCLI 驱动。只需描述你的需求,剩下的交给 AionUi 处理。

Option B — CLI: Download the binary for your platform from GitHub Releases, then run: officecli install. This copies the binary to your PATH and installs the officecli skill into every AI coding agent it detects — Claude Code, Cursor, Windsurf, GitHub Copilot, and more. Your agent can immediately create, read, and edit Office documents on your behalf, no extra configuration needed. 选项 B — 命令行 (CLI): 从 GitHub Releases 下载对应平台的二进制文件,然后运行 officecli install。这会将二进制文件复制到你的 PATH 路径中,并为检测到的所有 AI 编程智能体(如 Claude Code、Cursor、Windsurf、GitHub Copilot 等)安装 officecli 技能。你的智能体即可立即代你创建、读取和编辑 Office 文档,无需额外配置。


For Developers — See It Live in 30 Seconds

针对开发者 — 30 秒实时演示

1. Install (macOS / Linux): 1. 安装 (macOS / Linux):

# brew install officecli / npm install -g @officecli/officecli
curl -fsSL https://raw.githubusercontent.com/iOfficeAI/OfficeCLI/main/install.sh | bash

Windows (PowerShell):

irm https://raw.githubusercontent.com/iOfficeAI/OfficeCLI/main/install.ps1 | iex

2. Create a blank PowerPoint: 2. 创建一个空白 PowerPoint: officecli create deck.pptx

3. Start live preview — opens http://localhost:26315 in your browser: 3. 启动实时预览 — 在浏览器中打开 http://localhost:26315: officecli watch deck.pptx

4. Open another terminal, add a slide — watch the browser update instantly: 4. 打开另一个终端,添加幻灯片 — 观察浏览器即时更新: officecli add deck.pptx / --type slide --prop title="Hello, World!"

That’s it. Every add, set, or remove command you run will refresh the preview in real time. Keep experimenting — the browser is your live feedback loop. 搞定。你运行的每一个添加、设置或删除命令都会实时刷新预览。继续尝试吧 — 浏览器就是你的实时反馈循环。


Why OfficeCLI?

为什么选择 OfficeCLI?

What used to take 50 lines of Python and 3 separate libraries now takes one command: 过去需要 50 行 Python 代码和 3 个独立库才能完成的任务,现在只需一条命令:

officecli add deck.pptx / --type slide --prop title="Q4 Report"


What OfficeCLI can do:

OfficeCLI 的功能:

  • Create documents from scratch — blank or with content

  • Read text, structure, styles, formulas — in plain text or structured JSON

  • Analyze formatting issues, style inconsistencies, and structural problems

  • Modify any element — text, fonts, colors, layout, formulas, charts, images

  • Reorganize content — add, remove, move, copy elements across documents

  • 创建文档:从零开始,支持空白或带内容创建。

  • 读取内容:以纯文本或结构化 JSON 格式读取文本、结构、样式和公式。

  • 分析问题:分析格式错误、样式不一致及结构性问题。

  • 修改元素:修改任何元素,包括文本、字体、颜色、布局、公式、图表和图像。

  • 重组内容:在文档间添加、删除、移动、复制元素。

FormatReadModifyCreate
Word (.docx)
Excel (.xlsx)
PowerPoint (.pptx)