LaunchKit · 2026
Back to Skills

demo-agents-sdk

Complete Polygon agent toolkit.

0
396 downloads
by @jameslawton

Setup & Installation

openclaw skills install @jameslawton/demo-agents-sdk

Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:

npx clawhub install demo-agents-sdk

Version History

v0.1.4Feb 24, 2026 - Version note by skill developer:

- 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.

INPUT

User asks: register my agent on-chain and check its reputation

AGENT
  1. 1Runs `polygon-agent setup --name MyAgent` to create EOA and Sequence project
  2. 2Exports SEQUENCE_PROJECT_ACCESS_KEY and runs `wallet create` to provision session wallet
  3. 3Runs `polygon-agent agent register --name MyAgent --broadcast` to mint ERC-8004 NFT and get agentId
  4. 4Runs `polygon-agent agent reputation --agent-id <id>` to fetch on-chain reputation data
OUTPUT

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.

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)