Skip to main content
By the end of this guide an AI agent, running in your terminal or inside Claude Desktop / Cursor, can create checkouts, check payment status, and manage subscriptions for your store, in plain language instead of code you write yourself. There are two ways in, and you can set up both, they don’t conflict:

Coding agents

Claude Code, Cursor’s agent mode, or anything else that can run shell commands. Give it the SKILL.md prompt and the agenta CLI directly.

Chat agents

Claude Desktop, Cursor’s chat, Windsurf, or any MCP-compatible client. Connect the AgentaOS MCP server instead.

Before you start

An AgentaOS account. Neither path needs an API key up front, agenta login and the MCP server’s gateway key both come from the same dashboard you’d use anyway.

Path A: a coding agent with the CLI

1

Install the CLI and log in

agenta login is the one step that needs you: it opens a browser for sign-in. Every other command an agent runs afterward is non-interactive.
2

Give your agent the skill

Tell your coding agent to fetch and follow the skill prompt:
It teaches the agent the exact agenta pay commands, their flags, and how to handle the response, including always running agenta status --json first and always passing --json so output is machine-parseable instead of full of ANSI color codes.
3

Try a prompt

Ask it something like:
Create a checkout for 50 EUR for my consulting invoice.
The agent runs agenta status --json to confirm payment tools are ready, then agenta pay checkout -a 50 --json, and hands you back the checkoutUrl to share with your client.

Path B: a chat agent with MCP

1

Get your keys

A gateway key for the payment tools, from app.agentaos.aiSettings → Developers → API Keys.
2

Add the server to your client's config

For Claude Desktop, add this to your MCP server configuration:
See MCP setup for Cursor and Windsurf equivalents.
3

Restart your client and ask it directly

List my last 5 checkouts.
Cancel subscription sub_4f81c0 at the end of the current period.
The agent calls the matching tool, agenta_pay_list_checkouts or agenta_pay_cancel_subscription, and reports back in the chat.

What the agent can do

The MCP server exposes these payment tools, all documented at MCP setup:
Both paths use the same underlying API and respect the same test/live key scoping. An agent working against a test key can only see and create test-mode data, exactly like a human integration would.

Verify it worked

Ask the agent directly:
What’s my AgentaOS status?
On the CLI path, it should run agenta status --json and report paymentTools.ready: true, along with your organization. On the MCP path, ask it to list your most recent checkout and confirm the amount and status match what you see in the dashboard.

Next steps

MCP server setup

Every tool the MCP server exposes, and Cursor/Windsurf configuration.

CLI install

The full agenta CLI reference, for scripting outside an AI agent too.

Handle webhooks

Checkouts an agent creates still need your server to fulfil them on completion.