Repolode
iOfficeAI

iOfficeAI/OfficeCLI

A single-binary CLI that lets AI agents and developers create, read, and edit Word, Excel, and PowerPoint files without Office installed.

Open-source alternative to:Microsoft Office

Stars
32,195
Forks
2,194
Open issues
111
Last commit
7 days ago

What is it?

OfficeCLI is an open-source command-line tool for working with .docx, .xlsx and .pptx files. It ships as a self-contained binary with the .NET runtime embedded, so it runs without Microsoft Office or other dependencies on macOS, Linux and Windows. Elements in a document are addressed by stable paths such as /slide[1]/shape[2], and commands support JSON output, which makes the tool practical for scripts and AI agents.

The built-in HTML rendering engine converts documents to HTML or per-page PNG screenshots, and a watch mode serves a live-refreshing preview in the browser. This lets an agent render its output, inspect the result and correct layout problems in CI, Docker or headless environments. The project also includes a formula engine that evaluates 350+ Excel functions on write, native OOXML pivot table creation, template merge that fills {{key}} placeholders from JSON, and a dump command that exports existing documents to replayable batch JSON.

OfficeCLI includes an MCP server and installs a skill file into detected AI coding tools such as Claude Code, Cursor and GitHub Copilot.

Key features

  • 01Creates, reads and modifies Word, Excel and PowerPoint files from the command line.
  • 02Addresses document elements by stable paths and returns structured JSON.
  • 03Renders documents to HTML or PNG and provides a live browser preview.
  • 04Evaluates 350+ Excel functions automatically on write.
  • 05Fills {{key}} placeholders in templates from JSON data.
  • 06Includes an MCP server and installs skill files for AI coding tools.

Use cases

  • Generating reports or invoices from database or API data in scripts.
  • Letting an AI agent draft and check slide decks or spreadsheets.
  • Running document generation and validation in CI/CD pipelines or Docker containers.
  • Batch find-and-replace or style updates across many Office files.

Quick start

  1. 1
  2. 2

    Create a blank PowerPoint file

    officecli create deck.pptx
  3. 3

    Start the live preview in your browser

    officecli watch deck.pptx
  4. 4

    Add a slide and watch the preview update

    officecli add deck.pptx / --type slide --prop title="Hello, World!"

Topics

FAQ

What is OfficeCLI?
A single-binary CLI that lets AI agents and developers create, read, and edit Word, Excel, and PowerPoint files without Office installed. OfficeCLI is an open-source command-line tool for working with .docx, .xlsx and .pptx files. It ships as a self-contained binary with the .NET runtime embedded, so it runs without Microsoft Office or other dependencies on macOS, Linux and Windows. Elements in a document are addressed by stable paths such as /slide[1]/shape[2], and commands support JSON output, which makes the tool practical for scripts and AI agents.
Is OfficeCLI free to use? What license does it have?
OfficeCLI is open source under the Apache-2.0 license. Check the license terms before using it in commercial products.
Is OfficeCLI still maintained?
Actively maintained. The last commit to OfficeCLI was on Oct 13, 2026.
What can I use OfficeCLI for?
Generating reports or invoices from database or API data in scripts. Letting an AI agent draft and check slide decks or spreadsheets. Running document generation and validation in CI/CD pipelines or Docker containers. Batch find-and-replace or style updates across many Office files.
How do I install OfficeCLI?
Install the binary (macOS / Linux) Create a blank PowerPoint file: officecli create deck.pptx Start the live preview in your browser: officecli watch deck.pptx Add a slide and watch the preview update: officecli add deck.pptx / --type slide --prop title="Hello, World!"
Where can I get OfficeCLI?
The source code and installation instructions are on GitHub: https://github.com/iOfficeAI/OfficeCLI

Summary generated by AI from the project's README. GitHub stats refresh daily.

Related projects