Paperless-AI logo

Paperless-AI

A free, open-source (MIT) add-on for Paperless-ngx that titles, tags and files your documents with AI, reads bad scans with local OCR and answers questions about your whole archive with cited sources, using OpenAI, Claude, Azure or a fully local Ollama model.

Last verified: November 21, 2026
Alternative to: Paperless-ngx's built-in AI features
Paperless-AI app screenshot

Short description

Paperless-AI adds AI to Paperless-ngx, the self-hosted document archive. It runs in its own Docker container next to Paperless-ngx and talks to it through the Paperless API. When a new document comes in, it fills in the title, tags, correspondent, document type, date and custom fields. That happens on a schedule, or straight away if a Paperless workflow sends the document to its webhook.

The other half is "Ask your archive". You type a question such as "What was the amount of the last electricity bill?" and get an answer that streams in and names the documents it came from. Search mixes keyword matching with vector search (matching by meaning), and the default embedding model runs on your CPU. Since v4.1 it also reads scans and photos with PaddleOCR on your own machine, and it only swaps out the Paperless text when the new text reads better.

You can point it at OpenAI, Anthropic (Claude), Azure OpenAI, Ollama or any OpenAI-compatible API, so the whole setup can stay on your own hardware. Version 4.0, released on November 10, 2026, rewrote the project as a single Node.js app with a new web interface. OCR came in 4.1, two-factor sign-in and a deadline calendar in 4.2, single sign-on in 4.3 and prompt rules in 4.4. It's a hobby project run by one developer in Germany who goes by clusterzx, and the Docker image has been pulled more than 8 million times.

Features

  • Automatic metadata: Fills in title, tags, correspondent, document type, date and custom fields (text, number, monetary, date, select and more) for new documents, using structured output.

  • Instant or scheduled processing: Runs on a scan interval, or instantly when a Paperless "Document Added" workflow calls its webhook. Trigger tags limit it to tagged documents, and exclude tags make it skip documents.

  • Ask your archive: Answers plain-language questions across all your documents with cited sources and follow-up questions. "How many" questions get exact counts from Paperless, and a search-only mode costs nothing in AI usage.

  • Local OCR: PaddleOCR reads scans and photos before the AI step, on the CPU or an NVIDIA GPU. By default it runs on documents with no text or garbled text (a quality score below 50), and it replaces the Paperless text only when its own text scores higher, with undo. A page takes about 1 to 2 seconds on a 4-core CPU.

  • Prompt rules: Uses a different prompt and settings for each kind of document, matched by tags, document type, correspondent, storage path, owner or a custom field. Each rule can pick which fields the AI fills, which tags and types it may use, and a different model.

  • Prompt tools: A prompt wizard with a live preview, a playground for testing prompts on real documents, and a library of tested prompts rated per model.

  • Deadline calendar: Optionally picks out appointments, payment due dates, cancellation deadlines and renewal dates and shows them on a calendar page, with a private iCal link you can add to your calendar app.

  • Review and undo: Manual review, chat with a single document, a history that can undo AI changes, a live dashboard, logs and diagnostics.

  • Limits on the AI: Can be held to your existing tags, correspondents and document types. It can also pull extra context from an external API, such as your customer list.

  • Sign-in options: Two-factor authentication with recovery codes, single sign-on through any OpenID Connect provider, and API keys for webhooks and scripts.

  • Handles provider limits: Processes documents in parallel, retries failures, and pauses the queue when it hits a rate limit instead of failing documents.

Pricing

  • Free and open source: MIT licence. There's no paid plan and no hosted version, so you run it yourself.

  • AI usage: You pay your AI provider (OpenAI, Anthropic, Azure or another API) for what you use, or nothing extra if you run models locally with Ollama. The repo doesn't list provider prices.

  • Donations: The developer takes support through Patreon, PayPal, Buy Me a Coffee and Ko-fi.

Integrations

  • Paperless-ngx: Works with Paperless-ngx 2.x and 3.x through a dedicated API user that can view and change documents, tags, correspondents, document types and custom fields.

  • AI providers: OpenAI, Anthropic (Claude), Azure OpenAI, Ollama and any OpenAI-compatible API, including DeepSeek, OpenRouter, LiteLLM, vLLM, LM Studio, Gemini, Together and Perplexity. Reasoning models work too.

  • Embedding models: A built-in local model (multilingual-e5-small, about 120 MB, 100+ languages), Ollama models such as nomic-embed-text or bge-m3, or OpenAI-style embeddings. Embeddings are what let it search by meaning; you can also turn them off and use keyword search only.

  • Single sign-on providers: Authentik, Keycloak, Authelia, Zitadel, Pocket ID, Kanidm, Entra ID, Google and other OpenID Connect providers.

  • Calendar apps: Google Calendar, Apple Calendar and Outlook can subscribe to the private iCal feed.

  • Paperless workflows: A webhook action in Paperless sends each new document over for instant processing.

  • NVIDIA GPUs: A CUDA image runs OCR on an NVIDIA GPU (driver 580 or newer with the NVIDIA Container Toolkit) and falls back to the CPU when there's no GPU.

  • REST API: Documented at /api-docs (OpenAPI). The Paperless-AI browser extension and user scripts use it.

