Skip to main content
Glama

AgentaOS

Turn your users into paying customers

AgentaOS is a merchant of record for AI agents: your agent (Claude, ChatGPT, Cursor) sets up products, checkout links and subscriptions, and AgentaOS is the legal seller, so VAT, sales tax, invoices and chargebacks are ours. What that means.

npm npm License: Apache-2.0

Website · Docs · Quickstart · SDK · CLI

What AgentaOS does

AgentaOS sells your product in its own name, as the merchant of record. For each sale, AgentaOS:

  • takes the payment by card, or by bank transfer on EUR sales.

  • charges the VAT that applies to the buyer.

  • issues the invoice and sends the receipt.

  • pays you out to your bank account. Stablecoin payouts are in public preview.

The same account also gives you:

  • subscriptions with trials, plan changes and credits.

  • discount codes, including codes that only track who a referral brought in.

  • invoices, receipts and a customer list.

  • a checkout you can embed on your own page.

  • platforms, to run billing for your clients' businesses (private preview).

Your account starts in test mode. Verify your business to take live payments.

Related MCP server: Paddle MCP Server

Start selling

Sign up at app.agentaos.ai, or start from the terminal:

npm install -g agentaos
agenta login
agenta products create --name "Pro" -a 29 -c EUR --subscription --interval month

The last command prints the product's buyer link. Share the link anywhere: every buyer who opens it gets a checkout.

To start a checkout from your own server, use the SDK:

npm install @agentaos/pay
import { AgentaOS } from '@agentaos/pay';

const agentaos = new AgentaOS(process.env.AGENTAOS_API_KEY!);

const checkout = await agentaos.checkouts.create({
  amount: 49,
  currency: 'EUR',
  description: 'Pro plan',
  successUrl: 'https://example.com/welcome',
});

// Send the buyer to checkout.checkoutUrl

The quickstart takes you from sign-up to the first paid sale.

Set up billing with your AI coding agent

The Claude Code plugin gives your coding agent the AgentaOS tools and a guide to the integration patterns:

claude plugin marketplace add AgentaOS/agentaos
claude plugin install agentaos@agentaos

In Claude Code, type /mcp, choose agentaos, then Authenticate. You approve the connection in your browser, so there is no key to paste.

Other MCP clients can run the MCP server from the agentaos package. It has 31 tools, the same operations as the CLI. See MCP setup.

Embed the checkout on your page

The embedded checkout shows your product's checkout inline, or as an overlay. Card, bank transfer, trials, discount codes and VAT work the same as on the hosted checkout.

<script src="https://app.agentaos.ai/v1/agentaos.js"></script>
<div id="checkout"></div>
<script>
  AgentaOS.checkout.open({
    link: 'https://app.agentaos.ai/pay/<your-product-link>',
    target: '#checkout',
  });
</script>

Add your site under Settings → Developers → Approved sites first. See Embedded checkout.

Packages

Package

What it is

Docs

@agentaos/pay

TypeScript SDK for your server: checkouts, products, subscriptions, discount codes, customers, invoices, webhooks

SDK overview

@agentaos/nextjs

Next.js route handlers: a checkout route for your products and a verified webhook route

README

@agentaos/better-auth

Better Auth plugin: checkout and subscriptions for signed-in users, and verified webhooks with one handler per event

README

agentaos

The agenta CLI and the MCP server, one command per operation

CLI install

@agentaos/checkout

The embedded checkout for the browser, with React support. Not on npm yet: use the script tag above

Embedded checkout

plugins/agentaos

The Claude Code plugin

MCP setup

packages/mcp-remote

The hosted MCP server at mcp.agentaos.ai, for assistants that connect over the web

MCP setup

To run billing for other businesses from one account, see Build a platform.

Example

examples/paywall-demo is a small Express app with a paid Pro plan behind a login. It creates the checkout, confirms the payment, verifies the webhook and checks access.

Also in this repository

The agent wallet packages (core, signer, schemes, chains and mpc-wasm) are an on-chain wallet that an AI agent operates, with threshold signing so that no single party holds the full key. The agent wallet is in private preview. See Agent wallet and the paper.

Contributing

git clone https://github.com/AgentaOS/agentaos.git && cd agentaos
pnpm install && pnpm build && pnpm test

See CONTRIBUTING.md. Report security issues to security@agentaos.ai, as SECURITY.md describes.

License

Apache-2.0. See LICENSE.

Copyright 2025-2026 Aristokrates OÜ

Available Tools

31 tools
agenta_audit_requestRequest pricing auditAInspect

Ask for the free Revenue & Pricing Audit. Use when the merchant wants the free Revenue & Pricing Audit of a page where they sell; url is required. Starts a written review of their pricing and checkout; it costs nothing and does not block going live. Check progress with agenta_audit_show.

Inputs: url (required), business, category, delivery, +1 more.

agenta_audit_showShow pricing auditA
Read-only
Inspect

