Open Agreements
Fill standard legal agreement templates (NDAs, SAFEs, NVCA docs, employment contracts) as DOCX files. Remote MCP server — no install required. MIT licensed.
OpenAgreements
English | Español | 简体中文 | Português (Brasil) | Deutsch
Demo: Claude fills a Common Paper Mutual NDA in under 2 minutes. Sped up for brevity.
Fill standard legal agreement templates and get signable DOCX files. 41 templates covering NDAs, cloud service agreements, employment docs, contractor agreements, SAFEs, and NVCA financing documents.
Works with Claude Code, Gemini CLI, and Cursor.
Install
npm install -g open-agreements
Or run directly with zero install:
npx -y open-agreements@latest list
Quick Start
With Claude Code (zero install)
Just ask Claude:
> Fill the Common Paper mutual NDA for my company
Claude discovers templates, interviews you for field values, and renders a signed-ready DOCX. No install needed — Claude runs npx on demand.
With Gemini CLI
gemini extensions install https://github.com/open-agreements/open-agreements
Then ask Gemini to draft an agreement.
With the CLI
# See all available templates
open-agreements list
# Fill a template from a JSON data file
open-agreements fill common-paper-mutual-nda -d values.json -o my-nda.docx
# Fill with inline values
open-agreements fill common-paper-mutual-nda --set party_1_name="Acme Corp" --set governing_law="Delaware"
Example Prompts
- "Draft an NDA for our construction subcontractor"
- "Create a consulting agreement for our insurance agency"
- "Fill the independent contractor agreement for a freelance designer"
- "Generate a SAFE with a $5M valuation cap"
What Happens
- The agent runs
list --jsonto discover templates and their fields - It interviews you for field values (grouped by section, a few at a time)
- It runs
fill <template>to render a DOCX preserving all original formatting - You review and sign the output document
Templates
41 templates across 7 categories. Run open-agreements list for the full inventory.
- NDAs — Mutual and one-way (Common Paper, Bonterms)
- Cloud & SaaS — Cloud service agreements, order forms, SLAs, pilot agreements, software licenses
- Services & Contractors — Professional services, independent contractor, SOW (Common Paper, Bonterms)
- Employment — Offer letter, IP assignment, confidentiality acknowledgement, restrictive covenant
- Data Privacy — DPA, BAA, AI addendum (Common Paper)
- SAFEs — Valuation cap, discount, MFN, pro rata side letter (Y Combinator)
- Venture Financing — Stock purchase, certificate of incorporation, investors' rights, voting, ROFR, indemnification, management rights letter (NVCA)
Internal templates are CC BY 4.0. YC SAFEs are CC BY-ND 4.0 (vendored unchanged). NVCA documents are downloaded on demand from nvca.org (not bundled).
What Gets Installed
open-agreements/
bin/ # CLI entry point
dist/ # Compiled TypeScript
content/
templates/ # Fillable DOCX templates with {tag} placeholders
external/ # YC SAFE templates (vendored unchanged)
skills/ # Agent skill definitions (Claude Code, Gemini, Cursor)
server.json # MCP server manifest
gemini-extension.json # Gemini CLI extension config
README.md, LICENSE
NVCA recipe templates (7) are downloaded at runtime — not bundled in the package.
CLI Reference
list
Show available templates with license info and field counts.
open-agreements list
# Machine-readable JSON (for agent skills and automation)
open-agreements list --json
fill <template>
Render a filled DOCX from a template.
# From a JSON data file
open-agreements fill common-paper-mutual-nda -d data.json -o output.docx
# With inline --set flags
open-agreements fill common-paper-mutual-nda --set party_1_name="Acme Corp" --set governing_law="Delaware"
validate [template]
Run the validation pipeline on one or all templates.
open-agreements validate # All templates
open-agreements validate common-paper-mutual-nda # One template
Agent Setup Details
Claude Code — Agent Skill
npx skills add open-agreements/open-agreements
Then ask Claude to draft an agreement. Claude discovers available templates, interviews you for field values, and renders a signed-ready DOCX.
Gemini CLI — Extension
gemini extensions install https://github.com/open-agreements/open-agreements
The extension provides MCP tools, context files, and skills for template discovery and filling.
Cursor — Plugin
This repository includes a Cursor plugin manifest at .cursor-plugin/plugin.json with MCP wiring in mcp.json.
Local vs. Hosted Execution
OpenAgreements supports two execution modes:
- Local (
npx, global install, or stdio MCP): all processing happens on your machine. No document content leaves your machine. - Hosted (
https://openagreements.org/api/mcp): template filling runs server-side for fast setup. No filled documents are stored after the response.
Choose based on document sensitivity and workflow needs. See docs/trust-checklist.md for a 60-second data-flow summary.
Privacy
- Local mode (
npx, global install, stdio MCP): all processing happens on your machine. No document content is sent externally. - Hosted mode (
https://openagreements.org/api/mcp): template filling runs server-side. No filled documents are stored after the response is returned.
See our Privacy Policy for details.
Built With OpenAgreements
- Safe Clause — AI-powered contract platform for startups. #1 on vibecode.law, March 2026.
Building on OpenAgreements? Open a PR to add your project.
See Also
- safe-docx — surgical editing of existing Word documents with coding agents (MCP server)
Contributing
See CONTRIBUTING.md for how to add templates, recipes, and other improvements.
License
MIT. Template content is licensed by their respective authors — CC BY 4.0 (Common Paper, Bonterms), CC BY-ND 4.0 (Y Combinator), or proprietary (NVCA, downloaded at runtime). See each template's metadata.yaml for details.
This tool generates documents from standard templates. It does not provide legal advice. Consult an attorney for legal guidance.
İlgili Sunucular
Frihet
AI-native business management MCP server — 31 tools for invoicing, expenses, clients, products, quotes & tax compliance. 40 currencies, OCR, Stripe Connect. MIT licensed.
Obsidian
Interact with your Obsidian vault using the Local REST API plugin, enabling LLMs to access and manage your notes.
Productboard MCP Server
Integrates with the Productboard API, offering 49 specialized tools to manage all major Productboard functionalities.
Shannon Thinking
A tool for systematic problem-solving based on Claude Shannon's methodology, breaking down complex problems into structured thoughts.
UnifAI
Dynamically search and call tools using UnifAI Network
Achriom
The media memory layer for AI agents and their humans. Track books, movies, music, shows, and anime.
Tachikoma Router Management MCP
Manage various router types using natural language. Requires router credentials to be configured.
Spreadsheet MCP Server
An MCP server for Google Spreadsheet integration, connecting via a Google Apps Script Web App.
Backup
Add smart Backup ability to coding agents like Windsurf, Cursor, Cluade Coder, etc
Quire MCP Server
Interact with Quire.io projects and tasks using the Quire API, enabling AI assistants to manage your workflow.