← Back to Leaderboard
Pclusterzx

clusterzx/paperless-ai

Self-hosted AI document archive and Paperless-ngx companion for OCR, filing, and cited Q&A.

Open-Source AI AppQuickstart ↓
Engineering Health (Methodology)
A+ · 91/100
Maintenance Activity
● Updated yesterday
Latest Release
v4.9.0
Commercial License Check
MIT · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption16/25
Release Cadence20/20
License Clarity20/20
DockerSelf-HostedLocal AIMCPGPUAPI
Total Stars
★ 6,208
24h Growth
+8
7d Growth
+39
Forks
342

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

clusterzx/paperless-ai Star History (2024-12-01 - 2026-12-04) ALL-TIME STAR HISTORY (2024-12 – 2026-12) +6.2k in 733d · avg +8/day 6.6k 3.3k 0 2024-12-01: ★ 12025-01-18: ★ 1,3312025-03-08: ★ 2,3382025-04-26: ★ 2,8592025-06-14: ★ 3,4152025-08-02: ★ 3,8062025-09-20: ★ 4,0972025-11-08: ★ 4,3912025-12-27: ★ 4,7182026-02-14: ★ 5,1032026-04-04: ★ 5,4312026-05-23: ★ 5,5922026-07-11: ★ 5,7392026-08-29: ★ 5,8642026-10-17: ★ 5,9422026-12-04: ★ 6,208 ★ 6.2k 2024-12 2025-12 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

Paperless-AI is a TypeScript application with two archive modes. In companion mode, it connects to Paperless-ngx through the archive API and processes documents on a schedule or when a Paperless-ngx workflow triggers it. In standalone mode, the built-in archive owns intake and document management. Scans can go through OCR before metadata analysis, while archive Q&A uses a separate retrieval path combining keyword and vector search.

The package defines separate server and web builds. The server stack includes Fastify, Zod, Swagger, and better-sqlite3; the manifest also includes PDFium bindings, Sharp, and ONNX Runtime for Node. The Paperless-ngx-compatible API is a client integration surface, separate from MCP. MCP exposes archive operations to agents, including writes, with permissions, library scope, and rate limits set per API key.

Key Capabilities & Differentiators

The metadata pipeline can assign titles, tags, correspondents, and document types, with controls for trigger and exclusion tags, existing vocabularies, and per-document-kind prompt rules. AI providers include OpenAI, Anthropic Claude, Azure OpenAI, local Ollama, and OpenAI-compatible endpoints. PaddleOCR can recognize text from poor scans and optionally embed it in a searchable PDF. Archive Q&A retrieves passages through hybrid search and cites source documents.

The built-in archive accepts PDFs, images, text, email, and Office files, with bundled LibreOffice for the latter. Intake is available through uploads, watch folders, email, WebDAV, and phones. Versions, trash, and library roles make this a document management system rather than just an annotation layer. Rule-driven workflows can change metadata, send email, or call webhooks, with test runs and undo. Document appointments and deadlines can also be exposed as an iCal subscription.

Trade-offs & Limitations

Compared with Paperless-ngx alone, companion mode adds AI metadata and cited Q&A without requiring an archive migration, but it introduces another service, an API credential, and outputs that should be checked before unattended filing. Restricting classification to existing metadata and routing uncertain cases to manual review can limit taxonomy drift. Standalone mode removes the separate Paperless-ngx service, but puts intake, stored documents, permissions, and recovery under one application's operational responsibility.

Local inference keeps document processing under your control, at the cost of provisioning compute and testing throughput; a hosted provider shifts model operation off the host but can introduce usage charges and send document content outside your network. For migration, test the specific clients, filters, and workflows you depend on rather than equating a compatible API with full parity. Start MCP keys with the least privilege needed, since the protocol can modify documents as well as retrieve them.

Hardware & Deployment Guide

Docker Compose is the direct deployment path: build from the checkout or use clusterzx/paperless-ai:latest; choose latest-cuda for NVIDIA GPU OCR. Persist /app/data, expose port 3000 as needed, and use the setup wizard to select the archive and AI provider. The Node package requires Node.js 22.12 or newer. For a host-side Ollama service, the Compose example maps host.docker.internal to host-gateway. Complete setup before allowing access from other networks, and keep the service on a LAN or behind a VPN or authenticating reverse proxy.

