OfficeCLI

A command-line Office suite that lets AI agents create, inspect, edit, and validate Word, Excel, and PowerPoint files.

Stars
★ 34k
Last updated
2d ago v1.0.163
FARS reviewed
Nov 07, 2026 +3 new
License
Apache-2.0
Primary language
C#

At a glance

How it runs
CLIMCP serverAgent plugin / skill
Works with
Universal · cross-platformCodex · Claude Code
Cost
Free, no paid service needed
Setup effort
Low · running in minutes
You'll need
Shell / CLINetwork accessLocal filesystemMCP Server
Typical use
A development team generating Word reports, Excel workbooks, or PowerPoint summaries from test and application data inside CI/CD or containers without installing Office.
Not a fit if
  • Teams that need legacy .doc/.xls/.ppt support
  • Users who want a GUI instead of a terminal
  • Anyone needing PDF export without plugins
Website
officecli.ai ↗ set on GitHub
Maintenance
Commits in the last 30 dayslast commit 2026-11-30latest release v1.0.163 (2026-11-20)+22.3 ★/day over 7 days
Source review
62/100 · Some gaps

What does this agent do, and when should you use it?

OfficeCLI is an Office-document command suite for AI agents and automated pipelines, with core support for .docx, .xlsx, and .pptx. It ships as a self-contained native binary for macOS, Linux, and Windows, requiring neither Microsoft Office nor a separately managed .NET runtime. Its interfaces include a CLI, deterministic JSON responses, resident-pipe SDKs, and a built-in MCP server, with skill installation documented for tools including Claude Code and Codex. The command model has three layers: semantic view modes, path-addressed DOM operations, and raw/raw-set XML access as a fallback. A built-in renderer produces standalone HTML, page screenshots, and a live browser preview so an agent can render a document, inspect the result, and revise it.

A workflow can begin with officecli create, followed by add, set, remove, move, or swap operations on paragraphs, cells, worksheets, slides, shapes, tables, charts, and pictures. get and query retrieve elements through stable paths or selectors and can return structured data with --json; view emits text, outlines, annotated content, issue reports, HTML, SVG, or screenshots. validate checks OpenXML structure, while view <file> issues reports problems such as text overflow, missing alternative text, and formula errors. batch applies multiple mutations atomically by default, and open/save/close keep a document resident for lower-latency editing. merge replaces {{key}} placeholders with JSON values across all three formats, while dump serializes a whole document or subtree into replayable batch JSON. Excel operations include evaluation of supported formulas and native OOXML pivot-table generation; agent integrations can expose document commands as JSON-RPC tools through officecli mcp.

  1. A development team generating Word reports, Excel workbooks, or PowerPoint summaries from test and application data inside CI/CD or containers without installing Office.
  2. An AI application developer giving Claude Code or Codex structured access to existing documents, targeted edits, and machine-readable success or error responses.
  3. An operations or finance team filling standardized invoices, quarterly reports, or presentation templates repeatedly from JSON data.
  4. A data team importing CSV or TSV files, writing and evaluating formulas, and producing charts or pivot tables in deliverable .xlsx workbooks.
  5. A presentation workflow in which a multimodal agent creates slides and checks overlap or overflow through HTML, PNG screenshots, or the watch live preview.
  6. A document-maintenance team performing bulk replacement, style updates, validation, or dump-and-replay cloning from an existing human-authored file.

Key setup facts

Pulled from the install and usage notes below. The project README has the current values.

Install / run
  • curl -fsSL https://raw.githubusercontent.com/iOfficeAI/OfficeCLI/main/install.sh | bash
  • irm https://raw.githubusercontent.com/iOfficeAI/OfficeCLI/main/install.ps1 | iex
Install notes cover
Windows · macOS · Linux

How do you install or deploy this agent?

On macOS or Linux, run:

curl -fsSL https://raw.githubusercontent.com/iOfficeAI/OfficeCLI/main/install.sh | bash

On Windows PowerShell, run:

irm https://raw.githubusercontent.com/iOfficeAI/OfficeCLI/main/install.ps1 | iex

Supported package-manager alternatives are brew install officecli, scoop install officecli, and npm install -g @officecli/officecli. The distributed binary is self-contained and does not require Microsoft Office; only source compilation requires the .NET 10 SDK. Confirm installation with officecli --version. Downloading and background update checks require network access, and document workflows require read/write access to their target files.

How do you use this agent?

Create and inspect a working presentation with:

officecli create deck.pptx
officecli add deck.pptx / --type slide --prop title="Q4 Report" --prop background=1A1A2E
officecli add deck.pptx '/slide[1]' --type shape --prop text="Revenue grew 25%" --prop x=2cm --prop y=5cm --prop size=24 --prop color=FFFFFF
officecli view deck.pptx outline
officecli view deck.pptx html
officecli get deck.pptx '/slide[1]/shape[1]' --json
officecli close deck.pptx

