WZ-IT Logo

Paperless-AI Installation: AI-Powered Document Analysis for Paperless-NGX

Timo Wevelsiep
Timo Wevelsiep
Updated: 18.08.2026
#PaperlessAI #PaperlessNGX #AI #Docker #DocumentManagement #OpenAI #Ollama

Editorial note: The information in this article was compiled to the best of our knowledge at the time of publication. Technical details, prices, versions, licensing terms, and external content may change. Please verify the information provided independently, particularly before making business-critical or security-related decisions. This article does not replace individual professional, legal, or tax advice.

Paperless-AI Installation: AI-Powered Document Analysis for Paperless-NGX

Set up Paperless and AI around your documents?

WZ-IT assesses whether Paperless-ngx's native AI integration or Paperless-AI fits the existing environment and handles deployment, hardening and operations. For sensitive documents, AI Cube Pro can provide the local model platform inside your own network.

Implement Paperless AI · Explore AI Cube Pro · Schedule an initial consultation

Paperless-AI is an AI-powered extension for Paperless-NGX that takes your document management to the next level. With automatic document classification, intelligent tagging, and semantic search, you can manage your documents even more efficiently. In this guide, we'll show you how to add Paperless-AI to your existing Paperless-NGX installation.

Prerequisite: This guide assumes you already have Paperless-NGX installed. If not, first follow our Paperless-NGX installation guide.

Faster with our installer script! We've created a free one-liner installer script for Paperless-AI: Paperless-AI Installer Script - Installation with a single command including automatic Docker setup and optional HTTPS via Caddy.

As of August 2026: please read this first

Two things have changed since this post was published.

Paperless-ngx now ships AI itself. The configuration knows PAPERLESS_AI_ENABLED, PAPERLESS_AI_LLM_BACKEND and PAPERLESS_AI_LLM_EMBEDDING_BACKEND - including Ollama as a local backend, chat with documents and similarity search. If you are starting fresh, check the native integration first; for many use cases you will not need an additional project.

The Paperless-AI project is currently unmaintained. The maintainer writes in the repository: "This repo is currently not maintained" - he is working on a rewrite but explicitly leaves open whether he will finish it or keep the project going, partly because of that native integration. The last release is v3.0.9 from 4 November 2025.

The guide below still works. If you plan to run Paperless-AI in production you should know its maintenance status - and if you want to weigh up what makes more sense in your case: let's talk.

Table of Contents

Features of Paperless-AI

Paperless-AI extends Paperless-NGX with impressive AI capabilities:

Automatic Document Processing

  • Automatically detects new documents
  • Analyzes content using AI models
  • Automatically assigns title, tags, document type, and correspondent

RAG-Based AI Chat

Paperless-AI Chat Interface

Ask natural language questions about your documents:

  • "When did I sign my rental agreement?"
  • "What was the amount of the last electricity bill?"
  • "Which documents mention my health insurance?"

Flexible Configuration

Paperless-AI Document Settings
  • Enable only the features you want
  • Define rules for document processing
  • Supports various AI models

Paperless without the setup and maintenance hassle?

Installation is just the start - updates, backups, SSL and security come after. We host and operate Paperless and over 52 other open-source apps GDPR-compliant in the EU, including CVE monitoring.

See Managed Open Source

Requirements

  • Ubuntu Server (tested with 24.04)
  • Working Paperless-NGX installation
  • Docker and Docker Compose

Installation

1. Navigate to the Paperless directory

cd /opt/paperless

2. Clone and start Paperless-AI

sudo git clone https://github.com/clusterzx/paperless-ai.git
cd paperless-ai
sudo docker compose up -d

That's it! Paperless-AI is now running on port 3000.

3. Get API key from Paperless-NGX

Log into your Paperless-NGX installation and navigate to your profile settings. There you'll find your API token, which you'll need for connecting to Paperless-AI.

Set up HTTPS with Caddy

Since you're already running Paperless-NGX with Caddy, we'll add Paperless-AI as a subdomain.

1. Create DNS record

Create an A record for your subdomain:

  • Subdomain: paperless-ai
  • Type: A
  • Target: Your server's IP address

2. Extend Caddy configuration

Edit your existing Caddy configuration:

sudo nano /opt/paperless/caddy/Caddyfile

Add the following section:

# Paperless-AI subdomain
paperless-ai.your-domain.com {
    reverse_proxy localhost:3000
}

3. Reload Caddy

sudo systemctl reload caddy

Caddy will automatically create an SSL certificate for the new subdomain.

Initial Configuration

1. Open Paperless-AI Setup Wizard

Open in your browser:

https://paperless-ai.your-domain.com

The setup wizard starts automatically on first access.

2. Set up Paperless-NGX connection

Paperless-AI API Settings

In the setup wizard:

  • Paperless URL: Enter the HTTPS URL of your Paperless-NGX installation
    Example: https://paperless.your-domain.com
  • Username: Your Paperless-NGX username
  • API Token: Paste the previously copied API token

