explaingit

rabestro/paperless-genie

Analysis updated 2026-05-18

6PythonAudience · ops devopsComplexity · 3/5LicenseSetup · moderate

TLDR

Paperless Genie is a Telegram bot that lets you search, upload, and organize your Paperless-ngx document archive by chatting with an AI agent.

Mindmap

mindmap
  root((Paperless Genie))
    What it does
      Chat with document archive
      Upload and auto-tag files
      Search and totals
    Tech stack
      Python
      Gemini API
      Paperless-ngx MCP
      Telegram bot
    Use cases
      Find a specific document
      Sum expenses by year
      Auto archive uploads
    Audience
      Paperless-ngx users
      Self hosters

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Search a personal Paperless-ngx archive by chatting in Telegram instead of using the web interface.

USE CASE 2

Ask for totals and comparisons across many documents, like yearly utility spending.

USE CASE 3

Upload a scanned document from a phone and have it auto-tagged and filed.

What is it built with?

PythonTelegram Bot APIGemini APIPaperless-ngxDockerNode.js

How does it compare?

rabestro/paperless-genieaclark4life/home-depot-crawlaetheria-labs1/storefront-skills
Stars666
LanguagePythonPythonPython
Last pushed2014-08-10
MaintenanceDormant
Setup difficultymoderatemoderateeasy
Complexity3/52/53/5
Audienceops devopsdeveloperpm founder

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Requires a running Paperless-ngx instance, a Gemini API key, and a separate Node.js MCP server installed.

You can use, modify, and self-host this freely, but if you run a modified version as a network service, you must publish your changed source code too.

In plain English

Paperless Genie is a Telegram bot that acts as a conversational front end for Paperless-ngx, a self-hosted document archive. Instead of opening a website to search or upload paperwork, you talk to a bot in Telegram, and it does the work through Google's Gemini AI models via the Google Antigravity SDK. You can ask it questions in plain language, such as finding a specific passport scan or listing contracts from a certain year. Because an AI agent handles each query, it can reason across many documents at once, for example totaling a year of utility bills, and it remembers the conversation so you can follow up with something like a comparison to the previous year. When you upload a document such as a PDF or photo, the bot reads its contents, suggests a title, date, correspondent, type, and tags, uploads it to Paperless-ngx, waits for text recognition to finish, and writes a note describing what it found. It replies in whatever language you write to it in. The bot supports multiple people sharing one Telegram bot: each Telegram user is mapped to their own Paperless-ngx access token, so someone can only see or edit documents that token allows. Documents and questions are sent to Google's Gemini API for processing, so this is not a fully offline tool, and sensitive material is exposed to that outside service. The bot itself keeps no database of its own, conversation history exists only in memory while it runs, and uploaded files are handled temporarily and then deleted. Setup involves copying an example environment file and filling in a Telegram bot token, a Paperless-ngx URL, a Gemini API key, and a mapping of user IDs to their tokens. It relies on a separate Paperless MCP server, installable through Node.js, and the project provides tooling for local development with mise and uv, plus Docker Compose and systemd options for running it continuously on a server. The project is licensed under the GNU Affero General Public License v3.0, which requires that any modified version run as a network service must also share its source code publicly.

Copy-paste prompts

Prompt 1
Help me write the .env file for Paperless Genie with my Telegram token, Paperless URL, and Gemini key.
Prompt 2
Explain how Paperless Genie maps Telegram users to their own Paperless-ngx tokens.
Prompt 3
Set up Paperless Genie with Docker Compose and show me how to view its logs.
Prompt 4
Walk me through how Paperless Genie processes an uploaded document from Telegram to Paperless-ngx.

Frequently asked questions

What is paperless-genie?

Paperless Genie is a Telegram bot that lets you search, upload, and organize your Paperless-ngx document archive by chatting with an AI agent.

What language is paperless-genie written in?

Mainly Python. The stack also includes Python, Telegram Bot API, Gemini API.

What license does paperless-genie use?

You can use, modify, and self-host this freely, but if you run a modified version as a network service, you must publish your changed source code too.

How hard is paperless-genie to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is paperless-genie for?

Mainly ops devops.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.