AgentCore payments is currently available as an AWS preview. Features and APIs may change before general availability.
What you can build
With the Coinbase integration on AgentCore you can:- Provision and sign with CDP user wallets — End users authenticate and grant agent permissions through a wallet UI; agents use AgentCore Payments to complete x402 payment flows on their behalf (subject to user-configured permissions, and your budgets and policies on the AWS side).
- Discover and pay for x402-enabled services — Add the Coinbase x402 Bazaar target to AgentCore Gateway so agents can search the same catalog documented in x402 Bazaar (Discovery Layer).
Bedrock AgentCore products in this integration
Typical setup order: configure CDP credentials in AgentCore Identity → give end users a wallet UI to sign in and grant delegation → create a Payment Manager and Connector in AgentCore Payments → add the Bazaar target to AgentCore Gateway → wire the Gateway MCP URL and payments plugin into your agent runtime.
For a guided, automated setup in coding harnesses (Claude Code, Codex, and similar), use the AgentCore Payments skill instead of running each step manually.
AgentCore Payments skill
The AgentCore Payments skill automates payments setup through an interactive, guided experience in AI coding agents. It provisions the AWS-side resources and wires a framework-agnostic payment tool into your agent so it works with Strands, LangGraph, OpenAI Agents SDK, or any Python framework. The skill provisions:Install the Agent Toolkit for AWS
Install theaws-agents plugin in your coding harness, then ask the agent to set up payments.
- Claude Code
- Codex
Invoke the skill
The payments skill is part of theagents-build skill in the Agent Toolkit for AWS. Describe your intent in the coding agent — for example:
- “Add payments to my agent using
agents-buildskill inaws-agentsplugin” - “Set up microtransactions for my agent using
agents-buildskill inaws-agentsplugin” - “Wire my agent to pay for x402-protected APIs using
agents-buildskill inaws-agentsplugin”
agentcore add payment-connector) and again when you authorize the wallet (delegation) and fund it. Before you start, complete the CDP prerequisites below (API credentials and Delegated signing enabled).
Full walkthrough: AgentCore payments quick start — Using the AgentCore Payments skill.
User-facing wallet UI
AgentCore Payments signs on behalf of end users only after they authenticate and grant a time-bound delegation. You need a frontend where users sign in, fund wallets (optional), and approve agent access. Choose one of two paths:- AgentCore template (recommended)
- Build your own
The CDP + AgentCore template is a reference Next.js app for AgentCore + CDP integrations. Fork it when you need a customizable wallet dashboard that demonstrates the full flow:
- Email and social sign-in with CDP user wallets
- Per-wallet account-scoped delegation grants (multi-select, expiry, revoke)
- Balance views, onramp/offramp, and a live delegation signing test
- Server routes that verify CDP JWTs and call
cdp.endUser.*with your API key
Coinbase also offers a hosted wallet UI (Wallet Hub) for AgentCore integrations where developers prefer not to build a frontend. Wallet Hub is currently available in a limited preview for AgentCore use cases — contact your AWS or Coinbase integration point for access. General availability for all CDP developers is planned separately.
Prerequisites on the CDP side
Use this section when you configure AgentCore Payments to use CDP Wallets. You do not need these steps solely to add the Coinbase x402 Bazaar Gateway target for discovery.- Create or select a CDP project and generate API credentials as described in CDP API authentication (API key ID, API key secret, and Wallet Secret).
- In the CDP Portal, go to Wallets → Non-custodial Wallet → Security and enable Delegated signing.
- Provide a user-facing wallet UI so end users can sign in and grant delegation before your agent signs on their behalf.
Configure Bazaar in AgentCore Gateway
Add the Coinbase x402 Bazaar as an outbound target so agents connected to your Gateway can discover and call paid x402 endpoints.Target configuration
Agents connect to your Gateway’s MCP URL (for example
https://<gateway-id>.gateway.bedrock-agentcore.<region>.amazonaws.com/mcp), not directly to the Bazaar endpoint above. The Gateway forwards tool calls to the Bazaar target.
For tool behavior and client-side payment handling, see Bazaar MCP Server and the MCP server guide.
Setup paths on AWS
Choose one path to register the target. AWS documents each in Coinbase Bazaar via AgentCore Gateway:AWS console (Bedrock AgentCore)
AWS console (Bedrock AgentCore)
In the Amazon Bedrock console, open AgentCore > your Gateway > Targets:
- Choose Add target
- For Target type, select Integrations
- Select Coinbase x402 Bazaar (pre-populated — no manual endpoint entry needed)
- Leave Outbound authentication as No Authorization
- Deploy the Gateway and note the Gateway MCP URL for your agent runtime
AgentCore CLI
AgentCore CLI
Control-plane API (Boto3)
Control-plane API (Boto3)
Use
bedrock-agentcore-control create_gateway_target with an mcpServer endpoint pointing at the Bazaar MCP URL. See the full request shape in AWS’s Coinbase Bazaar via AgentCore Gateway guide.What to read next
AWS setup and operations- AgentCore payments quick start — Guided skill path for coding harnesses, or manual CLI/SDK/Boto3 setup.
- AgentCore payments overview — Product overview, use cases, and key features.
- Prerequisites for AgentCore payments — AWS CLI, SDKs, CDP and optional Privy credentials, Cognito/JWT notes.
- Coinbase Bazaar via AgentCore Gateway — Full console, CLI, and Boto3 examples for adding the Bazaar target.
- AgentCore Gateway — Ingress auth, targets, and Gateway MCP URL format.
- Create a Payment Manager and Connector — Wire CDP credentials from AgentCore Identity into a payments flow.
- x402 Bazaar (Discovery Layer) — Catalog, search, and MCP semantics.
- Delegated signing — How end-user delegation grants work (required for AgentCore Payments with CDP).
- CDP + AgentCore template — Forkable Next.js reference app for sign-in, funding, and per-wallet delegation.
- Quickstart for buyers — Paying for x402 resources outside AgentCore.
- Network support — Chains and facilitator base URL for verify/settle.