
OfficeCLI
A CLI that lets Claude directly manipulate Office files without needing Office installed. It's genuinely AI-friendly with a three-layer API (read, DOM edit, raw XML) and a help system that shows exact property names and syntax instead of making you guess. The resident mode is smart for multi-step workflows since it keeps files in memory between commands. Supports all the basics like adding slides, formatting paragraphs, setting cell values, plus a batch mode for atomic operations. The view modes are handy too, especially the issues detector for catching formatting problems. One caveat: it uses numeric indexing for elements, so you can't reference things by name directly. Best when you need programmatic Office document creation or bulk modifications where the Office GUI would be tedious.
- GitHub stars
- 2.4K
- last updated
- Jun 11, 2026
Install
$ npx -y skills add heshengtao/super-agent-party --skill officeCLI --agent claude-codeInstalls into .claude/skills of the current project.
Files
officecli
AI-friendly CLI for .docx, .xlsx, .pptx. Single binary, no dependencies, no Office installation needed.
Install & Update
Same command for both install and upgrade:
# 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
After installation, run source ~/.zshrc (macOS) or source ~/.bashrc (Linux) to make the officecli command available.
Verify: officecli --version
officecli auto-updates daily in the background.
Strategy
L1 (read) → L2 (DOM edit) → L3 (raw XML). Always prefer higher layers. Add --json for structured output.
Help System (IMPORTANT)
When unsure about property names, value formats, or command syntax, ALWAYS run help instead of guessing. One help query is faster than guess-fail-retry loops.
Sponsors
Details
- Repository
- github.com/heshengtao/super-agent-party
- Categories
- AI & Agent Building, CLI & Terminal, Office & Documents
- License
- AGPL-3.0
- First seen
- Jun 11, 2026