paperless-ngx-tools
Manage documents in Paperless-ngx - search, upload, tag, and retrieve.
Manage documents in Paperless-ngx - search, upload, tag, and retrieve.
Real data. Real impact.
Growing
Developers
Per week
Open source
Skills give you superpowers. Install in 30 seconds.
Document management via Paperless-ngx REST API.
Set environment variables in
~/.clawdbot/clawdbot.json:
{ "env": { "PAPERLESS_URL": "http://your-paperless-host:8000", "PAPERLESS_TOKEN": "your-api-token" } }
Or configure via the skills entry (allows using
apiKey shorthand):
{ "skills": { "entries": { "paperless-ngx": { "env": { "PAPERLESS_URL": "http://your-paperless-host:8000" }, "apiKey": "your-api-token" } } } }
Get your API token from Paperless web UI: Settings → Users & Groups → [user] → Generate Token.
| Task | Command |
|---|---|
| Search documents | |
| List recent | |
| Get document | |
| Upload document | |
| Download PDF | |
| List tags | |
| List types | |
| List correspondents | |
All scripts are in
{baseDir}/scripts/.
# Full-text search node {baseDir}/scripts/search.mjs "electricity bill december"Filter by tag
node {baseDir}/scripts/search.mjs --tag "tax-deductible"
Filter by document type
node {baseDir}/scripts/search.mjs --type "Invoice"
Filter by correspondent
node {baseDir}/scripts/search.mjs --correspondent "AGL"
Combine filters
node {baseDir}/scripts/search.mjs "2025" --tag "unpaid" --type "Invoice"
# Metadata only node {baseDir}/scripts/get.mjs 28Include OCR text content
node {baseDir}/scripts/get.mjs 28 --content
Full content (no truncation)
node {baseDir}/scripts/get.mjs 28 --content --full
# Basic upload (title auto-detected) node {baseDir}/scripts/upload.mjs /path/to/invoice.pdfWith metadata
node {baseDir}/scripts/upload.mjs /path/to/invoice.pdf
--title "AGL Electricity Jan 2026"
--tags "unpaid,utility"
--type "Invoice"
--correspondent "AGL"
--created "2026-01-15"
# Download to current directory node {baseDir}/scripts/download.mjs 28Specify output path
node {baseDir}/scripts/download.mjs 28 --output ~/Downloads/document.pdf
Get original (not archived/OCR'd version)
node {baseDir}/scripts/download.mjs 28 --original
# List all tags node {baseDir}/scripts/tags.mjsList document types
node {baseDir}/scripts/types.mjs
List correspondents
node {baseDir}/scripts/correspondents.mjs
Create new tag
node {baseDir}/scripts/tags.mjs --create "new-tag-name"
Create new correspondent
node {baseDir}/scripts/correspondents.mjs --create "New Company Name"
All scripts output JSON for easy parsing. Use
jq for formatting:
node {baseDir}/scripts/search.mjs "invoice" | jq '.results[] | {id, title, created}'
For complex queries or bulk operations, see references/api.md for direct API access patterns.
"PAPERLESS_URL not set" — Add to
~/.clawdbot/clawdbot.json env section or export in shell.
"401 Unauthorized" — Check PAPERLESS_TOKEN is valid. Regenerate in Paperless UI if needed.
"Connection refused" — Verify Paperless is running and URL is correct (include port).
Upload fails silently — Check Paperless logs; file may be duplicate or unsupported format.
No automatic installation available. Please visit the source repository for installation instructions.
View Installation Instructions1,500+ AI skills, agents & workflows. Install in 30 seconds. Part of the Torly.ai family.
© 2026 Torly.ai. All rights reserved.