HubLensCLIiOfficeAI/OfficeCLI
// archived 2026-04-29
iOfficeAI

OfficeCLI

AI🌱 NEW PROJECT BOOST#CLI#Automation#Microsoft Office#Agentic AI#Productivity
View on GitHub
33

// summary

OfficeCLI is an open-source command-line tool that enables AI agents to create, read, and modify Microsoft Office documents without requiring local Office installations. It features a three-layer architecture that allows for simple semantic views, structured element manipulation, and direct XML access. The tool supports seamless integration with AI coding agents through a built-in MCP server and automatic skill configuration.

// technical analysis

OfficeCLI is a specialized command-line interface designed to provide AI agents with direct, programmatic control over Microsoft Office documents without requiring an Office installation or external dependencies. Its architecture utilizes a three-layer approach—ranging from high-level semantic views to low-level raw XML access—which allows AI agents to interact with documents efficiently while minimizing token usage. By providing deterministic JSON output and path-based addressing, the tool solves the complexity of traditional Office automation, enabling agents to create, read, and modify documents through simple, atomic commands.

// key highlights

01
Enables AI agents to create, read, and modify Word, Excel, and PowerPoint files using simple, one-line commands.
02
Features a three-layer architecture that allows users to scale from high-level semantic views to granular raw XML manipulation.
03
Includes a built-in MCP server that integrates seamlessly with AI tools like Claude Code, Cursor, and VS Code.
04
Provides a live preview server that renders document changes in a browser, facilitating iterative design and real-time feedback.
05
Supports structured JSON output for all commands, ensuring that AI agents receive consistent data schemas without needing complex parsing.
06
Operates as a single, self-contained binary with an embedded .NET runtime, ensuring portability across different environments.

// use cases

01
Automated generation of Word, Excel, and PowerPoint documents from AI prompts
02
Batch processing and structural validation of Office files in CI/CD pipelines
03
Real-time document previewing and iterative design via a local HTTP server

// getting started

To begin, install the binary using the provided curl command for your OS (macOS/Linux) or PowerShell (Windows). Once installed, you can immediately start creating or modifying documents using commands like 'officecli create' or 'officecli add'. For AI agents, simply feed the 'SKILL.md' file to your agent or use the 'officecli mcp' command to register the tool with your preferred AI coding environment.