当前位置: 首页 > Skill >

Crinkl Claws

Crinkl Claws

Crinkl Claws

由Crinkl提供的收据验证和比特币奖励服务。扫描Gmail或AgentMail中的账单邮件,验证DKIM签名,并赚取约15...

1.3.2 2026.11.15 932
获取Skill文件查看使用说明
作 者:许言 许可证: 更新时间:2026.11.15
本文目录展开

Crinkl — Earn Bitcoin from Billing Emails

clawhub install crinkl-claws

Scan your human's email for billing emails, verify their cryptographic DKIM signatures, and earn ~150 sats per receipt over Lightning. Each verified receipt mints an identity-free spend token — no personal data is stored or retained.

Supports two email providers: Gmail (via gog skill) or AgentMail (dedicated inbox, no OAuth).

MCP Server

This skill requires the crinkl MCP server:

{
  "mcpServers": {
    "crinkl": {
      "url": "https://mcp.crinkl.xyz/mcp"
    }
  }
}

All Crinkl operations (pairing, vendor discovery, receipt submission, earnings) are available as declared MCP tools. See the full tool list.

What is Crinkl

Crinkl is a receipt verification protocol. It uses DKIM — the same cryptographic signatures email servers already attach to every outbound message — to verify that a billing email is authentic and unmodified. Each verified receipt mints an identity-free spend token and pays sats to the submitter's wallet over Lightning.

Spend tokens contain a store hash, date, total, and a hash-chained signature — but no identity. No email address, no name, no account ID. The token proves a purchase happened without revealing who made it.

Privacy & Data Handling

This skill passes individual billing emails to the submit-receipt tool for DKIM signature verification. This section explains exactly what is sent, why, and what happens to it.

Why the full email is required

DKIM signatures are computed over the email's headers and body by the sending mail server (e.g. Amazon SES, Google Workspace). The signature covers the original message content — not a summary, not extracted fields, but the actual RFC 2822 message. To verify the cryptographic signature, the server must receive the same bytes the mail server signed. There is no way to verify DKIM without the original message.

This is the same verification that Gmail, Outlook, and every email provider performs when checking if an email is forged. The difference is that Crinkl uses the verification result to prove a purchase happened.

What happens after verification

  1. The server checks the DKIM signature against the vendor's public DNS key
  2. If valid, it extracts only: vendor name, invoice date, total amount, currency
  3. The original email is discarded — not stored, not logged, not retained
  4. A spend token is minted containing only the extracted invoice data (no email content, no personal data)

Scope

  • Gmail path: Searches for billing emails from approved vendor domains (call get-vendors), filtered by billing keywords, from the last 14 days.
  • AgentMail path: Processes messages in the dedicated receipt inbox. The inbox only receives vendor billing emails that the user explicitly configured to send there.

Security Model

  • Human-authorized: Your human approves the pairing code in their app. Nothing runs without their explicit consent.
  • Vendor-scoped (Gmail): Only billing emails from approved vendors are searched.
  • Vendor-scoped (AgentMail): The dedicated inbox only receives vendor billing emails the user explicitly configured. No access to the user's primary email.
  • Read-only Gmail: The gmail.readonly scope means no email modification, deletion, or sending.
  • DKIM verification: The server validates the cryptographic signature — forged or modified emails are rejected.
  • Identity-free output: Spend tokens strip all personal data. The signed payload contains store hash, date, total, and CBSA — no email, name, or account.
  • API key scoped: The API key ties submissions to a wallet, not to a person. Your human controls the key and can revoke it anytime.
  • Open source: The server-side verification logic is documented in the crinkl-protocol spec. The agent source is at crinkl-agent (MIT license).

Setup

1. Pair with your human's Crinkl wallet

On first run, pair with your human's wallet using the pair-agent tool:

  1. Call pair-agent with a random 64-character hex string as deviceToken
  2. Tell your human the 4-character code: "Open the Crinkl app and enter code: [code]"
  3. Poll claim-api-key every 5 seconds with the same deviceToken and code
  4. Once the human approves, you get the API key. Store it securely — it's shown once.

The code expires in 10 minutes.

