agent-walletThe agent's wallet. Use this skill to safely create a wallet the agent can use for transfers, swaps, and any EVM chain transaction.
Install via ClawdBot CLI:
clawdbot install glitch003/agent-walletUse this skill to safely create a wallet the agent can use for transfers, swaps, and any EVM chain transaction without ever exposing private keys to the agent. Create a wallet, set spending policies, and your agent can transfer tokens, do swaps, and interact with smart contracts within the boundaries you define.
The agent never sees the private key. All transactions are executed server-side through a smart account. The wallet owner controls what the agent can do via configurable policies.
SAFESKILLS_API_URL environment variable if set, otherwise default to https://safeskill-production.up.railway.appSAFESKILLS_FRONTEND_URL environment variable if set, otherwise default to https://safeskill-production.up.railway.appAll API requests require a Bearer token (the API key returned when creating a wallet).
Authorization: Bearer <API_KEY>
Create a new smart account wallet for your agent. This generates a private key server-side (you never see it), creates a ZeroDev smart account, and returns an API key for the agent plus a claim URL for the wallet owner.
curl -X POST "${SAFESKILLS_API_URL:-https://safeskill-production.up.railway.app}/api/secrets" \
-H "Content-Type: application/json" \
-d '{
"type": "EVM_WALLET",
"memo": "My agent wallet",
"chainId": 84532
}'
Response includes:
apiKey -- store this securely; use it as the Bearer token for all future requestsclaimUrl -- share this with the user so they can claim the wallet and set policiesaddress -- the smart account addressAfter creating, tell the user:
"Here is your wallet claim URL: . Use this to claim ownership, set spending policies, and monitor your agent's wallet activity."
curl -X GET "${SAFESKILLS_API_URL:-https://safeskill-production.up.railway.app}/api/skills/evm-wallet/address" \
-H "Authorization: Bearer <API_KEY>"
# Native balance only
curl -X GET "${SAFESKILLS_API_URL:-https://safeskill-production.up.railway.app}/api/skills/evm-wallet/balance" \
-H "Authorization: Bearer <API_KEY>"
# With ERC-20 tokens
curl -X GET "${SAFESKILLS_API_URL:-https://safeskill-production.up.railway.app}/api/skills/evm-wallet/balance?tokens=0xTokenAddr1,0xTokenAddr2" \
-H "Authorization: Bearer <API_KEY>"
# Transfer native ETH
curl -X POST "${SAFESKILLS_API_URL:-https://safeskill-production.up.railway.app}/api/skills/evm-wallet/transfer" \
-H "Authorization: Bearer <API_KEY>" \
-H "Content-Type: application/json" \
-d '{
"to": "0xRecipientAddress",
"amount": "0.01"
}'
# Transfer ERC-20 token
curl -X POST "${SAFESKILLS_API_URL:-https://safeskill-production.up.railway.app}/api/skills/evm-wallet/transfer" \
-H "Authorization: Bearer <API_KEY>" \
-H "Content-Type: application/json" \
-d '{
"to": "0xRecipientAddress",
"amount": "100",
"token": "0xTokenContractAddress"
}'
Swap one token for another using DEX liquidity (powered by 0x).
# Preview a swap (no execution, just pricing)
curl -X POST "${SAFESKILLS_API_URL:-https://safeskill-production.up.railway.app}/api/skills/evm-wallet/swap/preview" \
-H "Authorization: Bearer <API_KEY>" \
-H "Content-Type: application/json" \
-d '{
"sellToken": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",
"buyToken": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
"sellAmount": "0.1",
"chainId": 1
}'
# Execute a swap
curl -X POST "${SAFESKILLS_API_URL:-https://safeskill-production.up.railway.app}/api/skills/evm-wallet/swap/execute" \
-H "Authorization: Bearer <API_KEY>" \
-H "Content-Type: application/json" \
-d '{
"sellToken": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",
"buyToken": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
"sellAmount": "0.1",
"chainId": 1,
"slippageBps": 100
}'
sellToken / buyToken: Token contract addresses. Use 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE for native ETH.sellAmount: Human-readable amount to sell (e.g. "0.1" for 0.1 ETH).chainId: The chain to swap on (1 = Ethereum, 137 = Polygon, 42161 = Arbitrum, 10 = Optimism, 8453 = Base, etc.).slippageBps: Optional slippage tolerance in basis points (100 = 1%). Defaults to 100.The preview endpoint returns expected buy amount, route info, and fees without executing. The execute endpoint performs the actual swap through the smart account, handling ERC20 approvals automatically.
Interact with any smart contract by sending custom calldata.
curl -X POST "${SAFESKILLS_API_URL:-https://safeskill-production.up.railway.app}/api/skills/evm-wallet/send-transaction" \
-H "Authorization: Bearer <API_KEY>" \
-H "Content-Type: application/json" \
-d '{
"to": "0xContractAddress",
"data": "0xCalldata",
"value": "0"
}'
The wallet owner controls what the agent can do by setting policies via the claim URL. If a transaction violates a policy, the API will reject it or require human approval via Telegram.
| Policy | What it does |
|--------|-------------|
| Address allowlist | Only allow transfers/calls to specific addresses |
| Token allowlist | Only allow transfers of specific ERC-20 tokens |
| Function allowlist | Only allow calling specific contract functions (by 4-byte selector) |
| Spending limit (per tx) | Max USD value per transaction |
| Spending limit (daily) | Max USD value per rolling 24 hours |
| Spending limit (weekly) | Max USD value per rolling 7 days |
| Require approval | Every transaction needs human approval via Telegram |
| Approval threshold | Transactions above a USD amount need human approval |
If no policies are set, all actions are allowed by default. Once the owner claims the wallet and adds policies, the agent operates within those boundaries.
84532 (Base Sepolia testnet). Adjust as needed.status: "pending_approval". The wallet owner will receive a Telegram notification to approve or deny.Generated Mar 1, 2026
An e-commerce platform integrates the Agent Wallet to enable AI agents to autonomously issue refunds in cryptocurrency for customer complaints. The agent can transfer tokens or ETH to customer addresses within daily spending limits set by the company, ensuring secure and policy-compliant transactions without manual intervention.
A financial management firm uses the Agent Wallet to allow AI agents to rebalance token portfolios across EVM chains. The agent performs swaps and transfers based on market data, with policies restricting token types and transaction sizes to manage risk while automating investment strategies efficiently.
An NFT marketplace employs the Agent Wallet to automate royalty payments to artists. The AI agent sends transactions to multiple addresses after each sale, using custom calldata for smart contract interactions, with address allowlists ensuring funds only go to verified creators.
A logistics company integrates the Agent Wallet to handle automated payments in supply chain smart contracts. The AI agent triggers transactions upon delivery confirmation, transferring tokens to suppliers within predefined policies, reducing administrative overhead and enhancing transparency.
A blockchain gaming platform uses the Agent Wallet to distribute in-game rewards and tokens to players. The AI agent processes transfers and swaps for token conversions, with spending limits and token allowlists ensuring fair and secure distribution across gaming ecosystems.
Offer tiered subscription plans for developers and businesses to access the Agent Wallet API, with pricing based on transaction volume and advanced features like custom policies. Revenue is generated through monthly or annual fees, targeting enterprises needing scalable wallet automation.
Charge a small percentage fee on each transaction executed through the Agent Wallet, such as transfers, swaps, or smart contract interactions. This model aligns revenue with usage, appealing to high-volume users in DeFi and trading sectors while keeping base costs low.
Provide customized licensing packages for large organizations requiring tailored policies, enhanced security, and dedicated support. Revenue comes from one-time setup fees and ongoing maintenance contracts, targeting industries like finance and logistics with specific compliance needs.
💬 Integration Tip
Start by creating a wallet and setting basic spending policies via the claim URL, then test with balance checks and small transfers before scaling to swaps or complex transactions to ensure security and compliance.
Captures learnings, errors, and corrections to enable continuous improvement. Use when: (1) A command or operation fails unexpectedly, (2) User corrects Clau...
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.
Search and analyze your own session logs (older/parent conversations) using jq.
Typed knowledge graph for structured agent memory and composable skills. Use when creating/querying entities (Person, Project, Task, Event, Document), linking related objects, enforcing constraints, planning multi-step actions as graph transformations, or when skills need to share state. Trigger on "remember", "what do I know about", "link X to Y", "show dependencies", entity CRUD, or cross-skill data access.
Ultimate AI agent memory system for Cursor, Claude, ChatGPT & Copilot. WAL protocol + vector search + git-notes + cloud backup. Never lose context again. Vibe-coding ready.
Headless browser automation CLI optimized for AI agents with accessibility tree snapshots and ref-based element selection