# OfficeCLI — Word/Excel/PPT CLI for Agents > Install OfficeCLI as a single binary and let agents create/edit Word, Excel, and PowerPoint files with live preview—no Microsoft Office required. ## Install Save the content below to `.claude/skills/` or append to your `CLAUDE.md`: ## Quick Use ```bash curl -fsSL https://raw.githubusercontent.com/iOfficeAI/OfficeCLI/main/install.sh | bash officecli create deck.pptx officecli watch deck.pptx ``` ## Intro Use OfficeCLI to let an AI agent safely create and modify Office files via a CLI and preview results locally. Install OfficeCLI as a single binary and let agents create/edit Word, Excel, and PowerPoint files with live preview—no Microsoft Office required. **Best for:** developers wiring document automation into agent workflows (generate PPTs, patch DOCX, batch edits) without Office installs **Works with:** macOS/Linux/Windows, a downloaded or installed binary, local file paths, optional live preview server **Setup time:** ~3–8 minutes (install script + first run) ### Key facts (verified) - GitHub: 4,383 stars · 363 forks · pushed 2026-05-14. - License: Apache-2.0 · owner avatar + repo URL verified via GitHub API. - Entrypoint (README-backed): `curl -fsSL https://raw.githubusercontent.com/iOfficeAI/OfficeCLI/main/install.sh | bash`. ## Main - Keep office file generation deterministic: store templates in repo and only let agents edit specific placeholders. - Use `watch` during development to validate layout changes quickly before running a batch pipeline. - For CI, generate outputs into a dedicated artifact folder and diff structural changes between runs. ### README excerpt (source) ```text # 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. [![GitHub Release](https://img.shields.io/github/v/release/iOfficeAI/OfficeCLI)](https://github.com/iOfficeAI/OfficeCLI/releases) [![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](LICENSE) **English** | [中文](README_zh.md) | [日本語](README_ja.md) | [한국어](README_ko.md)

💬 Community: Discord

OfficeCLI creating a PowerPoint presentation on AionUi

PPT creation process using OfficeCLI on AionUi

``` ### FAQ **Q: Do I need Microsoft Office installed?** A: The README states it works as a single binary without an Office installation. **Q: What’s the fastest demo?** A: Create a file then run `officecli watch` to open the live preview URL. **Q: Can agents use it directly?** A: The repo includes an agent-facing SKILL file and CLI commands; start with local files and least-privilege paths. ## Source & Thanks > Source: https://github.com/iOfficeAI/OfficeCLI > License: Apache-2.0 > GitHub: 4,383 stars · 363 forks · pushed 2026-05-14 --- ## 快速使用 ```bash curl -fsSL https://raw.githubusercontent.com/iOfficeAI/OfficeCLI/main/install.sh | bash officecli create deck.pptx officecli watch deck.pptx ``` ## 简介 用 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 摘录(来源) ```text # 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. [![GitHub Release](https://img.shields.io/github/v/release/iOfficeAI/OfficeCLI)](https://github.com/iOfficeAI/OfficeCLI/releases) [![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](LICENSE) **English** | [中文](README_zh.md) | [日本語](README_ja.md) | [한국어](README_ko.md)

💬 Community: Discord

OfficeCLI creating a PowerPoint presentation on AionUi

PPT creation process using OfficeCLI on AionUi

``` ### FAQ **Q: 需要安装 Microsoft Office 吗?** A: README 描述为单二进制方案,不依赖 Office 安装。 **Q: 最快的演示方式?** A: 先 `create` 生成文件,再用 `officecli watch` 打开实时预览。 **Q: 能让 agent 直接用吗?** A: 仓库提供了面向 agent 的 SKILL 文件与 CLI 命令;建议从本地文件与最小权限路径开始。 ## 来源与感谢 > 来源:https://github.com/iOfficeAI/OfficeCLI > 许可证:Apache-2.0 > GitHub:4,383 stars · 363 forks · 最近更新 2026-05-14 --- Source: https://tokrepo.com/en/workflows/officecli-word-excel-ppt-cli-for-agents Author: Skill Factory