2. Email access (choose one)

Option A: Gmail (via gog)

Install the gog skill for Gmail access:

clawhub install gog

Your human authorizes read-only Gmail access through gog's OAuth setup.

Option B: AgentMail (no OAuth)

Install the agentmail skill:

clawhub install agentmail

Create a dedicated inbox via AgentMail. Include the agentmailInbox field when calling pair-agent so your human sees the inbox address during approval. Your human then updates their vendor billing emails to send to the AgentMail address. Receipts arrive directly with DKIM signatures intact — no forwarding.

Important: Email forwarding (e.g. Gmail → AgentMail) breaks the vendor's DKIM signature. Vendors must send directly to the AgentMail address.

How It Works

Each cycle (see HEARTBEAT.md):

  1. Check API key — call pair-agent + claim-api-key if needed (one-time)
  2. Find billing emails:
    • Gmail: Fetch the vendor list (get-vendors), search Gmail for receipts from those domains
    • AgentMail: List messages in the dedicated receipt inbox
  3. Get raw email — Download each billing email as raw RFC 2822 (required for DKIM signature verification)
  4. Submit for verification — call submit-receipt with the base64 email; email is discarded after extraction
  5. Log results — Record what verified and what you earned
  6. Check your earnings — call get-agent-me for your submission count and sats earned

MCP Tool Reference

All tools are available via the crinkl MCP server at https://mcp.crinkl.xyz/mcp.

Pairing (no auth)

  • pair-agent — Start pairing. Pass deviceToken (64-char hex) and optionally agentmailInbox (e.g. crinkl-xyz@agentmail.to). Returns code and expiresAt.
  • claim-api-key — Poll for API key. Pass deviceToken + code. Returns 202 (pending), 200 (approved with apiKey), or 410 (expired).

Vendor discovery (no auth)

  • get-vendors — Returns list of approved vendor domains with display names.

Receipt submission (requires apiKey)

  • submit-receipt — Submit base64-encoded raw email for DKIM verification + spend creation.
    • Returns status 201 (verified, sats queued), 202 (vendor queued for review), 409 (duplicate), 422 (validation error), 429 (rate limited).
  • verify-receipt — Preview DKIM verification without creating a spend.

Earnings (requires apiKey)

  • get-agent-me — Your submission count, earned sats, wallet stats, current sats/receipt rate.

Two levels of data in get-agent-me:

Your numbers (attributed to your API key):

  • mySubmissions — receipts you verified
  • myEarnedSats — sats you earned

Wallet numbers (the entire wallet, all sources):

  • walletTotalSpends — all receipts on the wallet
  • walletEarnedSats — unclaimed sats on the wallet
  • walletClaimedSats — sats already paid out via Lightning

You and your human are separate entities on the same wallet.

Vendor Discovery

The vendor allowlist is not fixed. If you submit an email from a domain not yet on the list, it gets queued for review (202 response). If the domain has valid DKIM, the vendor gets approved and your spend is created retroactively.

Logging

Write each verification to your memory:

## Crinkl: verified Amazon receipt — $20.00 — DKIM valid — ~148 sats

Signals Worth Noting

  • 202 response — you found a vendor the network didn't have yet
  • DKIM failure on a known vendor — their email format may have changed
  • All 409s — all billing emails already verified, nothing new
  • Sats/receipt rate change — the reward rate adjusts with BTC price and reserve policy

推荐文章

更多
PHP时间戳与日期字符串相互转换方法详解

本文介绍PHP中时间数值(Unix时间戳)与日期字符串之间的相互转换方法。通过strtotime和date函数,实现将当前时间、指定日期转换为时间戳,以及将时间戳格式化为可读的日期时间字符串,并提供相关在线计算工具推荐。

2025.11.30 1,016
PHP跨域配置:怎么安全地允许指定域名而非使用通配符

在 PHP 中安全地允许指定域名跨域,核心是解析请求头中的 Origin ,验证其是否在白名单内,然后动态设置 Access-Control-Allow-Origin 响应头。不要使用通配符 * ,也不要硬编码单一域名。

2025.03.29 1,003
Apache开启.htaccess及使用方法详解

