polygon-defi

Installation
SKILL.md

Swap, Bridge & Deposit

Session Prerequisites

Before any DeFi operation, the wallet must be logged in. The embedded wallet can call any contract and spend any amount it holds — there is no contract whitelist and no per-token spend limit, so no special setup is needed for deposits, swaps, or withdrawals. If the user is not logged in, log in now:

agent wallet login

This opens the agentconnect login page in the browser; choose Google or email, and once you sign in the embedded wallet is created or unlocked. This works whether the browser is local or remote, so no extra flags are needed on headless hosts. The wallet address is the same across all chains. Sessions last about a week; if calls start failing with an expired-session error, just re-run wallet login.


Swap Tokens (Same-Chain)

# Dry-run — shows route and output amount
agent swap --from USDC --to USDT --amount 5
Installs
98
GitHub Stars
30
First Seen
Apr 14, 2026
polygon-defi — 0xpolygon/polygon-agent-cli