[email protected]

Install Paperless-AI (Linux) – One-Liner Installer Script with Docker & Caddy HTTPS

Install Paperless-AI (Linux) – One-Liner Installer Script with Docker & Caddy HTTPS

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.

Install Paperless AI yourself or use it as an operated solution?

WZ-IT handles Paperless-AI deployment, hardening and operations on existing infrastructure. For sensitive documents, AI Cube can provide the fully preconfigured local model platform inside your own network.

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

Note (as of October 2026): Paperless-AI has not been maintained since 31 March 2026 (notice in the README); the last release is v3.0.9 from 4 November 2025. Since version 3.0.0 from 22 July 2026, Paperless-ngx ships its own AI features. For new and production installations we recommend that route: Set up Paperless-ngx AI. This guide stays online for tests and existing Paperless-AI setups.

Paperless-AI is an AI extension for Paperless-ngx that automatically analyzes incoming documents and assigns appropriate tags. Whether using OpenAI, local models with Ollama, or Azure - Paperless-AI leverages LLMs to understand document contents.

We've created a free, open-source installer script that deploys Paperless-AI with Docker in minutes. The script only asks for the installation directory and an optional domain; the Paperless-ngx connection and AI provider are configured afterwards in the Paperless-AI web interface.

Table of Contents

What You Get

Our installer script provides:

  • Automatic Docker installation - Docker and Docker Compose are installed if not present
  • Short interactive prompt - Installation directory and optional domain
  • Optional HTTPS - Caddy reverse proxy with automatic Let's Encrypt certificates
  • Web interface - Configure directly in the browser after installation
  • Test environment in minutes - Sensible defaults for evaluation and testing

Prerequisites

Before running the installer, ensure you have:

  • A Linux server (Ubuntu, Debian, CentOS, RHEL, etc.)
  • bash and curl installed (standard on most systems)
  • sudo access for Docker installation
  • Running Paperless-ngx instance with API access
  • For HTTPS: A domain name with DNS pointing to your server

Option 1: Quick Install (One Command)

If you trust the source, deploy Paperless-AI with a single command:

curl -fsSL https://raw.githubusercontent.com/wzitcom/public-scripts/main/open-source-apps/paperless-ai/install.sh | bash

For security-conscious users, download and review the script first:

# Download the installer
curl -O https://raw.githubusercontent.com/wzitcom/public-scripts/main/open-source-apps/paperless-ai/install.sh

# Review the script contents
cat install.sh

# Make it executable and run
chmod +x install.sh
./install.sh

We always recommend reviewing scripts before execution, especially when running with elevated privileges.

Installation Walkthrough

When you run the installer, you'll see an interactive setup process:

Paperless-AI Installer Terminal Output

The script guides you through:

  1. Installation directory - Where to store configuration files (default: ~/paperless-ai)
  2. Domain configuration - Optional domain for HTTPS setup

After configuration, the script:

  • Installs Docker if needed
  • Creates docker-compose.yml with your settings
  • Sets up Caddy for HTTPS (if domain provided)
  • Starts the container
  • Prints the URL and next steps (the script does not generate credentials)

Post-Installation Setup

Once installation completes, the container is running and the initial setup happens in the browser:

Paperless-AI Installation Complete

First Login

  1. Open the web interface (http://localhost:3000 or your domain)
  2. Configure your Paperless-ngx connection:
    • Paperless-ngx URL
    • API Token
  3. Set up your AI provider:
    • OpenAI API Key, or
    • Ollama connection, or
    • Other supported providers

How It Works

  1. Paperless-AI connects to your Paperless-ngx instance
  2. New documents are automatically detected
  3. The AI analyzes document content
  4. Appropriate tags are automatically assigned

Installation Files

Your installation directory contains:

File Purpose
docker-compose.yml Docker service definition
.env Environment variables
Caddyfile Caddy reverse proxy config (if using domain)

Useful Commands

Navigate to your installation directory first:

cd ~/paperless-ai

Service Management

# View logs
docker compose logs -f
docker compose logs -f paperless-ai
docker compose logs -f caddy  # If using Caddy

# Stop services
docker compose down

# Start services
docker compose up -d

# Restart services
docker compose restart

# Check status
docker compose ps

Updates

# Pull latest images and restart
docker compose pull
docker compose up -d

Uninstallation

To completely remove Paperless-AI:

cd ~/paperless-ai

# Stop and remove containers
docker compose down

# Also remove volumes (WARNING: deletes all data!)
docker compose down -v

# Remove installation directory
cd ~
rm -rf ~/paperless-ai

Troubleshooting

Port Already in Use

If port 3000 (or 80/443 when using Caddy) is in use:

# Check what's using the ports
sudo lsof -i :3000
sudo lsof -i :80
sudo lsof -i :443

SSL Certificate Issues

# Check Caddy logs
docker compose logs caddy

# Verify DNS
nslookup your-domain.com

Connection to Paperless-ngx Fails

  • Ensure Paperless-ngx is accessible from this server
  • Check firewall rules between servers
  • Verify the API token is correct

Container Won't Start

# Check container logs
docker compose logs paperless-ai

# Check container status
docker ps -a

Source Code

The installer script is open source and available on GitHub:

Feel free to review, fork, or contribute!

Disclaimer

This script is intended for quickly deploying development and testing environments. Because Paperless-AI has not been maintained since 31 March 2026, we recommend the native Paperless-ngx AI for production.

For any production deployment, please consider:

  • Proper security hardening
  • Secure storage of API keys
  • Firewall and network security rules
  • Regular backup strategies
  • Resource monitoring and alerting
  • Custom environment configurations

Need a production-ready setup? Contact WZ-IT for professional Paperless-ngx installation with AI integration and managed hosting services.

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.

Frequently Asked Questions

Answers to important questions about this topic

Companies worldwide trust WZ-IT

  • Stadtwerke Brühl
  • DGHO e.V.
  • ABCO Water Systems
  • Golem.de
  • EVADXB
  • nextGYM
  • AInergy
  • ml&s
  • Odiseo Solutions
  • Annota
  • ARGE
  • SweetConnect GmbH
  • Aphy AG
  • CORGOS
  • Rekorder
  • SolidProof
  • Yonju
  • Keymate
  • Paritel
  • Mr. Clipart
  • Millenium
  • Negosh
  • Führerscheinmacher
  • Boese VA
Read client reviews

Enquiry

Integrate Paperless document AI for production

We assess the right AI path for your Paperless-ngx version, secure the connection, and can provide local inference and ongoing operations.

  • Straight with Timo and Robin - no sales team, no pitch
  • A professional assessment of your situation
  • Concrete next steps for infrastructure, software or AI

The conversation is free and non-binding.

WZ-IT's advice on our Azure migration was technically sound and completely non-binding right from the intro call - we took away a great deal.
Jakob ÖschlbergerInno7 GmbH
Timo and Robin, founders of WZ-IT

What does your Paperless AI project look like?

WZ-IT's advice on our Azure migration was technically sound and completely non-binding right from the intro call - we took away a great deal.
Jakob ÖschlbergerInno7 GmbH