{"question":"AWS Marketplace now lets AI agents buy x402 products per request and put the charge on my AWS bill through Amazon Bedrock AgentCore payments. What actually stops my agent from overspending there, can it raise its own budget, and what should I set up before I switch it on?","slug":"how-do-agentcore-payment-sessions-cap-what-an-ai-agent-spends-on-aws-marketplace-x402-products","url":"https://www.rightshold.com/answers/how-do-agentcore-payment-sessions-cap-what-an-ai-agent-spends-on-aws-marketplace-x402-products","short_answer":"The cap is the AgentCore payment session, not the agent's judgement. Since November 19, 2026, an agent using AgentCore payments with the new AWS Billing connector can pay x402-enabled AWS Marketplace sellers per request in US dollars, with the charge settling on your AWS bill and no crypto wallet. Each purchase goes through a payment session you create for the task: AWS says a session has a maximum spend in a set currency and an expiry time, and AgentCore payments checks every request against the remaining session budget before it issues a payment token, refusing any request that would take the session past its cap (and you aren't charged for a refused one). The seller's 402 quote is signed, and AWS Marketplace checks that signature against the seller's registered key, so a quote with an altered price is rejected. Whether the agent can raise its own budget comes down to IAM: in AWS's sample, the role that creates sessions and sets budgets can't pay, and the agent's role can pay but can't create sessions. Approved-seller lists through AgentCore policy and your Private Marketplace rules narrow what it can buy, and purchases show up in AWS CloudTrail and Cost Explorer, though settlement onto your bill runs later and monthly.","checklist":["Create one AgentCore payment session per task, with a spending limit and an expiry sized to that task, and give the agent only the session ID.","Keep session creation out of the agent's IAM role. In AWS's sample, the session role sets budgets but can't pay, and the agent role pays but can't create sessions.","Set a per-request cap as well as the session budget. AWS's sample presets $0.05 per session and $0.02 per request; size yours to the task.","Limit sellers with an approved-seller list in AgentCore policy, and, if your organization uses Private Marketplace, rely on it too: agents can only buy products it allows.","Know the launch scope: AWS Billing supports only the x402 exact scheme, where the seller quotes a fixed price per request.","Remember the first purchase from a seller creates an AWS Marketplace agreement for your account, and later purchases are tracked against it.","Watch spend in CloudTrail and Cost Explorer, but treat the session cap as the real-time limit: AWS Marketplace meters charges asynchronously and they settle on your monthly bill.","Keep your own record of which task asked for which purchase, so you can tie each AWS Marketplace line item back to a decision."],"sections":[{"heading":"What AWS launched for AI agents buying on AWS Marketplace","points":["On November 19, 2026, AWS added AWS Billing as a payment option in Amazon Bedrock AgentCore payments. An agent can now pay x402-enabled AWS Marketplace sellers per request, in US dollars, with charges settling on the AWS account where the Payment Manager is set up. AWS's examples are a research agent buying a single web search and a coding agent calling a paid guardrail service.","Setup, per AWS's walkthrough: create a Payment Manager with an AWS Billing connector, which needs the AWS Marketplace service-linked role AWSServiceRoleForMarketplaceAgenticCommerce; then, for each task, create a payment session with a spending limit and give the agent the session ID. An optional AWS Marketplace connector in AgentCore Gateway lets the agent find listings through three read-only tools (search listings, get a listing, list its fulfillment options), and search only returns endpoints that accept x402. At launch, AWS Billing supports the x402 exact scheme only."]},{"heading":"How an AgentCore payment session caps each AWS Marketplace purchase","points":["The purchase runs in four steps in AWS's description. The agent calls the seller's endpoint with no payment and gets HTTP 402 with a signed quote in the PAYMENT-REQUIRED header; AWS Marketplace checks the signature against the seller's registered key, so a quote with an altered price is rejected. The agent sends the quote to the ProcessPayment API with payment type AWS_BILLING_X402. If budget remains in the session, AgentCore payments issues a payment token; if not, the call is refused and you aren't charged. The agent then retries the request with the token in the PAYMENT-SIGNATURE header. Tokens are valid for about five minutes.","AWS's August 2026 general-availability post describes the session itself: a scoped payment context for a single agent interaction, with two configurable caps, a maximum spend amount in a specified currency and an expiry time. Before signing a payment, AgentCore payments checks the request against the session budget and rejects requests that would push the session past its cap. AWS calls that check deterministic and says it runs at the infrastructure layer, which is the point: a retry loop or a misread response can't talk its way past it."]},{"heading":"Whether an AI agent can raise its own AgentCore budget","points":["Not if you split the roles the way AWS's sample does. Its setup script creates three separate IAM roles: the session role can set budgets but can't pay, and the agent role can pay but can't create sessions, so, in AWS's words, the agent has no way to raise its own budget. The sample then creates a payment session as the session role and runs the agent as the agent role, with a $0.05 session budget and a $0.02 per-request cap; in AWS's test run against a $0.01 seller, the agent compared two listings and paid once, for $0.01 in total.","That separation is something you configure, not something AWS enforces for you. If one role can both create sessions and process payments, an agent holding it could open a fresh session with a bigger budget. Review the IAM policies on whatever identity your agent runs as before you connect AWS Billing."]},{"heading":"What else limits AWS Marketplace agent purchases, and what to log","points":["AWS says you can set spending limits and approved sellers using AgentCore policy, that Private Marketplace policies still apply (agents can only buy products your Private Marketplace allows), and that transactions appear in AWS CloudTrail and AWS Cost Explorer. The first purchase from a seller creates an agreement between your AWS account and that seller, and each product then shows up as an AWS Marketplace line item.","Timing matters for alerts. AWS Marketplace meters charges asynchronously and settlement shows up on your AWS bill monthly, so Cost Explorer is a review tool, not a brake. The brake is the session cap and expiry. For each task, keep a record of the session you opened, its budget, and the purchases the agent asked for, so a line item weeks later still points to a reason."]}],"checks":[],"ask_rightshold":{"start":"https://www.rightshold.com/start?ref=seo","mcp_endpoint":"https://www.rightshold.com/mcp","ask":"Set a spending policy on my research agent's credential that matches the AgentCore session I give it: at most 0.02 USD per request and 5.00 USD per day, only at the AWS Marketplace seller endpoint I approved, expiring when this task ends.","mcp_call":{"tool":"set_spend_policy","arguments":{"credential_id":"<this research agent's credential id>","currency":"USD","per_tx_max_minor":2,"daily_max_minor":500,"allowed_domains":["<approved seller endpoint host>"],"expires_at":"<task end, ISO 8601>"}},"also":["Needs your owner account key (toolset=trust). The policy replaces the previous one, and every version stays on Rightshold's ledger.","Have the agent call authorize_spend with the quoted amount and seller host before it calls ProcessPayment, and stop on deny. Each answer is a signed allow or deny receipt with reasons, giving you a per-task record outside AWS. The daily total resets at 00:00 UTC, which isn't the same window as an AgentCore session.","It doesn't read or change your AgentCore sessions, IAM roles or AWS bill, and never moves money. AgentCore's session cap is the limit that actually refuses a payment; this only covers purchases the agent checks first.","REST, free: POST /v1/x402/price-tag decodes an x402 402 response so you can see the quoted amount before the agent pays."],"scope":"Rightshold isn't affiliated with AWS or any AWS Marketplace seller, never holds or moves money, and isn't a payment processor or wallet. AgentCore payments and AWS Marketplace behavior is as described in AWS's November 19, 2026 announcement and walkthrough and its August 18, 2026 general-availability post, all read November 20, 2026; features, regions and limits may change, so check the AgentCore documentation and your AWS account before relying on them. Not financial or legal advice."},"sources":[{"title":"AWS What's New: AWS Marketplace now supports agentic payments with AgentCore (November 19, 2026)","url":"https://aws.amazon.com/about-aws/whats-new/2026/11/marketplace-agentic-payments-agentcore/"},{"title":"AWS Machine Learning Blog: Enable AI agents to pay for AWS Marketplace x402 products with Amazon Bedrock AgentCore payments (November 19, 2026)","url":"https://aws.amazon.com/blogs/machine-learning/enable-ai-agents-to-pay-for-aws-marketplace-x402-products-with-amazon-bedrock-agentcore-payments/"},{"title":"AWS Machine Learning Blog: Amazon Bedrock AgentCore payments is now generally available (August 18, 2026)","url":"https://aws.amazon.com/blogs/machine-learning/amazon-bedrock-agentcore-payments-is-now-generally-available-enabling-agents-to-transact-safely-and-autonomously-at-scale/"},{"title":"Rightshold: agent spending policies and signed authorizations","url":"https://www.rightshold.com/start"}],"related":[{"title":"Can an AI agent raise its own spending limit, and how do you stop it?","url":"https://www.rightshold.com/answers/can-an-ai-agent-raise-its-own-spending-limit-and-how-do-you-stop-it"},{"title":"Per-request and per-run spend caps for x402 agent payments","url":"https://www.rightshold.com/answers/how-to-set-per-request-and-per-run-spend-caps-for-x402-agent-payments"},{"title":"How to cap what an AI agent spends on pay-per-token APIs with MPP sessions","url":"https://www.rightshold.com/answers/how-to-cap-what-an-ai-agent-spends-on-pay-per-token-apis-with-mpp-sessions"},{"title":"Reading an x402 402 Payment Required response as a price","url":"https://www.rightshold.com/answers/how-to-read-an-x402-payment-required-response-as-a-price"}],"computed_from":"Curated guidance; license verdicts computed from Rightshold's license profiles at render time. Not legal advice.","updated":"2026-11-20"}