本文介绍如何在本地Apache环境中启用.htaccess文件,主要涉及修改httpd.conf中的AllowOverride参数。同时详细解析.htaccess的多种实用功能,包括自定义错误页面、目录密码保护、IP访问限制、URL自动转向、默认首页设置以及防止图片盗链等配置方法,并分析了使用.htaccess对服务器性能和安全性的潜在影响。

2026.05.09 1,001
JavaScript中利用replace结合正则实现replaceAll效果

JavaScript原生仅支持replace()进行单次或全局替换,缺乏类似Java的replaceAll()便捷方法。本文总结四种在JS中实现全量替换的方案:使用带g标志的正则、带gm标志的正则、扩展String原型以及split后join。通过对比代码示例,展示各方法的实现细节与适用场景,帮助开发者根据需求选择最优解。

2025.04.29 1,001
PHP日期转时间戳时区偏差怎么解决

在 PHP 中将日期字符串转换为时间戳时,若未显式指定时区,默认使用脚本配置的 date.timezone 或系统时区。当服务器时区与业务逻辑预期(如 UTC )不一致时,会产生偏差。解决核心是确保输入字符串携带明确时区信息,或在转换前统一设置时区上下文。

2026.10.24 1,000
PHP实现基础文件上传:HTML表单与$_FILES处理流程

在 HTML 表单中设置 enctype="multipart/form-data" ,并在 PHP 后端通过 $_FILES 数组接收文件,调用 move_uploaded_file() 将临时文件移动到目标目录即可完成上传。

2026.09.07 1,000
Skill 文件
  • SKILL.md
    • Crinkl — Earn Bitcoin from Billing Emails
    • MCP Server
    • What is Crinkl
    • Privacy & Data Handling
      • Why the full email is required
      • What happens after verification
      • Scope
    • Security Model
    • Setup
      • 1. Pair with your human's Crinkl wallet
      • 2. Email access (choose one)
    • How It Works
    • MCP Tool Reference
      • Pairing (no auth)
      • Vendor discovery (no auth)
      • Receipt submission (requires apiKey)
      • Earnings (requires apiKey)
    • Vendor Discovery
    • Logging
    • Signals Worth Noting
  • 项目或源文件

相关 Skill

更多
service-qa-coach service-qa-coach Review support quality for chat, email, phone, social DM, or marketplace service teams. Use when a team needs a QA scorecard, failure-mode analysis, coaching plan, calibration checklist, or service-improvement brief without live ticketing, CRM, or contact-center system access.
高中数学作业批改助手 高中数学作业批改助手 >图片识别 直接读取学生手写作答照片,识别公式、符号、步骤 🧮 自动推导 根据题目自动生成参考答案和评分细则,无需教师预设 📊 逐步给分 每个关键步骤独立评分,体现过程分 📝 结构化报告 输出含识别内容、参考答案、逐步评分、改进建议的完整报告 🗂 批量批改 支持一次性批改多道题,最终汇总得分表
Vibration Analysis Vibration Analysis 分析来自CMS趋势、RMS/峰值、频谱及SCADA报警的风机传动链(主轴、齿轮箱、发电机)振动数据。
Traditional Bone Tool Making Basics Traditional Bone Tool Making Basics Use when you need custom, durable, repairable tools like awls, needles, scrapers, harpoons, or fishing hooks made from local animal bones or antlers and comm...
音频混音工具 音频混音工具 名称:Sound Mixing Tool(标识 sound-mixing-tool) 短简介(≤60字):音乐/音效响度精确对齐 + 融合混音工作流:用 ffmpeg 两段式 loudnorm 把多组素材 LUFS 偏差压到 <0.10,再最小干预融合、导出可进引擎的独立分轨。 标签/关键词:音频混音 响度匹配 LUFS ffmpeg 游戏音频 音效设计 Wwise FMOD 分轨导出 后期处理 触发词:混音 · 响度匹配 · LUFS 对齐 · MIX 版本 · 音乐音效分轨 · 融合 · 不打架 · 不能盖住 适用场景 :游戏音频集成、影视短视频配乐、播客后期