paperless-ngx
Paperless-ngx is a self-hosted document archive that OCRs scanned paper and PDFs, indexes the text, and lets you search and organise everything with tags…
от TerminalSkills★ 221 звезда на GitHub
Установить paperless-ngx в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Paperless-ngx — self-hosted, OCR-searchable document archive
Overview
Paperless-ngx runs as a small stack (web server plus task workers in one container, a Redis-compatible broker, and a database; SQLite or PostgreSQL). Every file it receives is OCR'd and indexed; scanned or image-only files also get a searchable PDF/A archive copy next to the original. Documents get a title, a creation date, tags, a correspondent, a document type, an optional archive serial number and custom fields. Rules can assign these automatically from the document text.
An agent's job here is deployment and automation, not clicking: bring the stack up, create the organisational objects through the REST API, push documents in (API upload or the consumption folder), and query or export them. The commands were run against version 3.4.2 with the SQLite compose variant.
Instructions
Deploy with Docker Compose
Fetch the official SQLite compose files from the project repository into a new directory, then edit them:
mkdir -p ~/paperless && cd ~/paperless || exit 1
REPO_RAW=raw.githubusercontent.com/paperless-ngx/paperless-ngx/main/docker/compose
curl -fsSL -o docker-compose.yml https://$REPO_RAW/docker-compose.sqlite.yml
curl -fsSL -o docker-compose.env https://$REPO_RAW/docker-compose.env
curl -fsSL -o .env https://$REPO_RAW/.env
Edit docker-compose.yml:
- Replace
ghcr.io/paperless-ngx/paperless-ngx:latestwith a pinned tag from the project's releases page (for example3.4.2) so updates are deliberate. - Change the port mapping
"8000:8000"to"127.0.0.1:8000:8000"so only the local machine can reach it; put a TLS reverse proxy in front for remote access.
In docker-compose.env set at least these values (the secret and password below are throwaway examples; generate your own):
PAPERLESS_SECRET_KEY=k3Zp9vQ2xLw7TnR4bYd8HfJ1sUcA6eMgXo5iVtNqB0zWyPrDhE2aCjSlKm3uFvG9
PAPERLESS_TIME_ZONE=Europe/Berlin
PAPERLESS_OCR_LANGUAGE=eng
PAPERLESS_ADMIN_USER=admin
PAPERLESS_ADMIN_PASSWORD=Vf8-Qm2-Lx9-Tr4-Wn7
USERMAP_UID=1000
USERMAP_GID=1000
Generate your own secret with python3 -c "import secrets; print(secrets.token_urlsafe(64))". PAPERLESS_SECRET_KEY is required; the shipped value change-me must not stay. PAPERLESS_ADMIN_USER and PAPERLESS_ADMIN_PASSWORD create a superuser at first start (they never overwrite an existing user). Set USERMAP_UID/USERMAP_GID to the output of id -u and id -g so the host user can write into ./consume. For more than a household of documents use docker-compose.postgres.yml from the same folder instead. OCR defaults to English; add PAPERLESS_OCR_LANGUAGE=deu+eng for mixed languages.
Start it and wait for the API:
docker compose pull
docker compose up -d
until curl -s -o /dev/null http://127.0.0.1:8000/api/; do sleep 3; done
docker compose logs --tail 20 webserver
The first start takes up to a minute while migrations run. An unauthenticated GET /api/ answers with a redirect (302); that is a healthy sign.
Authenticate against the API
Exchange the admin login for a token and keep it in an environment variable:
export PAPERLESS_URL=http://127.0.0.1:8000
export PAPERLESS_TOKEN=$(curl -s -X POST $PAPERLESS_URL/api/token/ \
-H 'Content-Type: application/json' \
-d "{\"username\":\"admin\",\"password\":\"$PAPERLESS_ADMIN_PASSWORD\"}" \
| python3 -c 'import json,sys; print(json.load(sys.stdin)["token"])')
Every call then sends -H "Authorization: Token $PAPERLESS_TOKEN". Browse the full schema at $PAPERLESS_URL/api/schema/view/. For scripts, create a dedicated non-admin user in the web UI and use its token.
Create tags, correspondents, types and custom fields
AUTH="Authorization: Token $PAPERLESS_TOKEN"
JSON='Content-Type: application/json'
curl -s -X POST $PAPERLESS_URL/api/correspondents/ -H "$AUTH" -H "$JSON" \
-d '{"name":"Stadtwerke Musterhausen","match":"Stadtwerke Musterhausen","matching_algorithm":3}'
curl -s -X POST $PAPERLESS_URL/api/tags/ -H "$AUTH" -H "$JSON" -d '{"name":"utilities"}'
curl -s -X POST $PAPERLESS_URL/api/document_types/ -H "$AUTH" -H "$JSON" -d '{"name":"Invoice"}'
curl -s -X POST $PAPERLESS_URL/api/custom_fields/ -H "$AUTH" -H "$JSON" \
-d '{"name":"Amount due","data_type":"monetary"}'
Each response contains the new id. matching_algorithm values: 0 none, 1 any word, 2 all words, 3 literal phrase, 4 regex, 5 fuzzy, 6 auto (learned from your documents). With a match text, new documents containing it are assigned the object automatically. The same pattern works for /api/storage_paths/; /api/mail_accounts/, /api/mail_rules/ and /api/workflows/ also exist.
Upload documents
curl -s -X POST $PAPERLESS_URL/api/documents/post_document/ -H "$AUTH" \
-F [email protected] -F title="Stadtwerke invoice Oct 2026" \
-F correspondent=1 -F document_type=1 -F tags=1
Optional form fields: title, created, correspondent, document_type,
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- _scores.json
FAQ
Что делает скилл paperless-ngx?
Paperless-ngx is a self-hosted document archive that OCRs scanned paper and PDFs, indexes the text, and lets you search and organise everything with tags, correspondents and custom fields. Use it when the user asks to "set up a paperless office", "digitise and archive my scanned documents", "self-host a document management system", "upload PDFs through an API", "search my archive by correspondent or tag", or "script Paperless-ngx". Covers Docker Compose deployment, the consumption folder, token-authenticated REST API calls, bulk edits and export.
Как установить скилл paperless-ngx?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл paperless-ngx запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
AnthropicUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
xlsx
AnthropicUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
pptx
AnthropicUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…