OfficeCLI
A command-line Office suite that lets AI agents create, inspect, edit, and validate Word, Excel, and PowerPoint files.
- Source repo
- iOfficeAI/OfficeCLI
- Stars
- ★ 34k
- Last updated
- 2d ago v1.0.163
- FARS reviewed
- Nov 07, 2026 +3 new
- License
- Apache-2.0
- Primary language
- C#
- FA score
- 62/100 · Some gaps
At a glance
- How it runs
- Works with
- Universal · cross-platformCodex · Claude Code
- Cost
- Free, no paid service needed
- Setup effort
- Low · running in minutes
- You'll need
- 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.
- A development team generating Word reports, Excel workbooks, or PowerPoint summaries from test and application data inside CI/CD or containers without installing Office.
- An AI application developer giving Claude Code or Codex structured access to existing documents, targeted edits, and machine-readable success or error responses.
- An operations or finance team filling standardized invoices, quarterly reports, or presentation templates repeatedly from JSON data.
- A data team importing CSV or TSV files, writing and evaluating formulas, and producing charts or pivot tables in deliverable .xlsx workbooks.
- A presentation workflow in which a multimodal agent creates slides and checks overlap or overflow through HTML, PNG screenshots, or the watch live preview.
- 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 | bashirm 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 | bashOn Windows PowerShell, run:
irm https://raw.githubusercontent.com/iOfficeAI/OfficeCLI/main/install.ps1 | iexSupported 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.pptxRun 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)
Can run terminal commands; pair with approval gates or container/OS sandboxing.
Modifies local files; work on a clean Git branch or dedicated worktree.
Makes outbound requests; verify telemetry settings and model data routing on private repos.
Inherits capabilities of connected MCP servers; audit third-party servers before enabling.
What are this agent's strengths and limitations?
- 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.
- 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?
Why each dimension lost points
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.
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.
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.
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.
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.
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.
- 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.
Recent releases
Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.
-
Release notes excerpt
Full Changelog: https://github.com/iOfficeAI/OfficeCLI/compare/v1.0.162...v1.0.163View on GitHub ↗ -
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.162View on GitHub ↗ -
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?
Can it run in a headless server or CI environment?
How does it integrate with Claude Code or Codex?
What happens if one operation in a batch fails?
Why might another program not see a recent edit?
Thanks — we use this to improve the page.
Subscribe to the FollowAgents RSS feed, or save this agent to your browser shortlist to compare on your next visit.