aakd

mcp
Security Audit
Warn
Health Warn
  • License — License: AGPL-3.0
  • Description — Repository has a description
  • Active repo — Last push 0 days ago
  • Low visibility — Only 8 GitHub stars
Code Pass
  • Code scan — Scanned 12 files during light audit, no dangerous patterns found
Permissions Pass
  • Permissions — No dangerous permissions requested

No AI report is available for this listing yet.

SUMMARY

Open-source, self-hosted AI-native contract lifecycle management (CLM) for contract operations.

README.md

Aakd — Open-source, self-hosted contract lifecycle management

Aakd is an AI-native contract lifecycle management (CLM) platform for teams
that want to manage contract operations on infrastructure they control.

License: AGPL-3.0
Docker
Next.js
PostgreSQL


What it does

  1. Upload a PDF or DOCX contract (even scanned images — OCR built in)
  2. AI extracts parties, dates, value, auto-renewal clauses, obligations, and risk level automatically
  3. Ask questions in plain language — get answers with exact contract citations
  4. Track renewals — see every auto-renewing contract sorted by notice deadline
  5. Collaborate — approvals, comments, e-signatures, track changes, all in one place
  6. Automate — Slack/Teams alerts, webhooks, API, MCP server for AI agents

Your data never leaves your server. Bring your own AI key (Anthropic or OpenAI). Host anywhere.


Quick start

# 1. Clone and configure
git clone https://github.com/aaked-app/aakd.git
cd aakd
cp .env.example .env.local   # fill in DATABASE_URL, BETTER_AUTH_SECRET, STORAGE_*, REDIS_URL

# 2. Start everything
docker-compose up

# 3. Open the app
open http://localhost:3000

First signup creates your account and organization. Add your Anthropic or OpenAI API key in Settings → AI to enable extraction, Q&A, and risk scoring.


Screenshots

Dashboard — renewal timeline, pending approvals, and recent contracts at a glance.

Aakd dashboard

Contract repository — full-text search, status and risk filters, at-a-glance value and end dates.

Aakd contracts list


Features

Contract Management

Feature Status
PDF & DOCX upload (magic-byte validated, 50 MB max)
OCR for scanned / image-only PDFs
AI metadata extraction (parties, dates, value, governing law, auto-renewal)
Soft-delete with full audit trail
Folders, tags, full-text + semantic search
Contract versions & document snapshots

AI Layer

Feature Status
Contract Q&A with exact citations
AI risk scoring — LOW / MEDIUM / HIGH + 6-category breakdown
Obligation extraction (auto-detected from contract text)
BYOK — bring your own Anthropic or OpenAI key
Ollama support for fully local AI

Workflow & Signing

Feature Status
Approval workflows with role-based routing
E-signatures via DocuSeal (self-hostable)
Track changes / redlining with version comparison
Snapshot comparison with word-level diff
Track changes sidebar with author context

Authoring

Feature Status
Rich document editor (TipTap) with track changes
Template studio with variable fill wizard
Built-in clause snippet library (13 standard legal clauses)
Word import + DOCX/PDF export
Contract snapshots & version history
AI Companion tab — contract Q&A inline in editor

Renewals & Obligations

Feature Status
Auto-renewal risk dashboard (sorted by notice deadline)
Obligation tracker with sub-tasks
Daily overdue obligation cron
Renewal alert emails

Integrations & Ecosystem

Feature Status
Slack & Microsoft Teams notifications
Outgoing webhooks (Zapier / Make compatible)
MCP server endpoint (Claude, Cursor, any MCP client)
REST API with API key auth
CRM sync — HubSpot, Salesforce, Pipedrive
Bulk import — CSV, PandaDoc, DocuSign CLM, Google Drive

Internationalization

English · Français · Deutsch · Español · العربية (RTL)


Why Aakd?

Aakd Ironclad DocuSign CLM Signit
Open source
Self-hostable
BYOK AI (no per-use fee)
Arabic RTL
MCP server
Starting price Free / hosting $2,000+/mo $500+/mo Opaque

The only open-source, self-hostable, AI-native CLM with Arabic support and an MCP server. Your contracts stay on your servers. Forever.


Stack

  • Frontend: Next.js 14 App Router · TypeScript · Tailwind CSS · TipTap editor
  • Backend: Next.js API routes · Prisma ORM · PostgreSQL 16 + pgvector
  • Auth: Better Auth (email/password + org management)
  • Jobs: BullMQ + Redis
  • Storage: S3-compatible (MinIO for self-hosted, AWS S3 for cloud)
  • AI: Anthropic Claude · OpenAI · Ollama (local)
  • E-signature: DocuSeal
  • Observability: OpenTelemetry (opt-in OTLP traces, Jaeger-ready)

Self-hosting

See docker-compose.yml for the full stack.

Minimum environment variables:

DATABASE_URL=postgresql://...
BETTER_AUTH_SECRET=<random 32+ char string>
BETTER_AUTH_URL=http://localhost:3000
STORAGE_BUCKET=aakd
STORAGE_ACCESS_KEY=...
STORAGE_SECRET_KEY=...
STORAGE_ENDPOINT=http://minio:9000   # leave empty for AWS S3
REDIS_URL=redis://redis:6379

Optional (AI features degrade gracefully without these):

ANTHROPIC_API_KEY=sk-ant-...
OPENAI_API_KEY=sk-...

Development

pnpm install
pnpm dev            # Next.js on :3000
pnpm worker:dev     # BullMQ worker (watch mode)
pnpm db:migrate     # run Prisma migrations
pnpm db:studio      # Prisma Studio on :5555
pnpm test           # unit + integration tests
pnpm typecheck      # TypeScript across all packages

License

AGPL-3.0 — free for self-hosted use. Commercial licenses available for white-labeling and SaaS redistribution.


Contributing

PRs welcome. Read CLAUDE.md for the architecture decisions and coding conventions before contributing.

Reviews (0)

No results found