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
| Product | Role with CDP |
|---|---|
| AgentCore Payments | Orchestrates x402 payment flows on the agent side — receives HTTP 402 responses, signs transactions through your configured wallet provider, and returns payment proof to merchants. |
| AgentCore Gateway | Exposes MCP tools to your agents. Add the Bazaar MCP server as an outbound target so agents can call search_resources and proxy_tool_call through your Gateway URL. |
| AgentCore Identity | Stores Coinbase CDP API credentials as a PaymentCredentialProvider so agents can sign without embedding secrets in code. |
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 embedded 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, under Products > Non-custodial Wallet > Security, 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
| Field | Value |
|---|---|
| Target type | Integrations → Coinbase x402 Bazaar (console) or mcp-server (CLI/API) |
| MCP endpoint | https://api.cdp.coinbase.com/platform/v2/x402/discovery/mcp |
| Outbound authentication | No Authorization (only supported option) |
| Tools exposed | search_resources (semantic catalog search), proxy_tool_call (invoke a discovered paid endpoint) |
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 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.