iOfficeAI/OfficeCLI

OfficeCLI is the first and best Office suite purpose-built for AI agents to read, edit, and automate Word, Excel, and PowerPoint files. Free, open-source, single binary, no Office installation required.

What it solves

OfficeCLI provides a way for AI agents and developers to create, read, and modify Microsoft Office documents (.docx, .xlsx, .pptx) programmatically without needing Microsoft Office installed. It solves the "blind generation" problem for AI agents by providing a built-in rendering engine that allows agents to visualize the document's layout (via HTML or PNG) to verify and fix formatting issues in a loop.

How it works

It is distributed as a single, self-contained binary with an embedded .NET runtime. It uses a command-line interface to manipulate document elements (like slides, cells, or paragraphs) using a path-based selector system. Key internal components include:

  • Rendering Engine: Converts Office files to high-fidelity HTML or PNG screenshots, enabling multimodal AI agents to "see" the output.
  • Formula & Pivot Engine: Evaluates over 350 Excel functions and manages pivot tables natively without needing a round-trip to the Office application.
  • Template Merge: Allows users to create a template with {{key}} placeholders that can be filled with JSON data for deterministic, high-volume generation.
  • Round-trip Dump: Serializes existing documents into a replayable JSON format, allowing agents to analyze and replicate existing styles.

Who it’s for

  • AI Agent Developers: Who want to give their agents the ability to generate professional presentations, reports, and spreadsheets.
  • Software Developers: Who need to automate report generation, batch-process documents, or build document pipelines in CI/CD and Docker environments.
  • Enterprise Teams: Who need to automate the population of document templates with data.

Highlights

  • No Dependencies: Works as a single binary with no Office installation required.
  • High-Fidelity Visualization: Built-in HTML and PNG rendering for a render → look → fix feedback loop.
  • Comprehensive Office Support: Full read/write/create capabilities for Word, Excel, and PowerPoint.
  • Agent-Ready: Includes a "skill file" that allows AI agents to automatically install and learn how to use the tool.
  • Advanced Excel Logic: Native evaluation of 350+ functions and complex pivot table creation.

Related

  • Dispatch
  • Project
  • Project
  • Dispatch
  • Project