Skip to content

Latest commit

Β 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Claude for Word Logo

Claude for Word

The AI-powered Microsoft Word Add-in that brings Claude directly into your documents

License: MIT Node.js Office.js Anthropic PRs Welcome

Features β€’ Installation β€’ Usage β€’ Tech Stack β€’ Contributing β€’ License


✨ Overview

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.


πŸš€ Features

πŸ“„ Document-First AI

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

βš–οΈ Legal & Professional Tools

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

πŸ”’ Privacy & Security

  • 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

πŸ› οΈ Installation

Prerequisites

Step 1 β€” Clone the repository

git clone https://github.com/MorkMindy74/claude-word-addin.git
cd claude-word-addin

Step 2 β€” Install dependencies

npm install

Step 3 β€” Setup development certificates (required for HTTPS)

npm run dev-certs

Step 4 β€” Start the development server

npm start

Step 5 β€” Sideload in Word

  1. Open Microsoft Word (Desktop or Online)
  2. Go to Home β†’ Add-ins (or Insert β†’ My Add-ins)
  3. Click Upload My Add-in
  4. Select the manifest.xml file from your project folder

πŸ“– Usage

  1. Open the Sidebar β€” Click the Claude button in the Word Ribbon
  2. Configure API Key β€” Click the βš™οΈ Settings icon and enter your Anthropic API Key
  3. Choose a Model β€” Select your preferred Claude model (e.g., Claude 3.5 Sonnet)
  4. Give an Instruction β€” Type a prompt (e.g., "Draft a non-disclosure clause") or select a Quick Action chip
  5. 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

πŸ—οΈ Tech Stack

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

πŸ“ Project Structure

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

🀝 Contributing

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 Request

πŸ“„ License

This 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!

About

πŸ€– AI-powered Microsoft Word Add-in β€” Integrates Claude AI for smart writing, document analysis, Track Changes, and specialized legal tools.

Topics

Resources

Contributing

Stars

6 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages