OpenClaw Barcode Scanner Plugin & Skill

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

Install the ClawHub plugin bundle

Needs Node.js 22.19+ or 24+.

  1. 1

    Install from ClawHub using --no-enable, review the 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, execute node scripts/setup.mjs to initialise ./runtime, then run openclaw plugins enable qrcode-barcode-scanner.

  3. 3

    Give it a test run. Ask OpenClaw:

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

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

Open bundle on ClawHub

Use a decoded barcode in an OpenClaw task

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

Extract inventory labels verbatim

Decode Code 128, EAN-13, UPC-A and 2D labels offline so every digit and leading zero stays exact rather than guessed.

MCP bytes vs local skill files

Pass supplied bytes to bundle MCP scan_image, or invoke scripts/scan.mjs with ./runtime to read local label images on disk.

Keep product lookups separate

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

Test a barcode image in OpenClaw

Provide the reference image, copy the prompt and verify the decoded output.

barcode-reference.png

Create a Code 128 barcode encoding 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 rather than guessing.

Sample result for barcode-reference.png.

OpenClaw Barcode Scanner Plugin & Skill questions

Install paths, barcode symbologies, leading zeros, local privacy and MIT licence.

Choose the ClawHub plugin bundle when you want both the skill and stdio MCP config sharing a single ./runtime directory, or install the standalone ClawHub skill (clawhub install qrcode-barcode-scanner) if you only need scripts/scan.mjs.

By design, the bundle ships without precompiled engine binaries. Executing node scripts/setup.mjs installs @qrcode-ai-com/qrcode-barcode-scanner-mcp with lifecycle scripts turned off, checks ENGINE-LICENSE and sets up ./runtime for both MCP and the skill helper.

It supports 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, along with QR codes.

Yes. content.text is always emitted as an exact text string so leading zeros stay intact, and EAN-13 outputs also parse the 14-digit GS1 GTIN. The scanner makes zero network calls during decoding and never queries retail or ISBN APIs.

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

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

Image decoding runs locally on your machine under Node.js 22.19+ or 24+ (OpenClaw forwards conversation text to your chosen LLM). Current bundle, skill, MCP adapter and engine releases are free and open-source under the MIT licence, separate from QR Code AI paid plans.

OpenClaw setup and Barcode Scanner references

Review the official OpenClaw setup repository and the MIT scanner adapter specification.