Polygon launches an onchain toolkit built for the agent economy
The Polygon Agent CLI gives agents everything they need to transact. Wallets, payments, security, and identity in one install
.png)
tl;dr
- The Polygon Agent CLI gives AI agents a complete onchain toolkit in a single install, including wallets, tokens, swaps, bridging, identity, and payments
- Agents pay for everything in stablecoins
- Native ERC-8004 support: agents get verifiable onchain identity and reputation
- x402 support lets agents pay for APIs and data feeds per-request, in stablecoins
- Install in one line; works with Claude and Openclaw
Polygon Labs today announced the launch of the Polygon Agent CLI, an end-to-end toolkit that enables AI agents to securely create wallets, move stablecoins, bridge assets, and register onchain identity, settling on Polygon.
Available now via GitHub and as an installable skill for agent frameworks, the Agent CLI is designed to give developers the fastest path from zero to an agent that can safely hold money, spend money, and be trusted by other agents and services.
This is infrastructure for programmable money.
One install. Everything an agent needs to operate onchain: pre-integrated, agent-aware, and secure by default.
This is infrastructure for programmable money.
The problem is infrastructure, not intelligence
AI agents can reason. They can plan. They can execute workflows.
But the moment they need to move funds onchain, most teams are assembling the answer themselves:
- A wallet library
- A gas abstraction layer
- A swap API
- A bridge API
- An identity system
Each from a different provider, and none designed for agent-specific threat models.
The result is fragmented, fragile infrastructure sitting underneath systems that are supposed to operate autonomously.
The Polygon Agent CLI replaces that stack with one integrated toolkit. Easy to install:
> npm install -g @polygonlabs/agent-cli
That's it. From there, your agent can create a wallet, check balances across chains, send tokens, swap, bridge, register an onchain identity, build reputation, and pay for x402 endpoints.
All in stablecoins, all without touching a native gas token.
What's in the box
The Polygon Agent CLI gives AI agents everything they need to operate onchain:
- Wallets with built-in guardrails: Create and manage session-scoped wallets with configurable allowances, spending limits, and contract permissions, mitigating prompt injection risk at the infrastructure level.
- Send, swap, bridge, or do anything onchain: Pay in any token for any onchain action. Built-in swapping, bridging, DeFi deposits, and more.
- Onchain agent identity and reputation: Register your agent and build portable, verifiable reputation via ERC-8004.
- Integrated APIs: Query cross-chain token balances, transaction history, and onchain state via dedicated RPCs and a built-in token indexer.
- Payments-first, gas-abstracted: Native gas abstraction built in. Agents pay end-to-end in stablecoins for every interaction. No gas token management required.
How it's built
The CLI is built with three layers that work together in a single system.
Wallet infrastructure: Session-scoped smart contract wallets. Your agent gets a smart wallet with per-token spending limits, contract whitelists, and 24-hour expiry. The private key never enters the agent's context, which matters a lot when you're running an LLM that could be prompted to leak it.
Transaction orchestration: One command to swap, bridge, or execute any onchain action. Polygon’s Trails handles routing, price discovery, and execution under the hood. Your agent doesn't need to know which DEX it's using, it just tells Trails what it wants and Trails handles the rest.
ERC-8004, for onchain agent identity and reputation: Co-authored by MetaMask, the Ethereum Foundation, Google, and Coinbase, this is the part that makes agent-to-agent commerce possible. ERC-8004 is the emerging Ethereum standard for agent identity. With the Polygon Agent CLI, registering your agent's identity is a single command.
From there, your agent can accumulate reputation, become discoverable by other agents and services, and participate in a trustless agent economy.
Stablecoin-native, gas-abstracted, x402-ready
Three things that matter for agents specifically:
No gas token management. Agents pay for every onchain action in USDC. No need to hold POL, ETH, or any native gas token. The abstraction layer handles it.
Keys never touch the LLM. The session wallet architecture keeps private keys encrypted at rest and out of the agent's context window. Prompt injection attacks can't convince an agent to give over the keys they don’t know.
x402 for HTTP micropayments. As more APIs and data services adopt the x402 protocol, agents can pay per-request in stablecoins as part of the normal HTTP flow. No API keys to manage. No subscriptions. The agent just pays for what it uses.
Every command is a dry run by default
Before any transaction broadcasts, the CLI shows your agent exactly what will happen. In agentic contexts where an agent might be making thousands of decisions, preview-before-commit is the safety layer that keeps humans in control of what actually touches the chain.
Works where you already build
Install as a skill via Openclaw (one line), as a Claude skill, or clone the repo directly. Works with LangChain, CrewAI, and any framework that supports tool use.
The agent gets full context and can execute wallet, token, swap, and identity operations autonomously.
Get started
Install: npm install -g @polygonlabs/agent-cli
Docs: docs.polygon.technology/payment-services/agentic-payments/polygon-agent-cli
GitHub: github.com/0xPolygon/polygon-agent-CLI
The agent economy needs infrastructure. This is it.

.png)
.png)




.png)
%20(1).png)
.png)



.jpg)
.jpg)