← Back to Leaderboard
OiOfficeAI

iOfficeAI/OfficeCLI

A single-binary OOXML CLI for agents to edit, render, and validate Office files

Open-Source AI AppQuickstart ↓
Engineering Health (Methodology)
A+ · 95/100
Maintenance Activity
● Updated 3d ago
Latest Release
v1.0.163
Commercial License Check
Apache-2.0 · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption20/25
Release Cadence20/20
License Clarity20/20
MCPCLISelf-Hosted
Total Stars
★ 33,761
24h Growth
+6
7d Growth
+135
Forks
2,317

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

iOfficeAI/OfficeCLI Star History (2026-03-15 - 2026-12-04) ALL-TIME STAR HISTORY (2026-03 – 2026-12) +33.8k in 264d · avg +128/day 35.7k 17.8k 0 2026-03-15: ★ 22026-04-04: ★ 1,2582026-04-25: ★ 2,0272026-05-16: ★ 4,3592026-06-06: ★ 6,1332026-06-27: ★ 7,9582026-07-18: ★ 18,9832026-08-08: ★ 26,4312026-08-29: ★ 29,1212026-09-19: ★ 30,5502026-10-10: ★ 31,6122026-10-31: ★ 32,7652026-11-16: ★ 33,3072026-12-04: ★ 33,761 ★ 33.8k 2026-03 2026-07 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

OfficeCLI is a C# application shipped as a self-contained .NET binary. Its interface has three levels: semantic inspection via view; structured operations via commands such as get, query, set, and add; and a raw OOXML fallback via raw, raw-set, and add-part. The DOM uses one-based paths such as /slide[1]/shape[2], not XPath. XPath is reserved for raw XML access.

A caller can drive the CLI through --json, use batch mode to apply multiple operations in one pass, or keep a document open in a resident session and flush it with close. validate and view issues give callers a way to check output after edits; structured error codes such as invalid_value support targeted retries. The CLI contract is concrete, but an MCP server entrypoint, transport, and tool schema are not established.

Key Capabilities & Differentiators

OfficeCLI creates, reads, and edits .docx, .xlsx, and .pptx. Its renderer outputs standalone HTML with inline assets, uses a headless browser for per-page PNGs, and serves an auto-refreshing local preview through watch. That gives an agent a way to inspect layout after a structural edit; JSON alone cannot show text overflow or overlapping shapes.

On the spreadsheet side, the engine evaluates 350+ built-in functions on write, including spilling dynamic arrays and financial and statistical functions. Native pivot tables write both the cache and definition to OOXML. For repeatable output, merge fills {{key}} placeholders from JSON across all three formats, while dump serializes a whole document or a subtree into batch JSON that can be replayed with batch.

Trade-offs & Limitations

Compared with python-docx and openpyxl, OfficeCLI gives an agent one subprocess interface across three formats without maintaining separate library adapters. In a Python application, however, direct library calls avoid shell argument handling and expose in-process objects. Batch and resident modes help when edits are related, but the caller still has to manage session lifetime and ensure the final file is on disk before another process consumes it.

LibreOffice and Microsoft Office are better fits when interactive editing is the main job. OfficeCLI's own renderer and evaluator are useful for feedback, not a guarantee of identical layout or calculation in the destination application. Validate package structure, then test representative layouts and formulas in the application that will open the files. Raw XML access fills gaps in DOM coverage but puts responsibility for OOXML relationships and element ordering on the caller.

Hardware & Deployment Guide

Run the native binary on macOS, Linux, or Windows; release artifacts are listed for both x64 and ARM64 on all three. The binary embeds .NET, so no separate runtime or Microsoft Office installation is required. A platform-matched binary can run locally or in a headless CI or Docker environment. Smoke-test browser-backed screenshot capture separately on your worker image. watch serves a local preview at http://localhost:26315.

For reproducible deployments, pin the release artifact and disable background update checks with officecli config autoUpdate false or set OFFICECLI_SKIP_UPDATE=1 per invocation. Recent fixes illustrate why representative-file testing matters: v1.0.162 improved validation for missing package parts referenced by content-type overrides, and v1.0.161 fixed XLSX formatting-element ordering and duplicate IDs on materialized PowerPoint placeholders.

Structured edits: --json output and one-based element paths such as /slide[1]/shape[2].
OOXML fallback: XPath-level access through raw and raw-set, with package checks via validate.
Visual feedback: HTML previews, per-page PNG capture through a headless browser, and auto-refreshing local watch.
Spreadsheet computation: 350+ built-in functions, spilling dynamic arrays, and native OOXML pivot tables.
Repeatable generation: merge fills JSON-backed {{key}} fields; dump and batch capture and replay whole documents or subtrees.
Session lifecycle: resident mode keeps the document in memory across edits; close flushes the session to disk.
Best For

Agent or CI workflows that generate recurring reports, edit templates, or turn Office documents into structured data, with previews and validation before delivery.

Skip If

You need a desktop editor, a native in-process Python API, or exact Microsoft Office rendering and calculation without testing in the destination application.

Reviewed on 2026-12-03 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

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

Comparison vs. Top Agents & Frameworks Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
OfficeCLI ★33.8k+135C#Apache-2.0A single-binary OOXML CLI for agents to edit, render, and validate Office files
hermes-agent268.1k+1.5kPythonMITSelf-hosted Python agent with persistent memory and automation across chat and C
n8n213.1k+787TypeScript—Visual Node.js platform for self-hosted workflows and multi-step AI agents
OpenHands94.8k+374TypeScriptMITSelf-hosted control plane for coding agents across local, remote, and cloud back

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/iOfficeAI/OfficeCLI.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

iOfficeAI/OfficeCLI Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about OfficeCLI

How should an agent integrate OfficeCLI into an editing workflow?

Invoke the CLI as a subprocess and request --json. Inspect the document with view, locate elements with get or query, then edit through the DOM and run validate. Batch mode groups related operations; when using a resident session, call close before handing the file to a downstream process so changes are flushed to disk. The MCP tag does not establish a server entrypoint, transport, or tool schema.

What runtime and hardware should a headless worker have?

The platform binary embeds .NET and does not need Microsoft Office. CLI document operations do not require a local model or a dedicated GPU. PNG capture is a separate sizing concern because it runs rendered HTML through a headless browser. Size workers using representative file sizes, page counts, and rendering concurrency; there are no fixed RAM or VRAM figures to plan against.

Can a company self-host or redistribute OfficeCLI?

Apache-2.0 permits commercial use and self-hosting. If you redistribute the binary or a modified build, retain the applicable license and notices and review NOTICE and THIRD-PARTY-NOTICES.txt for your distribution. For controlled environments, pin the binary version and disable background updates as part of the deployment policy.

When is OfficeCLI a better fit than LibreOffice or Python libraries?

Choose OfficeCLI when one subprocess interface needs to handle Word, Excel, and PowerPoint with JSON output and built-in previews. Choose format-specific Python libraries such as python-docx or openpyxl when in-process objects and direct integration with an existing Python application matter more. Consider LibreOffice for desktop editing or conversion, and inspect critical deliverables in Microsoft Office when its display or calculation behavior is the acceptance criterion.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining iOfficeAI/OfficeCLI? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature iOfficeAI/OfficeCLI on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare