尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證Your agent shops on a desktop. You pay with one tap. Turn any UPI QR + cart into a one-tap pay page. MCP + HTTP API for AI agents.
翻譯準備中
取自儲存庫 README
正在載入完整 README。
檢視完整 README ↗I send AI agents to shop for me. They work on a desktop, so at checkout they hit a UPI QR they can’t pay, and what follows is a screenshot relay: the agent sends the QR, I save it, open my UPI app, find “scan from gallery”, pick the screenshot, and check the amount.
qrbaton lets the agent pass the baton instead. It sends the QR and the cart, and I get one link: a clean review-and-pay page with a Pay button that opens GPay, PhonePe or Paytm with everything filled in. Once I’ve paid, the agent hears back and finishes the order.
Claude Code
claude mcp add --transport http qrbaton https://qrbaton.vercel.app/mcp
Any MCP client (Claude Desktop, Cursor, Codex…)
{ "mcpServers": { "qrbaton": { "type": "http", "url": "https://qrbaton.vercel.app/mcp" } } }
Tools: create_pay_link, get_payment_status, set_payment_status.
Agent skill: /SKILL.md teaches the whole workflow, including “never send the screenshot, send the link”.
Open to anyone, no key needed. The app serves its own agent docs: /llms.txt, /openapi.json, /SKILL.md.
BASE=https://qrbaton.vercel.app
# Payee as a QR upload, a base64 image ("qr"), a upi:// string ("upi"), or plain fields ("payee": {pa, pn, am})
curl -X POST $BASE/api/sessions -F [email protected] \
-F 'order={"merchant":"Blinkit","site":"https://blinkit.com","agent":"Claude","total":642,
"items":[{"name":"Hass Avocado","qty":1,"price":149}],"charges":[{"label":"Item total","amount":642}]}'
# -> {"id","url","statusUrl","manageToken","expiresAt","payee"}
curl $BASE/api/sessions/{id} # {"status":"pending|paid|failed|expired","paidBy"?,"utr"?}
curl -X PATCH $BASE/api/sessions/{id} -H "authorization: Bearer $MANAGE_TOKEN" -d '{"status":"paid"}'
payee.am, else order.total, else the sum of order.items (only when there are no charges, since charges are the full bill as displayed). If both the amount and the total are given they must match."callbackUrl": "https://…". Every status change POSTs {"event":"session.status",…} signed as x-qrbaton-signature: sha256=HMAC-SHA256(key = hex sha256(manageToken), raw body).paidBy: "payer" means the payer tapped I’ve paid. The creator can confirm it, or overrule it with failed. Otherwise terminal statuses are final.CREATE_LIMIT_PER_HOUR per IP (default 60). Payment stays open 30 minutes by default (set expiresInMinutes, up to 24 h). After that the page stays readable for another 24 h, with paying disabled.noindex, no-store and Referrer-Policy: no-referrer. Order details are labelled on the page as unverified, provided by the sender.| Route | |
|---|---|
/ | Landing page, plus a QR → pay link tool that works without an agent (decoded in the browser) |
/demo | Sample pay page; Pay simulates the payment |
/p/{id} | A pay session created through the API |
/?pa=…&pn=…&am=… | A plain pay link, no backend; every param passes through to the deep links |
/mcp, /api/sessions | MCP server and HTTP API |
Next.js (App Router) on Vercel, with Upstash Redis for sessions.
| Env var | |
|---|---|
KV_REST_API_URL / KV_REST_API_TOKEN | Upstash Redis (Vercel Marketplace → Upstash; UPSTASH_REDIS_REST_* also work). Required in production. |
PUBLIC_URL | Optional; origin for returned links and SEO (defaults to Vercel’s production URL) |
QRBATON_TOKEN | Optional first-party secret: no rate limit, can update any session |
CREATE_LIMIT_PER_HOUR | Optional; anonymous links per IP per hour (default 60) |
npm install
npm run dev # without Redis, dev keeps sessions in memory
npm test && npm run build
bin/qrbaton-linkTurns a QR image or upi:// string into a plain /?pa=… link on $QRBATON_URL, without calling the API. Decoder: pyzbar if libzbar is installed, else OpenCV (python3 -m venv .venv && .venv/bin/pip install opencv-python-headless pyzbar).
bin/qrbaton-link qr.jpg # -> pay link
bin/qrbaton-link --json qr.png # {"link","upi","pa","pn","am",...}
MIT. Geist fonts in assets/fonts are under the SIL Open Font License.