3. Configure AI model

Choose your preferred AI model:

Option 1: OpenAI

  • Model: gpt-4o-mini (cost-effective and efficient)
  • API Key: Enter your OpenAI API key

Option 2: Other supported providers

  • DeepSeek, OpenRouter, Perplexity, Together.ai and many more
  • Local models with Ollama for maximum privacy

Privacy tip: For sensitive documents, we recommend using local AI models. We also offer dedicated AI servers where you can run your own models.

4. Enable features

Paperless-AI Dashboard

After successful setup, you'll reach the dashboard. Enable the desired features:

  • Title Generation: Automatic title assignment based on document content
  • Tag Assignment: Intelligent tag assignment
  • Document Type Classification: Automatic document type detection
  • Correspondent Detection: Detection of senders/correspondents

Restart container (important!)

After initial configuration, the container must be restarted once to build the RAG index:

cd /opt/paperless/paperless-ai
sudo docker compose restart

Usage

Automatic Processing

As soon as new documents arrive in Paperless-NGX, they are automatically analyzed by Paperless-AI and enriched with metadata.

AI Chat for Documents

Paperless-AI Chat
  1. Open a document in Paperless-NGX
  2. Click the "AI Chat" button
  3. Ask questions about the document content

Manual Processing

For sensitive documents, you can manually select documents for processing at https://paperless-ai.your-domain.com/manual.

Operation Tips

1. Define rules

You can create rules to control which documents are processed:

  • Process only specific tags
  • Exclude documents with sensitive information
  • Automatic actions for certain document types

2. Optimize performance

  • Use gpt-4o-mini for good value
  • For many documents: Enable batch processing in settings
  • Local models: At least 8GB RAM for optimal performance

3. Monitoring

# View logs
sudo docker compose logs -f

# Check container status
sudo docker ps

Troubleshooting

Connection to Paperless-NGX fails

  • Check if the URL is correct (with https://)
  • Ensure the API token is valid
  • Check firewall rules

AI model not responding

  • Check API key and credit
  • Check logs: sudo docker compose logs -f

Container won't start

# Check permissions
sudo chown -R 1000:1000 /opt/paperless/paperless-ai

# Restart container
sudo docker compose down
sudo docker compose up -d

Conclusion

With Paperless-AI, you transform your Paperless-NGX installation into an intelligent document management system. AI-powered analysis and categorization saves time and makes your documents even more discoverable through semantic search.

Want to use Paperless-AI professionally in your company? We support you with installation, configuration, and operations - including local AI models on dedicated servers.


🚀 Local AI Inference with AI Cube

For maximum data sovereignty and performance, we recommend AI Cube Pro - a fully preconfigured platform for local LLM inference:

A fit for document AI and RAG setups:

  • No cloud dependency - the documents stay inside your network
  • Pre-installed software - Ollama, vLLM and, on request, Open WebUI already configured
  • Plug & play - connect, switch on, get started
  • Configured and commissioned in Germany - support and maintenance from a single source

The variants:

  • AI Cube Pro Managed - NVIDIA GB10, 128 GB unified memory, from EUR 899 excl. VAT per month plus one-time provisioning and initial setup with a six-month minimum term
  • AI Cube Custom - free choice of components for larger models or many concurrent users

Learn more about AI Cube Pro


Schedule consultation now

Next step

Have your open-source software managed?

Over 52 managed applications - from Paperless to Nextcloud to n8n. You use it, we run it: updates, security and availability from one source, hosted in German/EU data centers.

Request managed hosting

Read next: Installing Paperless-NGX · Running n8n in production · Setting up Twenty CRM

Enquiry

Build the right document AI setup for Paperless-ngx

We assess whether Paperless-ngx's native AI integration or Paperless-AI fits your existing environment, then implement document analysis, RAG, and production operations if required.

What do you want to achieve with Paperless and AI?

How should we get back to you?
Timo Wevelsiep

Written by

Timo Wevelsiep

Co-Founder & CEO

Co-Founder of WZ-IT. Specialized in cloud infrastructure, open-source platforms and managed services for SMEs and enterprise clients worldwide.

LinkedIn

Let's Talk About Your Idea

Whether a specific IT challenge or just an idea - we look forward to the exchange. In a brief conversation, we'll evaluate together if and how your project fits with WZ-IT.

Arrange a callback

Callback

Arrange a callback

Leave your number and we will call back — at the latest on the next business day.

For a longer conversation you can book an appointment instead.

Companies worldwide trust WZ-IT

  • ml&s
  • Rekorder
  • Keymate
  • Führerscheinmacher
  • SolidProof
  • ARGE
  • Boese VA
  • nextGYM
  • Maho Management
  • Golem.de
  • Millenium
  • Paritel
  • Yonju
  • EVADXB
  • Mr. Clipart
  • Aphy AG
  • Negosh
  • ABCO Water Systems
1/3 - Topic Selection33%

What is your inquiry about?

First select the service area that best matches your project.