What you'll get
Let an AI agent handle your token trades on Base and Polygon networks. Instead of logging into an exchange, just ask to swap or buy tokens and the agent executes the trade for you. You stay in your workflow while the AI manages wallet authentication, slippage, and transaction details behind the scenes.
Step 1 — Get the skill source URL
The Token Swap on Base & Polygon skill lives at:
Step 2 — Add it to your AI agent
Copy one of these prompts and paste it into your AI tool. The agent will fetch and install the skill for you.
Claude Code
Add the agent skill from https://github.com/coinbase/agentic-wallet-skills/tree/main/skills/trade to my project.
Cursor
Install this agent skill: https://github.com/coinbase/agentic-wallet-skills/tree/main/skills/trade
Codex
Add this skill to .codex/skills/: https://github.com/coinbase/agentic-wallet-skills/tree/main/skills/trade
Gemini CLI
Add the skill at https://github.com/coinbase/agentic-wallet-skills/tree/main/skills/trade to my .gemini/skills/ directory.
OpenCode
Install this agent skill from https://github.com/coinbase/agentic-wallet-skills/tree/main/skills/trade
Windsurf
Add this skill: https://github.com/coinbase/agentic-wallet-skills/tree/main/skills/trade
Step 3 — Try these prompts
Once the skill is installed, ask your AI things like:
- Buy or sell crypto without leaving your AI chat
- Swap tokens quickly without navigating an exchange UI
- Managing small trades or testing token conversions
- You need a simple way to convert between USDC, ETH, or POL
What this skill does
- Swaps tokens like ETH, USDC, and POL on Base or Polygon networks
- Accepts plain requests like 'buy $10 of ETH' or 'sell ETH for USDC'
- Handles dollar amounts, decimals, and atomic units automatically
- Checks wallet balance and authentication before executing trades
- Supports custom slippage settings and outputs JSON results if needed