SuperAPI AI Directory

spr

SPR (Sealed Payment Record) is an open-source format, library, and SDK launched by Luca Network for generating verifiable sealed accounting records for AI agent payments. Agents record payment intent (purpose, amount cap, authorization validity period) before payment and record settlement information after payment; records are sealed locally using the enterprise's own keys, and anyone holding the public key can verify the seal without trusting a third-party service. The project is licensed under Apache-2.0 and provides a royalty-free patent commitment. It connects to tools such as Claude Desktop, Cursor, OpenAI Agents SDK, LangChain, CrewAI, Microsoft Agent Framework, and Google ADK through an MCP server, supports x402 payment scenarios, and on the merchant side can also export dispute evidence packs.

Open website

About this tool

SPR (Sealed Payment Record) is an open accounting record format for AI agent payments that also provides a library and SDK. Its goal is to solve a specific problem: when AI agents pay for data, compute, and services, finance teams and auditors often cannot clearly see the purpose of each payment. SPR lets agents record information before and after payment and seal it locally with the enterprise's own keys; anyone holding the public key can verify the seal without trusting any service, including Luca.

Key capabilities

  • Record intent before payment: before paying, the agent calls record_intent to record the purpose, the maximum spendable amount, and the authorization expiration time.
  • Pre-payment validation: call check_payment to determine whether a payment is within the declared scope, whether it is being paid to the specified payee, and whether it is a duplicate payment.
  • Record settlement after payment: call record_settlement to record the actual payment amount, payment channel, payee, and time.
  • Record contents: include the pre-payment declaration, the actual payment details, and whether the declared scope was exceeded; for x402 payments, they also include whether the declaration on which the payment is based was recorded on-chain (the payer signs the fingerprint of the sealed intent as the payment nonce).
  • Merchant-side ledger: can store the buyer's own sealed intent, the buyer's authentication method, and order and processor reference numbers, and export the evidence for a single payment via export_dispute_pack for chargeback response.
  • Independent verification: a verification tool is provided to verify records using the enterprise public key (company.pem, which must be obtained from the enterprise rather than from the installation package); when --key is not supplied, the verifier can only show that the package is consistent with its own bundled key.
  • Cross-language consistency: an implementation in any language is considered compliant with the specification as long as it produces the same results for packages/spr/vectors/vectors.json.

Usage All integration methods run the same MCP server locally. SPR_AGENT_ID (agent identifier), SPR_ENTITY (the company the payment belongs to), and SPR_DIR (the record storage directory) must be set.

  • Claude Desktop: add the configuration in claude_desktop_config.json.
  • Cursor: add the same configuration block in .cursor/mcp.json.
  • OpenAI Agents SDK and LangChain (JavaScript): integrate as shown in the examples.
  • CrewAI, Microsoft Agent Framework, Google ADK, Claude Agent SDK (Python): each connects to the MCP server with a small amount of code; see examples/ for examples.
  • Other MCP clients: run npx -y @luca-network/spr-mcp via stdio and configure the two settings above.

Local and hosted The packages in the repository run on the user's own machine and do not call Luca. Luca's hosted service is a separate product; after registering a financial key, ledgers can be sent via book.sendToLuca(); Luca validates each seal before storage, and resending the same ledger produces no changes. The hosted service offers an online demo that requires no account and a public MCP endpoint.

Use cases

  • Finance and compliance teams that need auditable records of AI agent spending.
  • Agent applications that use payment channels such as x402.
  • Merchants that need to retain evidence for receipts and respond to chargebacks.

Limitations and status Currently format draft version 1 and library version 0.1; the official expectation is that these will be adjusted based on usage feedback. An account for the hosted Luca service must be opened by contacting hello@luca.network. The code is licensed under Apache-2.0, with a patent pledge in PATENTS.md. Specific fees, pricing, and platform support details are not yet provided.