PancakeSwap AI
pancakeswap.ai- Category
- AI Agents
- Rank
- No. 1207Tools index
- Pricing
- Open Source
- Type
- TOOL
- Use case
- Agent Building · Business & Commerce
- Interfaces
- Agent Skill / Plugin
- Builder
- @pancakeswap
- GitHub
- 48 stars
- Date
About
AI-powered tools and skills for building DeFi applications on PancakeSwap. Provides plugins, agents, and skills for integrating token swapping, liquidity management, and farming into any AI coding assistant.
What it does
Give it a swap, liquidity, fee collection, or farming goal. Its Markdown skills guide a coding agent through token checks, live pool and reward data, position analysis, and TypeScript generation. Planning flows end with PancakeSwap deep links for user confirmation, while configured agents may execute swaps.
Why it's ranked here
This is unusually concrete agent guidance for one protocol. It combines planning instructions with scripts that query explorer services, price feeds, reward campaigns, and contracts. Broad chain and pool coverage adds practical value. However, capabilities vary by chain, and several data helpers quietly return empty or zero results when upstream services fail.
What's good
The planners cover the whole decision path, not merely transaction syntax. They verify token contracts, compare pools, calculate fee and reward returns, inspect existing positions, and produce links into the relevant interface. Unit tests cover helpers, slippage math, and address validation. Separate LLM evaluations check correctness, required output, and dangerous patterns.
Tradeoffs
This is PancakeSwap-specific guidance rather than a general DeFi framework. Infinity contract inspection is narrower than basic pool discovery, with some helpers limited to BNB Smart Chain and Base. Results depend on public RPC endpoints and several external APIs. Many fetch failures become empty arrays or zero values, which keeps agents running but can hide stale or unavailable data. LLM evaluations require an Anthropic API key.
How to use it well
It suits developers who already use a Markdown-capable coding agent and need reliable PancakeSwap research or integration scaffolding. Start with planning, inspect verified addresses and live values, then follow the generated interface link for confirmation. Use testnet before risking funds. Keep separate wallet, signing, and operational controls, since autonomous execution only exists when configured.
Technical notes+
The private npm workspace in package.json targets Node.js 22 or newer and npm 11.7 or newer. packages/plugins/pancakeswap-driver/skills/common/discover-pools.mjs combines explorer queries, APR enrichment, protocol filtering, Solana handling, and selected on-chain reads. packages/plugins/pancakeswap-driver/skills/collect-fees/references/fetch-v3-positions.mjs simulates V3 fee collection through viem, while packages/plugins/pancakeswap-driver/skills/collect-fees/references/fetch-infinity-positions.mjs computes Infinity CL fees and Bin token amounts. Python helpers under packages/plugins/pancakeswap-farming/skills/ query reward contracts and pricing APIs, sometimes installing requests at runtime. docs/evals/index.md documents Promptfoo suites using rubric, string-presence, string-absence, and cost assertions.
Observed
- License
- MIT
- Packaging
- Private npm workspace with plugins under packages/plugins/*
- Install surface
- Claude Code marketplace with separately installable driver and farming plugins
- Interfaces
- Markdown agent skills, environment-driven helper scripts, JSON or table output, and PancakeSwap deep links
- Implementation
- JavaScript modules, Python reference scripts, and Markdown documentation
- Protocol coverage
- V2, V3, Infinity, Infinity Stable, and StableSwap support varies by chain
- Chain coverage
- BNB Smart Chain, Ethereum, Arbitrum One, Base, zkSync Era, Linea, opBNB, and Monad are documented
- Testing
- Unit tests plus three Promptfoo LLM evaluation suites
Read from README.md, package.json, packages/plugins/pancakeswap-driver/skills/common/farm-apr.py, packages/plugins/pancakeswap-driver/skills/common/pool-apr.mjs, packages/plugins/pancakeswap-driver/skills/common/protocol-fee.mjs, packages/plugins/pancakeswap-driver/skills/common/discover-pools.mjs, packages/plugins/pancakeswap-farming/skills/farming-planner/references/fetch-farms.py, packages/plugins/pancakeswap-driver/skills/collect-fees/references/fetch-v3-positions.mjs, packages/plugins/pancakeswap-farming/skills/harvest-rewards/references/fetch-v3-pending.py, packages/plugins/pancakeswap-farming/skills/farming-planner/references/fetch-syrup-pools.py, packages/plugins/pancakeswap-farming/skills/harvest-rewards/references/fetch-syrup-pending.py, packages/plugins/pancakeswap-driver/skills/collect-fees/references/fetch-infinity-positions.mjs, packages/plugins/pancakeswap-farming/skills/harvest-rewards/references/fetch-infinity-pending.py, docs/index.md, docs/evals/index.md.
What it can do
Swap tokens on PancakeSwap
Token pair and swap parameters → Executed token swap transaction
Manage liquidity pools
Token pair and liquidity amounts → Liquidity position in specified pool
Execute yield farming operations
Farm selection and stake amounts → Active farming position generating rewards
Generate DeFi integration code
Natural language requirements for PancakeSwap functionality → Code implementing specified DeFi operations
Deploy AI agents for automated trading
Trading strategy parameters and conditions → Autonomous trading agent executing strategies
Integrate PancakeSwap APIs into applications
Application requirements and blockchain network selection → Functional API integration code and plugins
Tags
Tech Stack
Media
Comments (0)
No comments yet
Editorially curated, with community endorsements as a secondary signal. Corrections welcome.