Swaps tokens on Base and Polygon using the CDP Swap API through the awal CLI. Handles multiple amount formats including dollar notation, decimals, and atomic units, with built-in aliases for USDC, ETH, and POL. The input validation is thorough, which matters since you're passing user input to a bash command that moves real money. Supports custom slippage and works with arbitrary contract addresses by reading decimals on-chain. You'll need to be authenticated first, and the error messages are clear enough to debug when trades fail. Straightforward tool if you need programmatic token swaps without building your own DEX integration.

skills.sh installs
3.1K
GitHub stars
128
last updated
Aug 21, 2026

Install

$ npx -y skills add coinbase/agentic-wallet-skills --skill trade --agent claude-code

Installs into .claude/skills of the current project.

Files

Swaps tokens on Base and Polygon using the CDP Swap API through the awal CLI. Handles multiple amount formats including dollar notation, decimals, and atomic units, with built-in aliases for USDC, ETH, and POL. The input validation is thorough, which matters since you're passing user input to a bash command that moves real money. Supports custom slippage and works with arbitrary contract addresses by reading decimals on-chain. You'll need to be authenticated first, and the error messages are clear enough to debug when trades fail. Straightforward tool if you need programmatic token swaps without building your own DEX integration.

Browse the repository on GitHub

Sponsors

Details

Repository
github.com/coinbase/agentic-wallet-skills
Categories
AI & Agent Building, Finance & Trading, Web3 & Blockchain

More from coinbase/agentic-wallet-skills

All 10
1hashicorp avatarpush-to-registryhashicorp/agent-skillsPush Packer build metadata to HCP Packer registry for tracking and managing image lifecycle. Use when integrating Packer builds with HCP Packer for version cont3.1Kskills.sh installs
2openai avatarfigma-useopenai/skills**MANDATORY prerequisite** — you MUST invoke this skill BEFORE every `use_figma` tool call. NEVER call `use_figma` directly without loading this skill first. Sk3.1Kskills.sh installs
3hoodini avatarowasp-securityhoodini/ai-agents-skillsImplement secure coding practices following OWASP Top 10. Use when preventing security vulnerabilities, implementing authentication, securing APIs, or conductin3.1Kskills.sh installs
4openai avatarfigma-generate-designopenai/skillsUse this skill alongside figma-use when the task involves translating an application page, view, or multi-section layout into Figma. Triggers: 'write to Figma',3Kskills.sh installs
5paulrberg avatartailwind-csspaulrberg/agent-skillsUse for Tailwind v4 styling: add/fix classes, configure or migrate Tailwind, use tailwind-variants, or tw-animate-css.3Kskills.sh installs
6elastic avatarelasticsearch-authnelastic/agent-skillsAuthenticate to Elasticsearch using native, file-based, LDAP/AD, SAML, OIDC, Kerberos, JWT, or certificate realms. Use when connecting with credentials, choosin3Kskills.sh installs