Dify QR Code Scanner Plugin

Decode every QR code in a user-uploaded image straight inside your Dify plugin runtime. No vision LLM, no API key and no third-party service required.

Install from Dify Marketplace

Executes in Dify's Python 3.12 plugin runtime (amd64 and arm64, 512 MiB). No API key required.

Open Dify Marketplace
  1. 1

    Inside Dify, navigate to Plugins → Marketplace and search for QR Code & Barcode Scanner.

  2. 2

    Click Install. Signed Marketplace packages run on Dify Cloud and self-hosted setups with default configuration.

  3. 3

    Place Scan QR codes and barcodes (scan_image) into a workflow or agent and bind an uploaded image file.

Fetches the uploaded image from Dify's file service, persists nothing and forwards images to no external endpoint.

Read uploaded QR codes inside Dify workflows

Replace vision-model guesswork with exact local decoding, typed output variables and clean error branching.

Workflows & Agent uploads

Attach Scan QR codes and barcodes (scan_image) to PNG, JPEG, WebP or GIF uploads up to 16 MiB, 4,096 px per side and 16 MP.

texts, count & complete variables

Emits a summary, unmodified JSON report and workflow variables (texts, count, complete) while keeping decoded text strictly as data.

QRS- failure branching

Blank images return count 0 cleanly; corrupt or oversized uploads raise a QRS- error code for clean workflow failure routing.

Test a QR image in Dify

Save a known reference image, execute the workflow tool and confirm the decoded string character for character.

qr-reference.png

Create a text QR code encoding https://qrcode-ai.com/ and save it as qr-reference.png.

Run scan_image in Dify

Text
# Tool: Scan QR codes and barcodes (scan_image)
image:     qr-reference.png (user upload)
profile:   fast   # or full for artistic QR codes
budget_ms: 0
# Output -> texts: ["https://qrcode-ai.com/"], count: 1, complete: true
Expected result · QR code
https://qrcode-ai.com/

Dify decodes the uploaded image locally inside the plugin runtime and populates texts with the exact QR URL without calling an LLM.

Sample output for qr-reference.png.

Dify QR Code Scanner plugin questions

Marketplace install, self-hosted .difypkg builds, tool outputs, caps and privacy.

In Dify, go to Plugins → Marketplace, search for QR Code & Barcode Scanner and click Install. You can also check the official page on Dify Marketplace.

No. The open-source Rust/Python engine runs locally inside Dify's Python 3.12 plugin runtime, so decoding needs no vision model, no QR Code AI account and no external API key.

Yes. Build a .difypkg archive from the repo with dify plugin package ./qrcode-barcode-scanner-dify, add FORCE_VERIFYING_SIGNATURE=false to docker/.env for unsigned local packages, restart Dify and upload it via Install plugin → Local package file.

It outputs a one-line text summary, the unchanged engine JSON report and three workflow variables: texts (decoded strings), count (total codes found) and complete (false when budget_ms stops decoding early).

One PNG, JPEG, WebP or GIF upload per call, capped at 16 MiB, 4,096 pixels per side and 16 million total pixels. Oversized or corrupt files fail with a QRS- error code so downstream nodes can handle them on a failure branch.

No. It reads the file from Dify's file service, decodes locally inside the plugin runtime, saves nothing and never opens decoded URLs. Treat decoded text strictly as data rather than instructions.

Yes. Both the plugin source and current PyPI engine wheel are free and MIT-licensed, completely separate from QR Code AI generation credits or paid plans.

Dify setup and QR Code Scanner references

Check the official listing and README for installation steps, upload caps and supported formats.