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.
Why use this skill?
Manage Polygon smart contract wallets, ERC-8004 identities, and x402 micropayments with the Polygon Agent CLI toolkit for OpenClaw.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/jameslawton/polygon-agents-cliWhat This Skill Does
The polygon-agent-cli skill provides a comprehensive toolkit for managing on-chain identities and financial operations within the Polygon ecosystem. It serves as a unified command-line interface for the Sequence smart contract wallet architecture, enabling seamless token transactions, including sending, swapping, bridging, and deposits via Trails. Beyond simple wallet management, it implements ERC-8004 standards for on-chain agent identity and reputation, facilitating x402 micropayments. All sensitive data is secured using AES-256-GCM encryption within the user's local directory, ensuring that private keys and session-based wallet configurations remain protected from unauthorized access.
Installation
To install this skill, run the following command in your OpenClaw environment:
clawhub install openclaw/skills/skills/jameslawton/polygon-agents-cli
Ensure you have Node.js 22 or higher installed on your system. Once the skill is installed, the global command polygon-agent becomes available. Configuration requires setting the SEQUENCE_PROJECT_ACCESS_KEY environment variable, which handles project access, indexer queries, and Trails API integration concurrently.
Use Cases
- Agent Autonomy: Provisioning autonomous agents with unique on-chain identities using ERC-8004.
- Micropayment Handling: Utilizing x402 micropayments for automated resource allocation and service monetization.
- Portfolio Management: Managing cross-chain assets through a secure, encrypted CLI interface.
- Smart Contract Interactions: Executing complex transactions like token swaps and cross-chain bridging without manual raw transaction signing.
Example Prompts
- "Setup a new agent identity named 'FinanceBot' and provide me the initial setup configuration."
- "Check the current balances for my ecosystem wallet and list all available tokens."
- "Register my agent 'FinanceBot' on the Polygon mainnet to establish its on-chain reputation."
Tips & Limitations
- Always use the
polygon-agent fundcommand to generate your funding URL rather than manually constructing one; this ensures the address is correctly bound to your session. - Your
SEQUENCE_PROJECT_ACCESS_KEYis highly sensitive; treat it with the same security level as a private key. - The tool is designed for programmatic agents; while human-readable, the CLI outputs are optimized for integration into agentic workflows.
- Ensure your environment variables are correctly exported in your shell profile to maintain session continuity across reboots.
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-cli": {
"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.
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.
trails
Integrate Trails cross-chain infrastructure — Widget, Headless SDK, or Direct API