demo-agents-sdk
by jameslawton
Coding Agents & IDEsBrief
Complete Polygon agent toolkit.
Description
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
User asks: register my agent on-chain and check its reputation
- 1
Runs
polygon-agent setup --name MyAgentto create EOA and Sequence project - 2
Exports SEQUENCE_PROJECT_ACCESS_KEY and runs
wallet createto provision session wallet - 3
Runs
polygon-agent agent register --name MyAgent --broadcastto mint ERC-8004 NFT and get agentId - 4
Runs
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
- SEQUENCE_PROJECT_ACCESS_KEY (from Sequence Builder after setup)
- SEQUENCE_INDEXER_ACCESS_KEY (for balance checks)
- TRAILS_API_KEY (optional, for token operations via Trails)
Installation
clawhub install jameslawton/demo-agents-sdkRun the CLI command, or paste the prompt into Claude Code, Cursor, Codex or whichever coding agent you use.