When Amazon Bedrock AgentCore funds turned usually obtainable in August 2026, brokers might autonomously pay for paid APIs, MCP servers, and internet content material over open protocols like x402 and MPP with cost limits and full observability. At this time we prolong that autonomy to AWS Market, so brokers can uncover and purchase x402-enabled software program, APIs, information, and content material, and pay in USD on the agent developer’s AWS invoice, eradicating the necessity for stablecoin wallets or API keys.
Determine 1: Overview of AgentCore funds displaying the brand new AWS Billing integration for buying on AWS Market
Builders also can configure and automate discovery by the AWS Market connector in AgentCore Gateway. Present guardrails carry over, builders can set spending limits and accepted sellers utilizing AgentCore coverage, and the cost session cap is enforced by AgentCore funds, so an agent is unable to overspend. Transactions are auditable in AWS CloudTrail and AWS Value Explorer. As a result of agent purchases run by AWS accounts on either side, agentic buying meets the safety and auditability enterprises count on.
The x402 catalog on AWS Market is increasing with a rising roster of trusted, verified sellers. Tavily, a reside search supplier for agentic commerce, is one among them:
Agentic commerce isn’t nearly giving brokers the power to pay. It’s about giving enterprises the boldness to allow them to.
That conviction is driving Tavily’s collaboration with the AWS group on the design of Agentic Commerce. By bringing safe, x402 powered transactions to AWS Market and connecting brokers with trusted, KYC verified suppliers, AWS is laying the muse for autonomous commerce at manufacturing scale.
That is what enterprise prepared agentic commerce seems to be like.
— Rotem Weiss, Founder & CEO, Tavily
What’s launching right this moment
At this time’s launch provides AWS Billing as a cost choice in AgentCore funds. An agent can now pay x402-enabled AWS Market sellers per request, in USD, selecting their AWS invoice.
When an AWS Market vendor responds with 402 Cost Required, its response features a signed quote for the acquisition. With AWS Billing, the agent can ahead the vendor’s x402 response to AgentCore funds. AgentCore funds checks session budgets, then returns a cost token. The agent retries the request to the vendor with the cost token included and receives a profitable response. AWS payments the cost to the AWS account the place Cost Supervisor is about up, and the cost seems on that account’s AWS invoice.
To arrange AWS Market buying, the developer creates a Cost Supervisor with an AWS Billing connector. The connector solely requires you to arrange a service-linked function to entry AWS Market. Then, for every job, builders can create a cost session with a spending restrict and provides the agent the session ID.
An agent’s first buy from a vendor creates an settlement for the AWS account with that vendor, and AWS Market robotically tracks later purchases towards it. Every product will then present up as an AWS Market line merchandise. In case your group makes use of Non-public Market, brokers can solely purchase the merchandise it permits.
As well as, to find new sellers, we’re launching a brand new AWS Market connector in AgentCore Gateway. This non-obligatory integration helps brokers discover merchandise and their endpoints. At launch, AWS Billing helps the x402 precise scheme, the place the vendor quotes a set value for every request.
On this submit, we stroll by a analysis agent that discovers a instrument, pays for a single request by AWS Billing, and solutions with sources, with nothing arrange upfront. We additionally present an accompanying GitHub pattern that you should use to judge the setup in your individual AWS account.
Pattern walkthrough
Suppose a monetary analyst asks the agent what was introduced about agentic funds this week. The mannequin wasn’t educated on this week’s information, so the agent seems to be for a search instrument. Via AgentCore Gateway, it searches AWS Market, reads the itemizing from Tavily, an AWS Market vendor, and requests the itemizing’s x402 endpoints.
The agent calls the endpoint and receives an x402 payload with value particulars. The agent then forwards the x402 payload to AgentCore funds. AgentCore funds checks it towards the remaining session funds and returns a cost token. As soon as these checks are handed, the agent sends the request once more with the token hooked up, and will get the search outcomes. Its reply consists of sources and states what it purchased and what it value.
On this workflow, brokers can apply their reasoning to determine which AWS Market instrument to make use of.
The way it works
Determine 2: Finish-to-end move of the pattern resolution utilizing a Strands agent
1. Uncover. The agent calls three read-only gateway instruments so as: search listings, get a list, and record its achievement choices. Search listings instrument solely returns endpoints that settle for x402. The final name returns the vendor’s endpoint URL and the cost protocols it accepts.
2. Get a quote. The agent calls the endpoint with no cost hooked up. The vendor solutions with HTTP 402 and places a signed quote within the PAYMENT-REQUIRED header. AWS Market checks the signature towards the vendor’s registered key, which implies a quote with an altered value will get rejected.
3. Pay. The agent passes the quote to the ProcessPayment API with the cost sort AWS_BILLING_X402. If funds stays within the session, AgentCore funds points a cost token. If not, the decision fails and the developer just isn’t charged.
4. Redeem. The agent sends the request once more, this time with the token within the PAYMENT-SIGNATURE header, and the vendor returns the content material. Cost tokens are legitimate for about 5 minutes, so the agent completes steps 2 by 4 in a single cross.
5. Settle. On the developer’s first buy from a vendor, AWS Market creates the settlement with that vendor. After that it meters every cost to their AWS invoice. Settlement runs asynchronously and reveals up of their AWS invoice month-to-month.
Conditions
To create an AWS Billing connector, builders’ AWS accounts will need to have the AWS Market service-linked function AWSServiceRoleForMarketplaceAgenticCommerce. AWS Market makes use of this function to invoice AWS Market purchases that their brokers make to their AWS account. Consult with the documentation for extra particulars.
Fingers-on
The open-source GitHub pattern within the agentcore-samples repository runs by a demo of the brand new performance. It could possibly aid you configure AgentCore funds for AWS Market, join Tavily, run the agent, and examine the transaction. You’ll be able to check with the documentation for extra particulars.
Step 1: Configure AgentCore funds
setup_aws_billing.py creates a cost supervisor with an AWS Billing connector, plus the AWS Market service-linked function and three separate AWS Id and Entry Administration (IAM) roles. The session function can set budgets however can’t pay. In the meantime the agent function pays however can’t create classes, so the agent has no strategy to increase its personal funds.
Step 2: Join Tavily
setup_gateway.py creates an AgentCore Gateway with the AWS Market connector and offers the agent function the suitable permissions to make use of it. The gateway’s function is proscribed to a few read-only AWS Market actions. In the event you select to skip this step, you’ll be able to as an alternative set SELLER_URL within the surroundings variables to the vendor’s endpoint, and the agent pays that URL solely quite than utilizing AgentCore Gateway discovery.
Step 3: Run the agent
The script creates a cost session because the session function after which runs the agent because the agent function. By default the session funds is $0.05 and the per-request cap is $0.02.
The agent searches, seems to be at listings, will get an endpoint, and pays as soon as. On this take a look at run towards a $0.01 vendor, it in contrast two listings earlier than shopping for:
Step 4: Examine the transaction
When the run finishes, the pattern will print the cost with its quantity, AWS Market product ID, and processPaymentId. The AWS Market meters costs asynchronously, so the Tavily line merchandise takes a second to look in your invoice. Agent purchases may also present up in AWS CloudTrail and AWS Value Explorer.
Step 5: Clear up
Run cleanup.py to delete assets. Make sure that to validate deletion to keep away from incurring extra useful resource costs.
Conclusion
AgentCore funds and AWS Market present the infrastructure for brokers that may transact. The analysis agent on this submit goes from “I want reside internet search” to sourcing a solution by itself, discovering premium paid content material by instruments, and paying for requests that choose the developer’s AWS invoice.
With AgentCore funds, builders can construct with open protocols like x402, which opens them to a rising catalog of trusted, verified AWS Market sellers. This offers brokers extra autonomy and builders extra management. Governance is inbuilt, with per-session spending caps and an accepted vendor record utilizing AgentCore coverage, and IAM identities that make it auditable in AWS CloudTrail and AWS Value Explorer. The agent chooses the correct instrument for the duty, and builders can preserve the identical billing, budgets, and controls they already belief.
Sources
Concerning the authors

