Get Your First Agent Payment Running in 5 Minutes
This guide walks you through creating an AI agent, provisioning a wallet, and executing your first policy-enforced payment.Get Your API Key
Sign up at sardis.sh and create an API key:
- Go to Settings → API Keys
- Click Create API Key
- Copy your key — it starts with
sk_live_...(production) orsk_test_...(sandbox)
Create an Agent and Wallet
The wallet is non-custodial — keys are managed by Turnkey MPC. You never see or handle private keys.
Fund Your Wallet
Before you can make payments, fund your wallet with USDC:
- Test Mode (Sandbox)
- Production Mode
Sandbox wallets come pre-funded with test USDC. No action needed!
Complete Working Example
Here’s a complete example from our examples directory:What’s Next?
Framework Integrations
Use Sardis with LangChain, OpenAI, CrewAI, Vercel AI, and more
Spending Policies
Learn how to write natural language spending policies
Multi-Agent Teams
Create agent teams with shared budgets and group governance
API Reference
Explore the complete API documentation
Common Issues
Payment failed: insufficient balance
Payment failed: insufficient balance
Fund your wallet with USDC on the target chain (e.g., Base, Polygon). In sandbox mode, test wallets are pre-funded.
Payment failed: policy violation
Payment failed: policy violation
Check your wallet’s spending limits with
sardis.wallets.get(wallet_id). The payment may exceed per-transaction or daily limits.Payment failed: blocked merchant
Payment failed: blocked merchant
The merchant domain may be on your blocklist or flagged by compliance checks. Review your policy settings.
Transaction pending for too long
Transaction pending for too long
Blockchain transactions can take 1-5 minutes depending on network congestion. Check the block explorer for real-time status.
Need help? Join our Discord or email support@sardis.sh