Features β’ Installation β’ Usage β’ Tech Stack β’ Contributing β’ License
Claude for Word is a professional Microsoft Word Add-in that integrates Anthropic's Claude AI directly into your writing workflow. Write smarter, faster, and more accurately β whether you're drafting contracts, polishing reports, or analyzing complex documents.
π‘ Claude writes directly into your document β formatted, tracked as changes, and ready to use.
| Feature | Description |
|---|---|
| Direct Insertion | Claude writes directly into your document, formatted and ready to use |
| Smart Context | Automatically reads your full document or highlighted selection |
| Track Changes | All AI modifications appear as Redlines β perfect for professional reviews |
| Real-time Streaming | Watch Claude compose your content token by token |
| Tool | Description |
|---|---|
| Contract Review | High-level analysis of clauses, risks, and obligations |
| Formal Reframing | Instantly rewrite text in a professional or legal tone |
| Legal References | Identify applicable laws and regulations (CC, D.Lgs., EU Regs) |
| Text Analysis | Readability metrics via Gulpease & Flesch-Kincaid indexes |
- Local API Key Storage β Your key never leaves your browser
- Direct Connection β Calls go straight from Word to Anthropic's API (no middleman)
- Open Source β Fully auditable codebase for complete transparency
- β Microsoft Word (Windows, Mac, or Web)
- β Node.js 18+
- β Anthropic API Key
git clone https://github.com/MorkMindy74/claude-word-addin.git
cd claude-word-addinnpm installnpm run dev-certsnpm start- Open Microsoft Word (Desktop or Online)
- Go to Home β Add-ins (or Insert β My Add-ins)
- Click Upload My Add-in
- Select the
manifest.xmlfile from your project folder
- Open the Sidebar β Click the Claude button in the Word Ribbon
- Configure API Key β Click the βοΈ Settings icon and enter your Anthropic API Key
- Choose a Model β Select your preferred Claude model (e.g., Claude 3.5 Sonnet)
- Give an Instruction β Type a prompt (e.g., "Draft a non-disclosure clause") or select a Quick Action chip
- Pick an Insertion Mode:
- π Replace selection β Overwrite the selected text
- β Insert after β Append after the selection
- π Insert at end β Add to the end of the document
| Technology | Role |
|---|---|
| Office.js | Microsoft Word integration & document manipulation |
| Anthropic Messages API | Claude AI with SSE streaming |
| Vanilla JavaScript / CSS | Lightweight, zero-dependency runtime |
| Webpack 5 | Bundling & development environment |
claude-word-addin/
βββ src/
β βββ taskpane/ # Main sidebar UI (HTML, CSS, JS)
β βββ modules/ # Core logic: AI client, document ops
β βββ commands/ # Ribbon button commands
βββ assets/ # Icons and static files
βββ catalog/ # Add-in catalog configuration
βββ manifest.xml # Office Add-in manifest
βββ webpack.config.js # Build configuration
βββ .env.example # Environment variable template
Contributions are what make open source amazing! π
Please read our CONTRIBUTING.md for guidelines on:
- Reporting bugs
- Suggesting features
- Submitting pull requests
# Fork the project, then:
git checkout -b feature/your-amazing-feature
git commit -m 'Add: your amazing feature'
git push origin feature/your-amazing-feature
# Open a Pull RequestThis project is licensed under the MIT License β see the LICENSE file for details.
Made with β€οΈ for legal professionals and writers everywhere
β Star this repo if you find it useful!