Cashmere Agent SDK
The official TypeScript SDK for programmatic and AI-agent-driven USDC transfers. It requires Node.js 22 or later.
Each option also takes an optional
rpcUrl. Load keys from the environment or a secret manager, never from source code.
The Agent Integration guide covers the MCP server (Claude Desktop, Claude Code, Hermes Agent), the agent skill and framework setup (LangChain, OpenAI function calling, Hermes, crewAI).
Direct Integration (No SDK)
Call the contracts yourself when the user signs in their own wallet (a dApp or wallet UI), or when your backend isn’t written in TypeScript:- Fetch a signed fee quote from the Gas API.
- Pass it to the
CashmereCCTPcontracts, as described in From Quote to Call. - Track each transfer with the Transaction APIs.
Helper Snippets
Each helper fetches a quote for the V2 entry points. A quote is valid for about 100 seconds, and itsfee and deadline are signed: pass them to the contract unchanged. Always send isNative: the Gas API answers HTTP 500 without it.
TypeScript (EVM)
Go (EVM)
Rust (Solana, Aptos, Sui)
local is 5 on Solana, 9 on Aptos and 8 on Sui. Keep version=2: without it the message has no version byte and the V2 entry points reject the signature. Native fees are lamports on Solana, octas on Aptos and MIST on Sui. Signed Payloads shows what each chain verifies.
Resources
- cashmere-agent-sdk on GitHub: source code, issues, README and SKILL.md
- @cashmerelabs/cashmere-agent-sdk on npm: the published package
- Agent Integration: the MCP server, the agent skill, and LangChain, OpenAI, Hermes and crewAI setup
- Contract Addresses: every deployed address
- Backend APIs: the Gas API and the transaction APIs