DISCOVER THE FUTURE OF AI AGENTS

OfficeCLI

Added May 3, 2026
Agent & Tooling
Open Source
Model Context ProtocolAI AgentsC#CLIAgent & ToolingAutomation, Workflow & RPAEnterprise Applications & Office

The first command-line Office suite designed for AI agents, enabling creation, reading, editing, and automation of Word/Excel/PowerPoint files via CLI or MCP without Microsoft Office installed.

OfficeCLI is a command-line Office document manipulation tool developed by the iOfficeAI organization, designed specifically for AI Agent scenarios. Distributed as a single self-contained binary (compiled with .NET 10 SDK, runtime embedded), it requires no Microsoft Office or LibreOffice installation, supporting six platforms: macOS (Apple Silicon/Intel), Linux (x64/ARM64), and Windows (x64/ARM64).

The core design employs a three-layer access architecture: L1 Read layer provides semantic-level content views (text/annotated/outline/stats/issues/html) for agents to obtain document summaries with minimal tokens; L2 DOM layer provides structured element operations (get/query/set/add/remove/move/swap) via path addressing like /slide[1]/shape[2] without requiring XML namespace knowledge; L3 Raw XML layer provides direct XPath access as a universal fallback. All commands support --json for deterministic structured output, combined with CSS-like Query selectors (:contains(), :has(), etc.) and Stable ID Addressing (@id=/@name=) for an agent-friendly document manipulation experience.

Format support covers: Word — paragraphs/tables/styles/images/formulas/comments/footnotes/watermarks/bookmarks/TOC/charts/SDT/fields; Excel — formula auto-evaluation (150+ built-in functions), pivot tables (multi-field/date grouping/calculated fields), slicers/conditional formatting; PowerPoint — animations/Morph transitions/3D models (.glb)/charts/slide zoom.

Execution modes include: Normal mode (independent open/save per command), Resident Mode (open/close with in-memory document + named pipe communication for near-zero latency), Batch Mode (multiple operations in single IO cycle), Template Merge ({{key}} placeholder replacement), and Live Preview (watch launches HTTP server with real-time browser rendering, click/selection/drag interaction, Three.js 3D model rendering).

Integration features: built-in MCP server exposing all operations via JSON-RPC with one-click registration for Claude Code, Cursor, VS Code/Copilot, and LM Studio; auto-detection of AI tool config directories for skill file installation; Skill system supporting pitch-deck, academic-paper, financial-model, and other specialized skills. Any language can invoke the CLI via subprocess.

Installation:

# macOS / Linux
curl -fsSL https://raw.githubusercontent.com/iOfficeAI/OfficeCLI/main/install.sh | bash
# Windows (PowerShell)
irm https://raw.githubusercontent.com/iOfficeAI/OfficeCLI/main/install.ps1 | iex

Config file is located at ~/.officecli/config.json. Environment variables OFFICECLI_SKIP_UPDATE=1 to skip updates, OFFICECLI_NO_AUTO_RESIDENT=1 to disable auto Resident mode. Current latest version is v1.0.70 with 71 releases. Licensed under Apache License 2.0.

Related Projects

View All

STAY UPDATED

Get the latest AI tools and trends delivered straight to your inbox. No spam, just intelligence.