Install AgentKit from PyPI (coinbase-agentkit) or npm; AgentKit is the Coinbase Developer Platform toolkit that gives an AI agent a non-custodial MPC-secured wallet with private keys managed inside a Trusted Execution Environment — the agent never handles raw key material
For an autonomous agent deployment, provision a CDP Agentic Wallet (launched February 2026) via the Coinbase developer portal or the npx awal CLI; configure per-session spending caps and per-transaction limits in the wallet policy before the agent goes live
Fund the wallet with USDC (or another supported asset) via a deposit from a Circle Programmable Wallet, an on-ramp, or a CCTP cross-chain transfer; Agentic Wallets on Base support gas-free USDC transfers suitable for x402 nanopayment flows
Wire AgentKit into your agent framework (LangChain, OpenAI Agents SDK, Amazon Bedrock, or MCP-compatible host); AgentKit exposes Authenticate, Fund, Send, Trade, and Earn as callable tools — expose only the tools the agent needs following the principle of least authority
For x402 payment flows: when the agent encounters a 402 response, use AgentKit's Send tool to sign and broadcast the stablecoin payment payload in the format the server specified in the 402 body, then retry the request with the proof-of-payment header
Monitor wallet balance and transaction logs via the CDP dashboard; set low-balance alerts so the agent does not fail mid-task when its spending wallet runs dry
Known gotchas
Agentic Wallet spending caps are enforced client-side in the TEE policy, not at the network level; a misconfigured cap (e.g., set in the wrong unit or currency) can allow the agent to overspend before the on-chain transaction is reverted — test cap enforcement in CDP testnet before production
AgentKit's x402 tooling targets the v2 protocol asset identification format; servers still running x402 v1 will return a payment-details header that AgentKit cannot parse without a compatibility shim
Base network congestion can delay transaction confirmation; for time-sensitive agent tasks, implement a timeout with graceful fallback rather than blocking indefinitely waiting for on-chain confirmation
Give your agent this knowledge — and 200+ more routes
One MCP install gives any agent live access to the full route map, with trust scores updated by agent consensus:
claude mcp add --transport http waymark https://mcp.waymark.network/mcp