Platforms

  • Self-hosted
  • web
  • browser extension
  • API
❤️

What users love about Paperless-AI

  • Sorting happens on its own: One user set it up the same week v4 came out and says their documents now get sorted automatically. Long-time users say they're glad it's being kept up to date.

  • The archive chat becomes the main way in: One user says Paperless-ngx is now just the backend for them, because they find everything through Paperless-AI's chat.

  • Does more than the AI in Paperless 3: Users who tried the AI built into Paperless-ngx 3 found it slower and less useful, even with paid OpenAI tokens, and kept Paperless-AI. One runs it on a low-power home server and lets it work overnight.

  • Reliable with small local models: Users report consistent tagging with models like Qwen 2.5 7B (at temperature 0.1) or Qwen3 8B, and near-instant results on a strong GPU once the prompt was tuned.

  • Holds up on big archives: A user running it for projects with thousands of documents and hundreds of thousands of pages singles out the API. Others were pleased with the built-in OCR that writes clean text back into Paperless, and with the prompt wizard.

😕

What users complain about Paperless-AI

  • One maintainer, and a long quiet spell: The project went quiet for months before v4, so some users assumed it was abandoned and moved to a fork or a different tool. Others say they won't lean hard on a one-person project that could stop at any time.

  • Trust after the 3.x security hole: Older versions had a critical flaw that let anyone take over an instance, and v4 was written with a lot of help from AI coding tools. Users with sensitive documents ask how they can know the code is safe without auditing it themselves.

  • Local models need tuning and hardware: One user spent about 20 test documents tweaking the prompt on an RTX 4090 before results were consistent. On a weak home server, a single document can take a few minutes.

💡

Frequently asked questions about Paperless-AI

Is Paperless-AI free?▼

Yes. Paperless-AI is open source under the MIT licence, with no paid plan or hosted version. You run it yourself with Docker next to Paperless-ngx. The only cost is your AI provider's usage if you use OpenAI, Claude or Azure. With Ollama on your own hardware there's no API bill.

Does Paperless-AI work with Ollama?▼

Yes, and that lets you run it fully local. Choose Ollama as the provider and enter your Ollama URL; the sample Docker setup maps host.docker.internal so the container can reach Ollama on the same machine. Paperless-AI sends a fixed context size (16,384 tokens by default) so Ollama keeps the model loaded between documents. It can also turn off "thinking" on models like qwen3 or gpt-oss, which is much faster for tagging, and unload the model when the queue is empty. Other local servers such as vLLM, llama.cpp and LM Studio connect as an OpenAI-compatible provider.

Is Paperless-AI safe to self-host?▼

Run version 4 or later. Every version up to 3.0.9 has a critical flaw (GitHub advisory GHSA-qgr5-7f3c-qqm3, CVSS score 9.8) that lets anyone who can reach the web interface take over the instance through the setup wizard, and attackers were actively using it. Version 4.0.0 fixes it. If your 3.x instance was reachable from the internet, the project says to start 4.0 with a fresh data volume instead of migrating, create a new Paperless API token and replace your AI provider keys. The developer also recommends keeping Paperless-AI on your local network or behind a VPN or a reverse proxy that requires a login. Until the first account is created, the setup wizard is open to anyone who can reach it, so don't expose a new install before setup is done.

Does Paperless-AI do OCR?▼

Yes, since version 4.1. It reads scans and photos with PaddleOCR on your own machine, on the CPU or an NVIDIA GPU, before the AI analysis. By default it only runs on documents with no text or garbled text, and it replaces the Paperless text only when the OCR result scores higher. A page takes about 1 to 2 seconds on a 4-core CPU, and the OCR models are about 20 MB.

How do I set up Paperless-AI with Docker Compose?▼

Add a paperless-ai service with the clusterzx/paperless-ai:latest image, port 3000 and a data volume mounted at /app/data, then run docker compose up -d. Open port 3000 in your browser and the setup wizard walks you through the account, the Paperless connection, the AI provider and processing options. In Paperless-ngx, create a separate user that can view and change documents and use that user's API token. For instant processing, add a Paperless workflow with a webhook pointing at /api/webhook/document.