Run officecli watch deck.pptx for an auto-refreshing browser preview. Integration registration includes officecli mcp claude, officecli mcp cursor, and officecli mcp vscode. When using resident mode, run officecli save <file> or officecli close <file> before a non-OfficeCLI program reads the document from disk.

Safety boundaries, hardening & integrations

Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.

Declared capability surface (blast radius)

Local shell command execution

Can run terminal commands; pair with approval gates or container/OS sandboxing.

Local filesystem read/write

Modifies local files; work on a clean Git branch or dedicated worktree.

Outbound network access

Makes outbound requests; verify telemetry settings and model data routing on private repos.

External MCP tool bridge

Inherits capabilities of connected MCP servers; audit third-party servers before enabling.

What are this agent's strengths and limitations?

Pros
  • One cross-platform, self-contained binary covers Word, Excel, and PowerPoint instead of requiring Office or separate python-docx, openpyxl, and python-pptx stacks.
  • Stable element paths, consistent --json output, structured error codes, and property suggestions are well suited to automated agent navigation and recovery.
  • Built-in HTML, screenshot, and live-preview output gives headless workflows a visual verification loop rather than exposing document XML alone.
  • Template merge, dump/batch replay, atomic batches, and resident mode support repeatable generation and low-latency multi-step editing.
  • Skill files, an MCP server, and Python and Node.js resident-pipe SDKs provide multiple integration routes without tying the document engine to one model provider.
Limitations
  • Native scope centers on .docx, .xlsx, and .pptx; legacy .doc/.xls/.ppt are not listed as core formats, and capabilities such as PDF export require plugins.
  • Advanced document features can require intricate paths and selectors or raw/raw-set OpenXML work, creating a steeper adoption curve than simple template fillers.
  • Resident mode defers disk writes, so pipelines involving external readers must explicitly save or close the document, or configure OFFICECLI_RESIDENT_FLUSH.
  • Building from source requires the .NET 10 SDK, even though released self-contained binaries do not require a separate runtime.
  • Installation, automatic update checks, and package-manager delivery require network access unless binaries are downloaded and distributed in advance.

How does this agent compare with similar options?

Compared with Microsoft Office, OfficeCLI removes the desktop-application and COM/Add-in dependency and targets CLI, JSON, headless, and CI workflows, but it is not a traditional Office GUI. Compared with LibreOffice, it emphasizes agent-oriented paths, structured output, template merging, dump/batch replay, and built-in live previews. Compared with python-docx, openpyxl, and python-pptx, it offers one language-independent CLI across all three formats plus rendering and raw XML fallback; the Python-library approach normally requires separate packages and custom orchestration.

Key facts side by side with the most closely related agents.

Agent Source review Form / cost Stars Updated Language Full support on
OfficeCLI This agent 62 · Some gaps CLIFree ★ 34k 2d ago C# Codex · Claude Code
GenOffice 70 · Some gaps Desktop appFree + model costs ★ 13k 1d ago TypeScript OpenAI API · Claude API
Presenton – Open-Source AI Presentation Generator & API 65 · Some gaps Self-hosted serviceFreemium ★ 12k 1d ago TypeScript —
DSH Desktop 60 · Some gaps Desktop appFreemium ★ 19k 1d ago JavaScript —

How does FollowAgents rate this agent?

FollowAgents source review · FARS-2.1
Some gaps
62/ 100 5-point scale 3.1 / 5
This review covers the source as of Nov 07, 2026. The project has shipped 3 stable release(s) since, which have not been re-reviewed. The score and verdict describe the reviewed version only. Recent releases ↓
Trust 12/29
Reliability 8/14
Adaptability 14/18
Convention 12/18
Effectiveness 12/13
Verifiability 4/8
Why each dimension lost points
Trust12 / 29 · 2.1/5

The CLI targets local Office files, and the docs explain resident mode, save/close behavior, update controls, and atomic batch rollback. However, installers can be piped directly from curl or PowerShell, installation writes skills into detected agents, and ordinary edits lack per-operation confirmation or general recovery guidance, so least privilege, confirmation, external effects, and rollback are only partly covered. The security policy acknowledges untrusted input files, but sensitive-data handling and dependency audit evidence are limited. SDK comments clarify that retries occur only during connection. Attribution is limited to repository and maintainer channels; publisher identity is unverified.

Reliability8 / 14 · 2.9/5

The README, skills, and SDK support the resident and pipe model, but descriptions differ on automatic-start versus explicit-open idle timeouts, and the claim of no dependencies sits alongside SDK/npm distribution paths that rely on external installation and downloads. The self-contained binary and cross-platform build matrix support availability. The SDK gives clear missing-CLI and transport errors, but this sample cannot establish complete error handling for all commands.

Adaptability14 / 18 · 3.9/5

The skills clearly target AI agents that create, inspect, and modify Word, Excel, and PowerPoint files, with coverage for documents, spreadsheets, presentations, and varied workflows. Format support and some compatibility boundaries are described, but the broad capability surface and inherited-skill structure make the full scope hard to verify from this sample; trigger descriptions are specific, though claims of broad agent control are expansive. CLI, MCP, SDK, multiple platforms, and no-Office deployment are addressed, with some platform details still limited.

