By pancakeswap
Automate PancakeSwap DeFi operations with AI: discover tokens, plan optimal swaps across chains, provision liquidity with IL/APY analysis via DefiLlama, collect LP fees with USD estimates, and generate deep links for execution. Integrate swaps into React/Next.js frontends, Node/Python backends, and Solidity contracts using Routing API or Smart Router.
npx claudepluginhub pancakeswap/pancakeswap-aiCheck and collect LP fees from PancakeSwap V3 and Infinity (v4) positions. Use when user says "collect my fees", "claim LP fees", "how much fees have I earned", "pending fees", "uncollected fees", "/collect-fees", "harvest LP fees", or asks about fees from a specific token pair position.
Plan liquidity provision on PancakeSwap. Use when user says "add liquidity on pancakeswap", "provide liquidity", "LP on pancakeswap", or describes wanting to deposit tokens into liquidity pools without writing code. Also use when a user holds two tokens and asks how to earn yield, get best profit, or put tokens to work — especially on Solana or any chain where farming is unavailable.
Integrate PancakeSwap swaps into applications. Use when user says "integrate swaps", "pancakeswap", "smart router", "add swap functionality", "build a swap frontend", "create a swap script", "smart contract swap integration", "use Universal Router", or mentions swapping tokens via PancakeSwap.
Plan and generate deep links for token swaps on PancakeSwap. Use when user says "swap on pancakeswap", "buy [token] with BNB", "pancakeswap swap", "I want to swap", "cross-chain swap", "bridge swap", or describes wanting to exchange tokens on PancakeSwap without writing code.
Uses power tools
Uses Bash, Write, or Edit tools
Share bugs, ideas, or general feedback.
Tools for integrating and interacting with PancakeSwap Hub
AI-powered assistance for discovering tokens, planning Uniswap swaps and liquidity positions, generating deep links to execute in the Uniswap interface
Find optimal DEX routes for token swaps across multiple exchanges
GMGN OpenAPI skills — token info, market data, wallet portfolio, and swap
No description provided.
Skill for developing and analyzing cryptocurrency trading strategies and market analysis.
PancakeSwap-specific AI tools (skills, plugins, agents) for developers and AI agents integrating the PancakeSwap ecosystem.
# Claude Code plugin marketplace
/plugin marketplace add pancakeswap/pancakeswap-ai
# Install individual plugins
/plugin install pancakeswap-driver # Swap & liquidity planning + deep links
/plugin install pancakeswap-farming # Farming planner
Once installed, just ask your agent:
Swap 0.1 BNB for USDT on PancakeSwap
The agent will read the skill, pick the right integration method, generate working TypeScript, and—if configured—execute the swap autonomously.
| Plugin | Skill | What it does |
|---|---|---|
pancakeswap-driver | swap-planner | Discover tokens, verify contracts, fetch prices, generate swap deep links |
pancakeswap-driver | liquidity-planner | Plan LP positions (V2, V3, StableSwap), assess pools, generate liquidity deep links |
pancakeswap-farming | farming-planner | Plan yield farming, CAKE staking, and reward harvesting with deep links |
User: "Swap 0.1 BNB for USDT"
│
▼
[PLAN] swap-planner skill → generates deep link for UI confirmation
│
▼
[PLAN] liquidity-planner skill → plans LP ranges and deep links
| Chain | V2 | V3 | Infinity | Infinity Stable | StableSwap |
|---|---|---|---|---|---|
| BNB Smart Chain (56) | ✅ | ✅ | ✅ | ✅ | ✅ |
| Ethereum (1) | ✅ | ✅ | — | — | ✅ |
| Arbitrum One (42161) | ✅ | ✅ | — | — | ✅ |
| Base (8453) | ✅ | ✅ | ✅ | — | — |
| zkSync Era (324) | ✅ | ✅ | — | — | — |
| Linea (59144) | ✅ | ✅ | — | — | — |
| opBNB (204) | ✅ | ✅ | — | — | — |
| Monad (143) | ✅ | ✅ | — | — | — |
| Document | Description |
|---|---|
| CLAUDE.md / AGENTS.md | Full project guidelines, plugin structure, development setup |
| swap-planner SKILL.md | Token discovery, price fetching, deep link generation |
| liquidity-planner SKILL.md | LP position planning (V2, V3, StableSwap) with pool assessment and deep links |
| farming-planner SKILL.md | Yield farming, CAKE staking, farm discovery with live APR |
# Unit tests (31 tests — helpers, slippage math, address validation)
npm test
# LLM evals (requires ANTHROPIC_API_KEY)
export ANTHROPIC_API_KEY=your-key
npm run test:evals:swap-planner
npm run test:evals:liquidity-planner # LP position planning evals
npm run test:evals:farming-planner # farming planning evals
npx promptfoo view # browse results in browser
Testnet tip: Get free BSC testnet BNB at https://testnet.bnbchain.org/faucet-smart
git clone https://github.com/pancakeswap/pancakeswap-ai.git
cd pancakeswap-ai
npm install
packages/plugins/your-plugin-name/.claude-plugin/plugin.json with skill declarationsskills/your-skill/SKILL.md with YAML frontmatter.claude-plugin/marketplace.jsonnode scripts/validate-plugin.cjsevals/suites/your-skill/See CLAUDE.md for the full contribution guide.
PRs should maintain ≥ 85% pass rate on all eval suites.
@pancakeswap/smart-router@pancakeswap/universal-router-sdk