gitwtfhub

wtf is officecli?

iofficeai/officecli — explained in plain English

Analysis updated 2026-05-18

20,972C#Audience · developerComplexity · 2/5LicenseSetup · easy

TL;DR

A free command line tool that lets AI agents create, read, and edit Word, Excel, and PowerPoint files without needing Microsoft Office installed.

Mindmap

mindmap
  root((OfficeCLI))
    What it does
      Reads Office files
      Edits Office files
      Creates Office files
      Renders to HTML or image
    Tech stack
      C sharp
      Single binary
      Skill file for agents
    Use cases
      Build slides with AI
      Edit Word docs via commands
      Generate spreadsheets
    Audience
      AI agent developers
      Vibe coders
      Automation engineers
    Setup
      Download binary
      officecli install command

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Why would anyone build with this?

REASON 1

Let an AI coding agent create a PowerPoint presentation from a text description.

REASON 2

Automatically read and check the formatting of a Word document.

REASON 3

Generate or edit Excel spreadsheets through simple commands instead of writing code.

REASON 4

Add OfficeCLI as a skill so tools like Claude Code or Cursor can edit office files directly.

What's in the stack?

C#CLIHTML rendering

How it stacks up

iofficeai/officeclithangchung/awesome-dotnet-coredotnet/roslyn
Stars20,97221,22020,414
LanguageC#C#C#
Setup difficultyeasyeasymoderate
Complexity2/51/54/5
Audiencedeveloperdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you spin it up?

Difficulty · easy Time to first run · 5min

Single binary install via script, brew, or npm, no Office installation required.

Use freely for any purpose, including commercial use, as long as you follow the Apache 2.0 license terms.

Wtf does this do

OfficeCLI is a tool that lets AI agents read, create, and edit Word, Excel, and PowerPoint files, working through simple commands instead of complicated code. It is free, open source, and comes as a single program you can download and run, without needing Microsoft Office installed on your computer. The project's main idea is to give AI assistants like Claude Code, Cursor, or GitHub Copilot the ability to actually see and manipulate office documents. It does this by rendering Word, Excel, and PowerPoint files into HTML or images, so an AI can look at what a document actually looks like, check for problems, and then fix them, closing a loop of rendering, looking, and correcting. For AI agents, setup is meant to be almost instant: pointing the agent at a special skill file teaches it how to install and use the tool automatically. For human users, there are two paths. One is a desktop app called AionUi that lets you describe what document you want in plain language and have it built for you. The other is installing the OfficeCLI command line program directly, which also automatically adds itself as a skill inside popular AI coding tools. Once installed, a person or an AI agent can create a new PowerPoint file, add slides with titles and text boxes, view the file as a readable outline or as rendered HTML in a browser, and get structured details about any element as JSON. The README shows this replacing what used to take many lines of Python code with a single command line instruction. OfficeCLI supports reading, modifying, and creating all three file types: Word documents, Excel spreadsheets, and PowerPoint presentations. Word document support in particular includes detailed handling of international text, right to left languages, paragraph formatting, tables, styles, and images. The project is licensed under the Apache 2.0 license, a permissive license that allows free use, modification, and redistribution, including commercially, as long as license terms are followed. With close to 21,000 stars, it has attracted significant attention. The full README is longer than what was shown.

Yoink these prompts

Prompt 1
Install officecli and use it to create a blank PowerPoint deck with one slide.
Prompt 2
Show me how to add a text box with custom color and font to a PowerPoint slide using officecli.
Prompt 3
Explain how officecli renders Word, Excel, and PowerPoint files to HTML for AI agents to inspect.
Prompt 4
Help me set up officecli as a skill inside my AI coding agent.
Prompt 5
Write an officecli command to view a spreadsheet's structure as JSON.

Frequently asked questions

wtf is officecli?

A free command line tool that lets AI agents create, read, and edit Word, Excel, and PowerPoint files without needing Microsoft Office installed.

What language is officecli written in?

Mainly C#. The stack also includes C#, CLI, HTML rendering.

What license does officecli use?

Use freely for any purpose, including commercial use, as long as you follow the Apache 2.0 license terms.

How hard is officecli to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is officecli for?

Mainly developer.

View the repo → Decode another repo

This repo across BitVibe Labs

Don't trust strangers blindly. Verify against the repo.