Agentic PaymentsPolygon Agent CLI

Overview

An end-to-end CLI toolkit for AI agents to get onchain on Polygon: wallet creation, swaps, onramps, and identity registration.

The Polygon Agent CLI gives AI agents everything they need to operate onchain on Polygon: wallet creation, token transfers, swaps, onramps, and identity registration in a single tool.

It ships with a SKILL.md that AI agents (Claude, OpenClaw) can load directly, so agents can use every command without custom integration code.


Features

FeatureDescription
Smart walletSession-based Sequence Ecosystem Wallet with per-token spend limits, contract whitelists, and time-based expiry
Token operationsSend, swap, bridge, and deposit tokens. Gas paid in stablecoins, no POL required
Onramp via TrailsBridge assets cross-chain into your Polygon wallet from any supported network
Balance & historyQuery ERC-20/721/1155 balances and transaction history via the Sequence Indexer
ERC-8004 identityRegister agents onchain as NFTs with verifiable reputation scores
x402 paymentsHTTP-native micropayments for agent-to-agent and agent-to-service transactions
Local key storageCredentials never leave the device. Encrypted at rest, sessions expire after 24 hours

Use cases

Give every agent its own programmable wallet

  • Personal finance agents that autonomously move funds between wallets, stablecoins, and DeFi vaults.
  • Trading agents that execute based on strategies, signals, arbitrage opportunities, or DCA regularly.
  • Cross-chain agents that can move money anywhere and pay with anything. Automatically swap and bridge to execute any smart contract function using any token they hold.

Pay other agents or services

  • Pay for APIs, SaaS, analytics, or compute automatically via x402.
  • Register your agent's onchain identity via ERC-8004. Find other agents through the registry and pay for services autonomously.

Participate in the agentic economy

  • Let your agent work for you: yield farming across multiple protocols, stablecoin rebalancing, managing liquidity positions. Secure, autonomous programmable finance.
  • Query, create, and execute bids on Polymarket automatically. Have your agent catch up on market signals to gain an edge.

Next steps

  • Quickstart: Set up the CLI and run your first onchain operation
  • Architecture: How smart wallets, Trails, ERC-8004, and x402 work under the hood
  • CLI Reference: Full command reference
Edit on GitHub

Last updated on