The audit state, and download the report PDF once it exists. Returns whether an audit was requested, its state, its grade and the report PDF link once it is written. Changes nothing. If none was requested, use agenta_audit_request.

Inputs: output, business, download.

agenta_businesses_createCreate managed businessAInspect

Add a business you manage — a client's business, or another app of your company. Adds a business this account manages, for a client or another app. Optionally invites the client as its admin by email. Returns the business id; pass it as business on other tools to act for it.

Inputs: name (required), country (required), business, clientEmail, +2 more.

agenta_businesses_getGet managed businessA
Read-only
Inspect

Show one business you manage. Returns one managed business by id: its name, status, whether its identity is verified and any open invitation. Changes nothing.

Inputs: id (required), business.

agenta_businesses_inviteInvite business ownerBInspect

Send your client's invitation again (a new link; the old one stops working). Sends a new invitation link to the client admin of one managed business; the previous link stops working. Sends an email unless email is false.

Inputs: id (required), email, business.

agenta_businesses_listList managed businessesA
Read-only
Inspect

List the businesses you manage. Returns the businesses this account manages (its clients or its other apps), with id, name and status. Changes nothing. Pass a business id as business on any other tool to act for it.

Inputs: business.

agenta_businesses_revoke_inviteRevoke business inviteA
Destructive
Inspect

Withdraw your client's open invitation. Withdraws the open invitation of one managed business so its link stops working. Ask the merchant before calling this.

Inputs: id (required), business.

agenta_customers_listList customersB
Read-only
Inspect

List customers. Returns the people who bought from the merchant, with their email, name, country and customer id, up to limit (1 to 100). Changes nothing.

Inputs: limit, business.

agenta_discounts_archiveArchive discount codeA
Destructive
Inspect

Stop a discount code working. Stops one discount code working for new purchases; subscribers who already used it keep their discount. Ask the merchant before calling this.

Inputs: id (required), business.

agenta_discounts_createCreate discount codeBInspect

Create a discount code buyers type at checkout. Creates a code buyers type at checkout to get money off, or a tracking-only code that records who a referral brought in. Returns the code and its id.

Inputs: code (required), name, plan, business, +4 more.

agenta_discounts_listList discount codesA
Read-only
Inspect

List discount codes. Returns the merchant's discount codes with their id, whether each is a discount or tracking only, the plan it applies to and whether it is active, up to limit (1 to 100). Changes nothing.

Inputs: limit, business.

agenta_discounts_showShow discount codeA
Read-only
Inspect

Show one discount code: what it takes off and how many people used it. Returns one discount code by id: what it takes off, its limits, and how many buyers used it. Changes nothing.

Inputs: id (required), business.

agenta_invoices_listList invoicesA
Read-only
Inspect

List invoices. Returns the merchant's invoices with their id, amount, currency, status and buyer, up to limit (1 to 100). Changes nothing. Use an id with agenta_invoices_receipt or agenta_invoices_send_receipt.

Inputs: limit, business.

agenta_invoices_receiptDownload receiptA
Read-only
Inspect

Download the receipt PDF for a paid invoice. Returns the receipt PDF for one paid invoice; a tool call gets the link, the CLI saves the file. Changes nothing.

Inputs: id (required), output, business.

agenta_invoices_send_receiptRe-send receipt emailCInspect

Re-send the receipt email to the buyer on file. Emails the receipt for one paid invoice again to the buyer's address on file. Sends an email to the buyer.

Inputs: id (required), business.

agenta_pay_checkoutCreate checkoutAInspect

Create a checkout session. Creates a one-off checkout for an amount and returns its checkoutUrl to send to the buyer, its sessionId and when it expires. The buyer pays by card; tax is added by AgentaOS. Follow up with agenta_pay_get.

Inputs: amount (required), email, business, currency, +1 more.

agenta_pay_getGet checkoutA
Read-only
Inspect

Get checkout session status. Returns one checkout by sessionId: open, completed (paid), expired or cancelled, with amount, currency and link. Changes nothing.

Inputs: sessionId (required), business.

agenta_pay_listList checkoutsA
Read-only
Inspect

List checkout sessions. Returns checkouts with their status, amount and sessionId, optionally only one status (open, completed, expired, cancelled), up to limit (1 to 100). Changes nothing.

Inputs: limit, status, business.

agenta_products_createCreate productAInspect

Create a product (one-time) or a subscription plan. Creates something buyers can pay for: a one-time product, or a subscription plan with an interval. Returns the product id and its buyer link, which can be shared as is. Use the id with agenta_pay_checkout or as a plan for agenta_subscriptions_change_plan.

Inputs: name (required), amount (required), business, currency, +7 more.

agenta_products_listList productsA
Read-only
Inspect

List products and plans. Returns the merchant's products and subscription plans with their ids, prices, currencies and buyer links, up to limit (1 to 100). Changes nothing.

Inputs: limit, business.

agenta_status_getAccount statusA
Read-only
Inspect

