OpenClaw Barcode Scanner Plugin & Skill

Add a proper local barcode decoder to OpenClaw. It reads 16 1D and 2D barcode formats and returns exact identifiers with leading zeros intact.

Install the ClawHub plugin bundle

Requires Node.js 22.19+ or 24+.

  1. 1

    Install from ClawHub with --no-enable, check declared capabilities and re-run with --accept-capabilities if OpenClaw requests consent.

    Shell
    openclaw plugins install clawhub:@qrcode-ai-com/qrcode-barcode-scanner --no-enable
  2. 2

    Inside the installed plugin directory, run node scripts/setup.mjs to set up ./runtime, then run openclaw plugins enable qrcode-barcode-scanner.

  3. 3

    Test it out. Ask OpenClaw:

    Read the Code 128 barcode in barcode-reference.png and give me the exact value with leading zeros intact.

The bundle combines the scanner skill with stdio MCP scan_image (bytes only) and verifies ENGINE-LICENSE before loading native code.

Open bundle on ClawHub

Use a decoded barcode in an OpenClaw task

Barcode Scanner hands back exact identifiers and symbologies so OpenClaw can verify labels without guessing digits.

Extract stock labels verbatim

Read Code 128, EAN-13, UPC-A and 2D barcodes locally so digits and leading zeros stay exact instead of guessed.

MCP bytes vs local skill files

Use bundle MCP scan_image for supplied bytes, or run scripts/scan.mjs with ./runtime to scan local label files on disk.

Keep product lookups separate

Decode raw identifiers and symbologies locally without querying external retail, book or inventory databases.

Test a barcode image in OpenClaw

Provide the image, copy the prompt and check the decoded content against the original.

barcode-reference.png

Create a Code 128 barcode holding STOCK-4827 and save it as barcode-reference.png.

Ask OpenClaw to read it

Text
Read barcode-reference.png with Barcode Scanner.
Return the complete identifier as text and its format.
Preserve leading zeros. Do not run external lookups.
If the tool is unavailable or detects nothing, report that
instead of guessing.
Expected result · Code 128
STOCK-4827

Using the scanner, OpenClaw outputs the exact identifier and symbology instead of guessing.

Sample output for barcode-reference.png.

OpenClaw Barcode Scanner Plugin & Skill questions

Setup routes, barcode formats, leading zeros, local privacy and MIT licence.

Choose the ClawHub plugin bundle for both the skill and stdio MCP config sharing one ./runtime folder, or pick the standalone ClawHub skill (clawhub install qrcode-barcode-scanner) if you only want scripts/scan.mjs.

The bundle ships without precompiled engine binaries. Running node scripts/setup.mjs installs @qrcode-ai-com/qrcode-barcode-scanner-mcp with scripts disabled, verifies ENGINE-LICENSE and sets up ./runtime for both MCP and the skill helper.

It reads 16 barcode symbologies: Code 128, Code 39, Code 93, EAN-13 (including ISBN), EAN-8, UPC-A, UPC-E, ITF, Codabar, Telepen, GS1 DataBar, GS1 DataBar Expanded, Data Matrix, PDF417, Aztec and MaxiCode, plus QR codes.

Yes. content.text is always returned as a verbatim string so leading zeros stay intact, and EAN-13 reports also parse the 14-digit GS1 GTIN. The scanner makes zero network calls during decoding and never queries product or ISBN APIs.

Inside the OpenClaw bundle, MCP scan_image accepts supplied base64 image bytes only. To scan a local image file on disk inside your workspace, invoke the bundled skill helper scripts/scan.mjs with --engine-root ./runtime.

Every detected symbol returns together inside the same detections array, each labelled with its symbology and exact content.text. Check each item's symbology rather than assuming index 0 is the barcode.

Decoding runs locally on your machine using Node.js 22.19+ or 24+ (OpenClaw sends conversation text to your configured LLM). Current bundle, skill, MCP adapter and engine releases are free under the MIT licence, independent of QR Code AI paid plans.

OpenClaw setup and Barcode Scanner references

Check the official OpenClaw setup source and the MIT scanner adapter specification.