Overview
The Cashmere Agent SDK (@cashmerelabs/cashmere-agent-sdk) turns cross-chain USDC transfers into a standard AI agent tool. Any framework that supports function calling or tool use can integrate Cashmere bridging in minutes.
What agents can do:
- Simulate a transfer to preview fees, duration, and route viability without executing
- Execute a transfer across 16 chains (EVM, Solana, Aptos, Sui)
- Query supported routes and CCTP versions programmatically
Install
Quick Setup
Simulate Before Execute
Usesimulate() to let the agent preview costs before committing funds:
Framework Integration
- OpenAI Assistants
- LangChain
- crewAI
- Custom Framework
Import the JSON tool schemas and pass them directly to the OpenAI API:The schema defines two tools:
Tool Schemas Reference
cashmere_bridge
Executes a cross-chain USDC transfer.
Returns:
{ txHash, explorerUrl, version, from, to }
cashmere_simulate
Previews a transfer without executing.
Returns:
{ supported, version, estimatedDuration, estimatedFee: { cashmere, circleBurnBps } }
Supported Chains
SKILL.md (Agent Context)
The SDK ships with aSKILL.md file that provides comprehensive context for AI agents. Load it to give your agent detailed knowledge about Cashmere CCTP:
- All contract addresses and program IDs (public, on-chain data)
- Fee calculation formulas and gas API integration
- Per-chain transfer patterns and ABI details
- CCTP version routing rules and estimated durations
Security
Private keys are never logged, stored on disk, or sent to any API other than the chain’s own RPC for transaction submission. The Gas API only receives domain IDs and fee parameters.
- Keys are provided via environment variables and used only for in-memory signing
- The SDK contains zero
console.logstatements - All contract addresses in the SDK are public on-chain data
- The
.env.examplefile ships with empty values — never commit.env
Next Steps
- Smart Contracts — per-chain contract details and ABI reference
- Backend APIs — Gas API and monitoring endpoints
- Contract Addresses — deployed addresses for all 16 chains
- GitHub — source code and issues