Account and go-live overview. Start here: returns whether the account can take live payments, go-live progress, business verification state, the pricing audit state, whether a payout account is connected, and the single next step to take. Changes nothing.

Inputs: business.

agenta_subscriptions_cancelCancel subscriptionA
Destructive
Inspect

Cancel a subscription (at period end by default). Cancels one subscription. By default it stays active until the end of the paid period; set immediately to end it now. Ask the merchant before calling this.

Inputs: id (required), now, business.

agenta_subscriptions_change_planChange subscription planAInspect

Move a subscription to another plan (upgrade charges now, downgrade at period end). Moves one subscription to another plan with the same currency and interval: an upgrade is charged now (prorated), a downgrade applies at period end. Set dryRun to get the price quote without changing anything.

Inputs: id (required), to (required), dryRun, business.

agenta_subscriptions_creditCredit subscriptionAInspect

Put credit on a subscriber’s account, taken off their next invoice. Adds credit to one subscription, in the plan's currency; it is taken off the subscriber's next invoices. The reason is stored for the merchant only. Returns the credit given.

Inputs: id (required), amount (required), reason (required), business.

agenta_subscriptions_creditsList subscription creditsC
Read-only
Inspect

Credits given on a subscription, and what is still unspent. Returns the credits given on one subscription and how much is still unspent. Changes nothing.

Inputs: id (required), business.

agenta_subscriptions_listList subscriptionsA
Read-only
Inspect

List subscriptions. Returns the merchant's subscriptions with their id, plan, status and subscriber; pass code to see only subscribers who used that discount code. Changes nothing. Use an id with agenta_subscriptions_cancel, agenta_subscriptions_change_plan or agenta_subscriptions_credit.

Inputs: code, limit, business.

agenta_verify_declarationShow verification declarationA
Read-only
Inspect

The five statements --accept-declaration attests to. Read-only. Returns the five statements a merchant attests to when submitting business verification, the product categories AgentaOS does not support, and what happens if a statement is false. Show these to the merchant before calling agenta_verify_submit with acceptDeclaration true.

Inputs: business.

agenta_verify_resubmitResubmit verificationAInspect

Send back for review after making the changes we asked for. Use only when verification is in the changes-requested state and the merchant has made the changes; sends it back for review. Returns the new state.

Inputs: business.

agenta_verify_statusVerification statusA
Read-only
Inspect

Where the verification has got to. Returns the business verification state (not started, in review, changes requested, on hold, rejected or verified), with any changes requested and the reason for a hold or rejection. Changes nothing. For the whole go-live picture use agenta_status_get.

Inputs: business.

agenta_verify_submitSubmit verificationAInspect

Submit business verification so the merchant can accept live payments. Sends the business or individual details for review so the account can take live payments. Required: legalName, country, street, city, url, acceptDeclaration true, and registrationNumber when entity is business. Only set acceptDeclaration after the merchant has read agenta_verify_declaration. Returns the new verification state.

Inputs: url, city, entity, postal, +14 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 31 tools

    Disambiguation4/5

    Most tools target a distinct resource+action and descriptions clarify boundaries well. The one real hazard is agenta_subscriptions_credit (adds credit) vs agenta_subscriptions_credits (lists credits) — near-identical names with opposite effects, plus verify_submit/verify_resubmit and audit_request/audit_show require reading descriptions to separate.

    Naming Consistency4/5

    Everything uses the agenta_ prefix with snake_case and a predictable resource_verb order (products_create, pay_checkout, discounts_archive), which is very consistent. The credit/credits singular-plural pair is the main blemish on an otherwise uniform scheme.

    Tool Count3/5

    31 tools is heavy against the rubric's 25+ threshold, though the domain genuinely spans many resources (verification, businesses, products, subscriptions, discounts, invoices, customers, pay, audit). It is defensible but at the upper edge of comfortable scoping.

    Completeness4/5

    Coverage is broad and lifecycle-aware: full verification flow, business management, product/subscription/discount/invoice operations, and checkout listing. Minor gaps exist — products have no update/delete/archive, and customers can only be listed, not fetched individually.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      The Stripe Model Context Protocol server allows you to integrate with Stripe APIs through function calling. This protocol supports various tools to interact with different Stripe services.
      31,367 npm
      2,085
      -
    • A
      license
      A
      quality
      C
      maintenance
      A Model Context Protocol server that provides tools for interacting with the Paddle Billing API, enabling users to manage products, prices, customers, transactions, subscriptions, and create custom financial reports.
      63
      1,359 npm
      50
      Apache 2.0
    • A
      license
      Not graded
      quality
      B
      maintenance
      The Dodo Payments MCP Server integrates with agentic frameworks to provide a lightweight, serverless-compatible interface for AI-driven payment operations like billing, subscriptions, and customer management. It enables autonomous agents to securely act on behalf of users using the Dodo Payments
      1,323 npm
      54
      Apache 2.0