polygon-agent-kit
Complete Polygon agent toolkit. Session-based smart contract wallets (Sequence), token ops (send/swap/bridge/deposit via Trails), ERC-8004 on-chain identity + reputation, x402 micropayments. Single CLI entry point, AES-256-GCM encrypted storage.
Why use this skill?
Build autonomous Polygon AI agents with the polygon-agent-kit. Manage smart wallets, execute swaps, and register on-chain identities with ERC-8004.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/jameslawton/polygon-agents-sdkWhat This Skill Does
The polygon-agent-kit is a sophisticated toolkit designed for developers building autonomous AI agents on the Polygon ecosystem. It serves as the primary gateway for managing smart contract wallets, handling token operations, and establishing on-chain identities using ERC-8004 standards. By integrating Sequence's session-based smart wallets and Trails for cross-chain liquidity, the kit provides a secure, abstracted layer for agents to interact with decentralized finance protocols. It features AES-256-GCM encrypted local storage for keys, ensuring that your agent's sensitive credentials remain protected while enabling high-frequency micropayments and automated transaction execution.
Installation
To integrate this skill into your environment, use the OpenClaw hub command: clawhub install openclaw/skills/skills/jameslawton/polygon-agents-sdk. Ensure you have Node.js 20+ installed on your system. Once installed, the polygon-agent CLI acts as your command center. You must perform an initial setup to authorize your agent with Sequence Builder, which will generate your essential access keys. Always configure your environment variables (specifically SEQUENCE_PROJECT_ACCESS_KEY and SEQUENCE_INDEXER_ACCESS_KEY) to enable full functionality of the wallet and indexing features.
Use Cases
- Autonomous DeFi Agents: Build agents that automatically rebalance portfolios or swap assets using integrated Trails infrastructure.
- Micropayment-Enabled Bots: Utilize x402 payment flows to collect fees for agent services or perform permissioned on-chain actions.
- On-chain Reputation Management: Register your agents as unique entities on the Polygon network using ERC-8004, allowing for verifiable identity and historical performance tracking.
- Automated Funding Flows: Generate secure, user-specific funding URLs to allow non-technical users to deposit funds into your agent's ecosystem wallet without manual address handling.
Example Prompts
- "Check the current balances for my ecosystem wallet and report the USDC and MATIC holdings."
- "Register my new agent named 'TradeBot-Alpha' on the Polygon mainnet and return the agentId."
- "Set up a spending limit of 50 USDC for my primary agent wallet and verify the configuration."
Tips & Limitations
- Security: Never share your private keys generated during the setup phase; they are encrypted locally for a reason. Keep your
~/.polygon-agent/directory backed up securely. - Wallet Management: Always use the provided
fundcommand to retrieve funding URLs. Avoid hardcoding wallet addresses, as they are managed via session-based state. - Debugging: If transactions fail, enable
POLYGON_AGENT_DEBUG_FETCHto inspect HTTP logs in~/.polygon-agent/fetch-debug.log, which provides granular visibility into failed RPC calls.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-jameslawton-polygon-agents-sdk": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: network-access, file-write, file-read, external-api
Related Skills
polygon-agent-kit
Complete Polygon agent toolkit. Session-based smart contract wallets (Sequence), token ops (send/swap/bridge/deposit via Trails), ERC-8004 on-chain identity + reputation, x402 micropayments. Single CLI entry point, AES-256-GCM encrypted storage.
sequence-builder
Manage Sequence smart wallets, projects, API keys, ERC20 transfers, and query blockchain data using the Sequence Builder CLI. Use when user asks about creating wallets, sending tokens, checking balances, managing Sequence projects, or interacting with EVM blockchains.
polygon-agent-cli
Complete Polygon agent toolkit. Session-based smart contract wallets (Sequence), token ops (send/swap/bridge/deposit via Trails), ERC-8004 on-chain identity + reputation, x402 micropayments. Single CLI entry point, AES-256-GCM encrypted storage.
trails
Integrate Trails cross-chain infrastructure — Widget, Headless SDK, or Direct API