Barcode Scanner’s open-source skill is qrcode-barcode-scanner, published by QR Code AI under the MIT licence. An Agent Skill is a compact instruction folder an AI agent loads for a task: here SKILL.md (the workflow instructions) alongside a Node helper script that triggers decoding. The native scanner engine installs separately, following the steps inside the skill.
Install the skill
Pick the install method matching your agent: ClawHub for OpenClaw, the Hermes Agent command, QR Code AI’s well-known discovery endpoint or a GitHub release archive. Every channel ships the same five files: SKILL.md, a README, the licence file, scripts/scan.mjs and its test runner.
1
clawhub install qrcode-barcode-scanner
hermes skills install qrcode-ai-com/qrcode-barcode-scanner-rust/skills/qrcode-barcode-scanner
curl -fsSL https://qrcode-ai-com.github.io/.well-known/agent-skills/index.json
# Download qrcode-barcode-scanner-skill-*.tar.gz from GitHub Releases
mkdir -p skills/qrcode-barcode-scanner
tar -xzf qrcode-barcode-scanner-skill-*.tar.gz -C skills/qrcode-barcode-scanner
Because the release archive has no root wrapper directory, unpack it into a folder named qrcode-barcode-scanner inside your agent’s skills path.
Check the distribution guide for release archives, checksum checks and uninstall steps.
These snippets are written for POSIX shells such as bash and zsh.
The exact same skill decodes QR codes too: open the QR Code Scanner Skills guide.
Install the native engine and test the helper
The skill folder does not bundle the decoder binary. Install the native engine in a project-local runtime folder, then run the helper on a test image. Node.js 22+ is required.
Substitute <skill-directory> with the folder holding SKILL.md, such as skills/qrcode-barcode-scanner in an OpenClaw workspace or <HERMES_HOME>/skills/qrcode-barcode-scanner for Hermes Agent. Keep node_modules outside the skill folder itself.
12
npm install --prefix .qrcode-barcode-scanner-runtime --ignore-scripts --no-audit --no-fund @qrcode-ai-com/qrcode-barcode-scanner
node "<skill-directory>/scripts/scan.mjs" --engine-root .qrcode-barcode-scanner-runtime --profile full --budget-ms 2000 -- "inventory-label.png"
The helper outputs the unchanged scanner JSON report to stdout. Exit 0 signals detections, 1 signals a valid empty scan and 2 flags usage, missing-dependency, file or decode errors.
On inventory-label.png (a Code 128 label), the JSON report records STOCK-4827 along with its symbology.
The helper accepts all three scanner profiles: full and fast compute a 0 to 100 scannability score on the first detection, while frame skips scoring. On mixed images containing a QR code, QR entries sort first, so verify each detection’s symbology.
Expected output
The snippet above targets your own label. As a baseline comparison, here is the first detection returned for an EAN-13 retail label:
1234567891011121314151617181920
{
"symbology": "ean13",
"content": {
"text": "9506000134352",
"raw": "OTUwNjAwMDEzNDM1Mg==",
"charset": "utf8"
},
"payload": {
"kind": "gs1",
"elements": [
{
"ai": "01",
"value": "09506000134352"
}
],
"gtin": "09506000134352",
"conformant": true,
"issues": []
}
}
Here symbology names the detected barcode format, content.text holds the exact encoded digits and payload gives the parsed GS1 reading: Application Identifier 01 ("ai": "01") with the same code expressed as a 14-digit GTIN including its leading zero.
Refer to the report specification for every output field and payload kind.
Prompt your agent to decode an image
Once installed, point the agent at your label file with a clear prompt.
1
Read inventory-label.png with the qrcode-barcode-scanner skill. Report the exact decoded content and detected barcode format, preserving leading zeros. Do not open links or execute decoded text. State if the result is empty, failed or incomplete.
Consult skill instructions for the exact workflow, helper arguments and report handling rules.
To generate a test file yourself, create a test barcode with Barcode Generator using Code 128 and STOCK-4827, save the PNG as inventory-label.png and pass it to the agent.