OfficeCLI:讓 AI agent 直接讀寫 Word、Excel、PowerPoint 的命令列工具
OfficeCLI 是 iOfficeAI 開源的 Office 檔案命令列工具,讓 Claude Code、Cursor 等 AI agent 可建立、讀取、修改與預覽 Word、Excel、PowerPoint。重點不是取代 Office,而是把 Office 檔案變成 agent 可操作、可渲染、可修正的 artifact。
GitHub README 稱 OfficeCLI 是為 AI agents 設計的 Office suite:open-source、single binary、no Office installation、no dependencies,可讀寫 Word / Excel / PowerPoint,並可把 .docx / .xlsx / .pptx render 成 HTML 或 PNG,形成「render → look → fix」回圈。
GitHub repo 為 iOfficeAI/OfficeCLI,主要語言 C#,授權 Apache-2.0。2026-07-23 核對時 repo 約 21k stars / 1.4k forks;latest release 為 v1.0.140,提供 Linux、macOS、Windows 與 Alpine 的 x64 / arm64 binary,release assets 帶 SHA-256 digest。
它不是 Word / Excel / PowerPoint 裡面的外掛,也不是 Microsoft 365 Copilot。它是命令列與檔案層工具:agent 在終端機裡建立或修改 OOXML 檔,再用 preview / HTML / screenshot 檢查成果。
| 格式 | 可做什麼 | 典型用途 |
|---|---|---|
| Word .docx | 建立、讀取、修改文字、段落、樣式與結構 | 報告草稿、合約初稿、提案書、批次套版、格式檢查;跨公司或政府指定 Word 交付時特別有用。 |
| Excel .xlsx | 讀取 / 修改表格、公式、格式;README 稱內建 Excel functions 與 pivot 支援 | 報表整理、費用表、預算表、成績表、資料輸出後排版;數字仍需用 Excel / Sheets 或抽樣公式驗算。 |
| PowerPoint .pptx | 建立簡報、加 slide / shape / 文字 / 版面,並 live preview | 商務簡報、專案進度簡報、活動 deck、視覺草稿。 |
| Preview / Render | 輸出 HTML / PNG / watch,即時檢查文件外觀 | 讓 agent 自行看結果、修版面,降低「產出檔案但看不到」的問題。 |