Setup & Installation
Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:
Version History
- Switched wallet approval tunnel from ngrok to Cloudflare Quick Tunnel (`*.trycloudflare.com`). - `cloudflared` binary is auto-downloaded and managed in `~/.polygon-agent/bin/cloudflared`. - Approval URL is now only valid during the active CLI session—open it immediately; never reuse an old URL. - Expanded troubleshooting section with guidance for tunnel errors and cloudflared issues. - Manual fallback updated: cloudflared absence now triggers browser copy/paste flow and new troubleshooting advice.
What This Skill Does
CLI toolkit for running agents on Polygon with session-based smart contract wallets. Handles token operations (send, swap, bridge, deposit), on-chain identity and reputation via ERC-8004, and x402 micropayments. Encrypted local storage keeps keys and session data on disk.
Bundles wallet creation, session approval, token operations, and on-chain identity into a single CLI so agents don't need separate integrations for each concern.
When to use it
- Sending USDC or native POL from an agent wallet to another address
- Swapping tokens across chains without managing raw transaction signing
- Registering an agent on-chain and querying its reputation score
- Making x402 micropayments to paywalled API endpoints
- Setting spending limits on a session wallet before handing it to an automated process
Example Workflow
Here's how your AI assistant might use this skill in practice.
User asks: register my agent on-chain and check its reputation
- 1Runs `polygon-agent setup --name MyAgent` to create EOA and Sequence project
- 2Exports SEQUENCE_PROJECT_ACCESS_KEY and runs `wallet create` to provision session wallet
- 3Runs `polygon-agent agent register --name MyAgent --broadcast` to mint ERC-8004 NFT and get agentId
- 4Runs `polygon-agent agent reputation --agent-id <id>` to fetch on-chain reputation data
Agent is registered on Polygon mainnet with an ERC-721 identity NFT; reputation registry returns current score and tags
Requirements
Accounts, API keys, or tools you or your AI assistant may need to set up while using this skill.