AI Developer Tools
docx-cli
CLI for AI agents to read, edit, and comment on .docx files with full format fidelity.
docx-cli
What is docx-cli?
docx-cli is an open-source command-line interface designed for AI agents to interact with Word (.docx) documents by reading, editing, and commenting while preserving formatting.
docx-cli vs Similar AI Tools
| Pricing Model | Free | Free | Custom Pricing | Free, Paid |
| Free Credits | ||||
| Key Features |
|
|
|
|
| Pros |
|
|
|
|
| Cons |
|
|
|
|
| Best For |
|
|
|
|
How to use docx-cli?
- 1Install via npm (`bun add -g bun-docx`) or the standalone binary.
- 2Use commands like `docx read`, `docx replace`, `docx comments add` to manipulate documents.
- 3Integrate with AI agents (Claude, Codex) as a skill using the provided SKILL.md.
docx-cli Key Features
- Read .docx files as annotated Markdown or JSON AST
- Replace text with tracked changes and comment support
- Add, reply, resolve, and delete comments
- Edit styles and document-wide formatting
- Track changes review loop with accept/reject
- Render documents to images for visual verification
- Batch operations via JSONL files
- In-place XML mutation preserves formatting
docx-cli Use Cases
- AI agents filling out form templates
- Reviewing and redlining contracts with tracked changes
- Automating report generation with formatting
- Restyling résumés and other documents
docx-cli Pricing & Free Credits
docx-cli currently operates on a Free model.
This tool is completely free to use
docx-cli Pros & Cons
Pros
- Preserves original formatting and embedded objects
- Works reliably with weak/cheap AI models
- Open-source and free to use
- Easy installation via npm or prebuilt binaries
- Integrates as an agent skill for Claude, Codex, etc.
Cons
- Requires AI agent integration to be fully utilized
- Only supports .docx format (not .doc or ODT)
- Steep learning curve for command syntax
- Rendering to images needs Word or LibreOffice installed
What is docx-cli best for?
- AI developers building document workflows
- Teams automating Word document processing with LLMs
- Anyone needing to preserve formatting while editing .docx files programmatically