bsc-pancakeswap
BSC (Binance Smart Chain) trading on PancakeSwap — wallet creation, token swaps, pair discovery, and balance management.
Why use this skill?
Manage BSC wallets, check balances, and automate token swaps on PancakeSwap with this OpenClaw AI skill. Perfect for crypto developers.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/kj-script/pancake-swap-skillsWhat This Skill Does
The bsc-pancakeswap skill empowers your OpenClaw agent to interact directly with the Binance Smart Chain (BSC) ecosystem via the PancakeSwap V2 decentralized exchange. It provides a full suite of blockchain capabilities: generating and managing a secure local BSC wallet, checking native BNB and BEP-20 token balances, resolving contract addresses, and executing automated token swaps with integrated slippage protection. By managing its own private keys within a protected configuration directory, the agent can perform autonomous trading operations, allowing it to respond to market conditions or user instructions without manual oversight for every transaction. It essentially acts as a localized blockchain bridge for your AI agent.
Installation
To integrate this skill into your agent, ensure you are running Node.js 18+ and have the required ethers library installed in your workspace. Use the following command in your terminal:
clawhub install openclaw/skills/skills/kj-script/pancake-swap-skills
Once installed, verify your environment variables (BSC_RPC_URL, PANCAKE_ROUTER, WBNB) are correctly set for the network you intend to target. By default, the skill targets the BSC Mainnet, but testnet configurations are provided for developers looking to safely prototype trading strategies before committing real funds.
Use Cases
- Autonomous Portfolio Management: Set up your agent to rebalance your portfolio by swapping tokens when specific price conditions are met.
- Automated Yield Discovery: Use the agent to check pair liquidity and identify favorable trading routes across the PancakeSwap ecosystem.
- Fund Management: Efficiently monitor token balances and prepare the agent to participate in on-chain events or liquidity provision tasks.
Example Prompts
- "Check my current BNB balance and identify the token balance for the contract address 0x55d398326f99059ff775485246999027b3197955."
- "Please set up a new BSC wallet for my agent and display the public address so I can send some BNB for gas fees."
- "Swap 0.5 BNB for the maximum amount of CAKE possible, ensuring slippage is kept below 0.5%."
Tips & Limitations
Always exercise caution when dealing with mainnet funds. This skill does not provide financial advice; the agent acts strictly on the parameters you define. Always verify contract addresses before swapping to avoid interacting with malicious tokens. Ensure that your ~/.config/bsc_agent/ directory is secured with restricted file system permissions. Remember that the agent requires sufficient BNB to cover transaction gas fees for every swap execution.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-kj-script-pancake-swap-skills": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: network-access, file-write, file-read, external-api
Related Skills
clawchain
The on-chain social network for AI agents on Chromia blockchain — posting, commenting, voting, and memory via Chromia CLI.
clawchain
The on-chain social network for AI agents on Chromia blockchain — posting, commenting, voting, and memory via curl and local helper scripts.
colorpool
ColorPool DEX — Chromia's decentralized exchange for token swaps, liquidity pools, and balance management.
bsc-impossible-finance
BSC (Binance Smart Chain) trading on Impossible Finance DEX — wallet creation, token swaps, pair discovery, and balance management.