Convention12 / 18 · 3.3/5

The README is organized around installation, quick starts, features, and integrations; skills provide layered guidance, examples, and help-oriented FAQ material, though the sample omits some referenced skills. Installation methods, platforms, verification, configuration, and updates are documented in detail. Naming is mostly stable, with some differences in naming and resident behavior across sources. Apache-2.0 metadata matches the license file. The security policy says only the latest version receives fixes, and release workflows create versioned releases and checksums; this sample does not clearly identify a responsible maintainer or provide a complete changelog, so version and responsibility evidence remains thin.

Effectiveness12 / 13 · 4.6/5

The CLI combines structured document reading, editing, rendering, and batching into directly usable Agent workflows, with examples for common tasks. Rendering feedback and template merge show clear potential value. A single binary and no Office requirement can reduce deployment effort, but auto-updates, installers, and multi-platform distribution add trust and maintenance costs, while static evidence does not verify every high-fidelity or broad-coverage claim.

Verifiability4 / 8 · 2.5/5

Many concrete usage claims are traceable to command examples, SDK protocol comments, and build workflows; the security and license files add support, and skills/build materials corroborate parts of the README. Many performance, coverage, and fidelity claims remain maintainer assertions, and the packet contains an idle-timeout inconsistency. Fact and inference are not consistently distinguished, so higher scores are not justified.

Risks and how to mitigate them
  • Installation instructions pipe remote scripts into a shell and say installation writes skills into detected agents; review the scripts, download sources, and installation targets before adoption.
  • Resident mode can defer disk writes; follow the documented save or close step before another program reads the file. The packet is not fully consistent about automatic and explicit resident timeouts.
  • High-fidelity rendering, function coverage, and format-support breadth are primarily project claims and were not executed or independently validated in this static review.
Evidence confidence: Low Reviewed Nov 07, 2026 Reviewed revision c56512c8c7b7 New commits since this review; the score may not cover them
See the full review method →
Maintain this project? Add the FARS badge to your README

The badge shows the current review score and verdict and links back to this page. It refreshes about once an hour after a re-review.

FARS

[![FARS review](https://followagents.com/badge/officecli.svg)](https://followagents.com/en/agents/officecli)
<a href="https://followagents.com/en/agents/officecli"><img src="https://followagents.com/badge/officecli.svg" alt="FARS review"></a>

Recent releases

Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.

  1. v1.0.163
    Release notes excerpt
    Full Changelog: https://github.com/iOfficeAI/OfficeCLI/compare/v1.0.162...v1.0.163
    View on GitHub ↗
  2. v1.0.162
    Release notes excerpt
    What's Changed * fix(validate): detect missing overridden package parts by @deosiree in https://github.com/iOfficeAI/OfficeCLI/pull/613 Full Changelog: https://github.com/iOfficeAI/OfficeCLI/compare/v1.0.161...v1.0.162
    View on GitHub ↗
  3. v1.0.161
    Release notes excerpt
    What's Changed * fix(xlsx): place a new dxfs before tableStyles and colors by @13robin37 in https://github.com/iOfficeAI/OfficeCLI/pull/616 * fix(pptx): give a materialised placeholder a unique id by @13robin37 in https://github.com/iOfficeAI/OfficeCLI/pull/617 * fix(xlsx): wrap English text without breaking words by @deosiree in https://github.com/iOfficeAI/OfficeCLI/pull/620 New Contributors * @13robin37 made their first contribution in https://github.com/iOfficeAI/OfficeCLI/pull/616 * @deosiree made their first contribution in https://github.com/iOfficeAI/OfficeCLI/pull/620 …
    View on GitHub ↗

FAQ

Does OfficeCLI require Microsoft Office or a paid license?
No Microsoft Office installation is required. OfficeCLI is distributed under Apache-2.0 and runs as a self-contained binary with its runtime embedded.
Can it run in a headless server or CI environment?
Yes. The documented scope includes document generation, modification, validation, and HTML or PNG rendering in CI, Docker, and servers without a display.
How does it integrate with Claude Code or Codex?
officecli install detects supported AI coding tools and installs its skill file; Claude Code and Codex are explicitly named. Claude Code can also register the built-in MCP server with officecli mcp claude.
What happens if one operation in a batch fails?
Batches are atomic by default, so one failure rolls back the entire batch. --best-effort keeps successful items, while --stop-on-error halts at the first failure.
Why might another program not see a recent edit?
Resident mode can defer the disk write. Run save or close before handing the file to python-docx, openpyxl, Office, a renderer, or an uploader; OFFICECLI_RESIDENT_FLUSH=each is also documented.
Was this page helpful?
View on GitHub ↗ Install ↓

Compare agents like this one

The same FARS review applied across the shortlist this agent qualifies for.

Related concepts