← all repositories
iOfficeAI/OfficeCLI

A command-line Office suite that actually wants to be scripted

OfficeCLI treats Word, Excel, and PowerPoint as structured data you manipulate with single commands, not COM objects you wrestle into submission.

21.1k stars C# AgentsCoding Assistants
OfficeCLI
Velocity · 7d
+474
★ / day
Trend
cooling
star history

What it does

OfficeCLI is a single binary that creates, reads, and modifies .docx, .xlsx, and .pptx files without Microsoft Office installed. It exposes every document element through a unified CLI: add a slide with --prop title="Q4 Report", read a cell as JSON, or render a spreadsheet to HTML for inspection. The pitch is replacing fifty lines of python-pptx boilerplate with one shell command an AI agent can generate.

The interesting bit

The built-in rendering engine converts Office files to HTML or PNG, which matters more than it sounds. AI agents traditionally write code blind, execute it, hope the output looks right, and iterate. OfficeCLI closes that loop by letting the agent see its own work—no desktop software, no headless browser orchestration, just a local preview at localhost:26315 that refreshes on every mutation. The README claims all showcased documents were AI-generated with zero manual editing; the GIFs suggest the results are at least presentation-grade.

Key highlights

  • Single static binary, no dependencies, cross-platform
  • Full read/write/create coverage for all three formats; feature matrix is genuinely dense (pivot tables, morph transitions, 3D models, RTL/i18n, phonetic guides, 150+ Excel functions with auto-evaluation)
  • Structured JSON output for any document element via get --json
  • Live preview server with officecli watch
  • Auto-installs “skills” into detected AI agents (Claude Code, Cursor, Copilot, Windsurf)
  • Apache 2.0 licensed

Caveats

  • The “world’s first and best” framing is repeated twice before any evidence; the feature depth supports the claim but the tone may grate
  • README truncates mid-sentence in the developer use-cases section, suggesting the project is moving fast and documentation may lag
  • No mention of macro/VBA support or legacy .doc/.xls/.ppt formats

Verdict

Worth a look if you’re building AI agents that need to produce real Office documents, or if you’re tired of maintaining Python glue around three incompatible libraries. Skip it if your workflow is already locked into Microsoft 365 automation or you only need PDF output.

Frequently asked

What is iOfficeAI/OfficeCLI?
OfficeCLI treats Word, Excel, and PowerPoint as structured data you manipulate with single commands, not COM objects you wrestle into submission.
Is OfficeCLI open source?
Yes — iOfficeAI/OfficeCLI is open source, released under the Apache-2.0 license.
What language is OfficeCLI written in?
iOfficeAI/OfficeCLI is primarily written in C#.
How popular is OfficeCLI?
iOfficeAI/OfficeCLI has 21.1k stars on GitHub and is currently cooling off.
Where can I find OfficeCLI?
iOfficeAI/OfficeCLI is on GitHub at https://github.com/iOfficeAI/OfficeCLI.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.