Local PaddleOCR plus Ollama avoids a cloud inference endpoint; hosted AI or vision providers change that data boundary. Size the deployment using representative documents, models, and concurrency rather than a fixed VRAM target. v4.8.2 added optional vision OCR through Ollama or an OpenAI-compatible API without changing the PaddleOCR default. v4.8.3 added custom_field_query to GET /ngx/api/documents/. v4.8.4 added a vision OCR maximum page side of 2200 px by default and retries at smaller sizes after GPU out-of-memory errors, reusing the successful size on subsequent pages.

Processing controls: Scheduled or workflow-triggered runs can honor trigger and exclusion tags, restrict outputs to existing tags, correspondents, and document types, and apply per-document-kind prompt rules.
OCR pipeline: PaddleOCR runs on CPU or NVIDIA GPU and can embed recognized text in searchable PDFs; optional vision OCR uses Ollama or an OpenAI-compatible endpoint.
Archive retrieval: Hybrid keyword and vector search supports natural-language questions with source citations, while structured queries can filter by metadata such as tag and creation date.
Standalone intake: Uploads, watch folders, email, WebDAV, and phone intake feed an archive with versions, trash, and library roles; bundled LibreOffice handles Office documents.
Agent access: MCP exposes search, read, question answering, modification, and intake, with per-key permissions, library scope, and rate limits.
Migration compatibility: Paperless-ngx migration can preserve document IDs; v4.8.3 adds typed AND/OR/NOT custom-field filtering to the compatible document API.
Best For

Households or teams that want to automate scanned-document intake, standardize metadata, and ask questions with traceable sources, while keeping the option to use an existing Paperless-ngx archive or move to a standalone one.

Skip If

Existing archive search and rules already suffice, or you need a fully managed service, verified drop-in API parity, or a deployment you cannot adequately isolate and operate.

Reviewed on 2026-12-02 · Grounded in GitHub README, root file tree & releases · Newer release v4.9.0 (2026-12-02) shipped after this reviewMethodology

Quick Start & Installation

DockerSelf-HostedLocal AIMCP
docker compose up -d

Comparison vs. Top Chat UI & AI Apps Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
paperless-ai ★6.2k+39TypeScriptMITSelf-hosted AI document archive and Paperless-ngx companion for OCR, filing, and
cherry-studio54.1k+204TypeScriptAGPL-3.0Electron AI workspace for comparing cloud and local models, running agents, and
Dayflow7.5k+42SwiftMITLocal-first macOS screen capture that builds a work journal without manual timer
chatbox42.6k+66TypeScriptGPL-3.0Electron chat client for switching between cloud APIs and local Ollama models

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/clusterzx/paperless-ai.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

clusterzx/paperless-ai Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about paperless-ai

How do I integrate Paperless-AI with Paperless-ngx, and can I migrate later?

To keep Paperless-ngx as your archive, configure its API URL and token, then run metadata processing on a schedule or trigger it from a Paperless-ngx workflow. To replace it, select the built-in archive. Migration can preserve document IDs, and the compatible API supports Paperless-ngx mobile apps. Test your own scripts before cutover rather than assuming full endpoint parity.

Is a GPU required, and how should I size RAM and VRAM?

No. PaddleOCR runs locally on CPU, with an optional NVIDIA GPU image. A local Ollama model has its own compute requirements, separate from OCR. No fixed RAM or VRAM minimum is established here: size the host against representative scans, model choice, and concurrent jobs. If you use vision OCR on a memory-constrained GPU, v4.8.4 can retry at a smaller page size.

Can we self-host it commercially, and what does that mean for compliance?

Yes. The project's MIT license permits commercial use; if you redistribute it, retain the required copyright and license notices. Review third-party libraries, models, and provider terms separately. Self-hosting the archive does not keep all processing local if you configure an external AI or vision endpoint; check that data path against your retention and privacy requirements.

When should I choose this over running Paperless-ngx alone?

Stay with Paperless-ngx alone if your existing search, tagging, and workflows already meet your needs. Add Paperless-AI in companion mode if you want AI-assisted metadata, cited archive Q&A, or MCP access without moving documents. Choose the built-in archive when you also want Paperless-AI to own intake and storage, and have verified the clients and scripts you rely on.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining clusterzx/paperless-ai? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature clusterzx/paperless-ai on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare