Payments, living entitlements, and spending permissions for apps and AI agents.
Bagseven is a billing and entitlement infrastructure platform for applications and AI agents. It turns a verified payment into a clear, enforceable answer: what can this customer or agent use, how much can they use, and until when?
Providers define plans that connect pricing directly to product access: a feature, USDT price, credit allocation, access duration, and receiving wallet. Customers pay the provider directly on Whitechain. Bagseven verifies settlement and creates a living entitlement on Arkiv—a queryable record of the customer’s rights, remaining credits, and expiry. The same entitlement powers access checks in an application, backend service, or MCP-connected assistant.
The core innovation is separating three independent states: payment, renewal, and access. A successful payment proves settlement; it does not grant unlimited access. Cancelling renewal changes future billing intent; it does not remove an already-paid period. Access is determined by the living entitlement’s enabled state, remaining credits, and paid-through timestamp. This gives providers a consistent foundation for time-limited plans, prepaid credits, and metered features.
Bagseven’s distinctive architecture separates the right to use a service from the authority to spend money. An agent consuming prepaid access uses entitlement credits without making another payment or requiring a funded spending mandate. When it requests a new payment, a separate authorization layer checks both the required entitlement and an owner-defined mandate. On-chain limits constrain purchases, spending windows, lifetime budgets, recipients, and delegated workers.
World ID verifies the human behind authorization, Whitechain supplies payment evidence and spending enforcement, and Arkiv supplies living access records. Bagseven connects these through a unified billing lifecycle, SDKs, APIs, and MCP tools.
Its core technical contribution is this payment-to-entitlement lifecycle and the separate enforcement of access rights and spending authority. Providers can monetize a service once and serve both people and agents through the same access model, while retaining control over pricing, usage, expiry, and automated spending.
Bagseven is built around one core idea: a payment should create a precise, verifiable right to use a service—not just a successful checkout screen. We implemented a billing-to-entitlement lifecycle that applications and AI agents can both use.
A provider creates a plan containing a feature identifier, USDT price, credit allocation, access duration, and receiving wallet. This connects the billing configuration directly to the product’s access rules. For example, a plan can sell 100 document-processing credits that remain valid for 30 days.
Bagseven creates a checkout session for the selected plan and customer identity. The customer approves a USDT payment to the provider’s wallet on Whitechain. The backend verifies the transaction’s token, recipient, amount, payer authorization, and confirmations, and checks that the payment has not already been redeemed.
After payment verification, Bagseven creates an entitlement on Arkiv. It records who holds access, which feature it covers, how many credits remain, and when the paid period ends. Applications query this record instead of treating a historical payment receipt as permanent access.
React, Node.js, and agent SDKs expose access checks and credit consumption. MCP tools make those capabilities available to assistants. Numeric features deduct credits as they are used; boolean features remain enabled until expiry. Server-side checks enforce access before protected work.
A key architectural decision is that using prepaid access does not trigger another USDT payment or require a funded spending mandate. Entitlement credits represent service usage, not money.
When an agent requests a new payment, Bagseven checks the required entitlement and a registered worker’s mandate. Solidity contracts on Whitechain enforce per-purchase, time-window, lifetime, recipient, and worker-allocation limits. Owners can delegate narrower allocations to child agents and revoke future spending.
The core technical contribution is the separation of three clocks and two authorities.
The three clocks are payment settlement, renewal preference, and current access. Cancelling renewal preserves the already-paid period; an expired or exhausted entitlement denies further usage even when its payment remains visible on-chain.
The two authorities are permission to use a service and permission to spend money. Keeping them separate allows an assistant to consume purchased access without receiving unrestricted financial authority.
We connected these flows using a TypeScript monorepo with Next.js interfaces, Fastify services, PostgreSQL, Redis, Solidity, and viem. World ID verifies the human authorizing access, Whitechain provides settlement and spending enforcement, and Arkiv stores living entitlement state. PostgreSQL tracks billing and agent records, while Redis coordinates payment claims and request idempotency.
Providers can also authorize prefunded operating-gas accounts with encrypted delegated keys, expiry, and fee budgets. Those signing restrictions are enforced by the server; the mandate’s spending restrictions are enforced on-chain.

