SkillsMay 14, 2026·2 min read

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.

Agent ready

Safe staging for this asset

This asset is staged first. The copied prompt tells the agent to inspect the staged files and ask before activating scripts, MCP config, or global config.

Stage only · 17/100Policy: stage
Agent surface
Any MCP/CLI agent
Kind
CLI Tool
Install
Stage only
Trust
Trust: Established
Entrypoint
Asset
Safe staging command
npx -y tokrepo@latest install 9907152d-c0b0-5e6e-a674-6a96a4a4f169 --target codex

Stages files first; activation requires review of the staged README and plan.

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)

# 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)

<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: 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

Discussion

Sign in to join the discussion.
No comments yet. Be the first to share your thoughts.

Related Assets