What is the AgentKit provider?
The@mandate.md/agentkit-provider package gives you two classes for Coinbase AgentKit: MandateWalletProvider (handles wallet operations with policy checks) and MandateActionProvider (exposes Mandate tools as AgentKit actions). Every transaction validates against your Mandate policies before signing.
Installation
@coinbase/agentkit is a peer dependency (>=0.1.0).
Usage
walletProvider and actions to your AgentKit agent configuration. The wallet provider wraps MandateWallet from the SDK, so every sendTransaction() call goes through Mandate validation first.
Actions
The action provider uses Zod schemas for input validation. Invalid parameters fail fast before reaching the Mandate API.
WalletProvider methods
Error handling
Action methods return descriptive strings instead of throwing. This lets the LLM read the error and decide what to do next.intentId and approvalId. Your agent can poll for approval status using these identifiers, or direct the user to the dashboard to approve.
Configuration
Next Steps
Integrations Overview
Compare all supported agent frameworks side by side.
Handle Approvals
Build approval workflows when transactions exceed thresholds.
Handle Errors
Catch and respond to every Mandate error type in your agent.