clusterzx/paperless-ai
Self-hosted AI document archive and Paperless-ngx companion for OCR, filing, and cited Q&A.
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & 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.
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.
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.
Quick Start & Installation
docker compose up -d
Comparison vs. Top Chat UI & AI Apps Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| paperless-ai ★ | 6.2k | +39 | TypeScript | MIT | Self-hosted AI document archive and Paperless-ngx companion for OCR, filing, and |
| cherry-studio | 54.1k | +204 | TypeScript | AGPL-3.0 | Electron AI workspace for comparing cloud and local models, running agents, and |
| Dayflow | 7.5k | +42 | Swift | MIT | Local-first macOS screen capture that builds a work journal without manual timer |
| chatbox | 42.6k | +66 | TypeScript | GPL-3.0 | Electron 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.
curl -sL https://repoforai.com/repo/clusterzx/paperless-ai.md
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?
Is a GPU required, and how should I size RAM and VRAM?
Can we self-host it commercially, and what does that mean for compliance?
When should I choose this over running Paperless-ngx alone?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
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