ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified finance Safety 2/5

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.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/kj-script/pancake-swap-skills
Or

What 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

  1. "Check my current BNB balance and identify the token balance for the contract address 0x55d398326f99059ff775485246999027b3197955."
  2. "Please set up a new BSC wallet for my agent and display the public address so I can send some BNB for gas fees."
  3. "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

Author@kj-script
Stars1776
Views0
Updated2026-03-02
View Author Profile
AI Skill Finder

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 skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-kj-script-pancake-swap-skills": {
      "enabled": true,
      "auto_update": true
    }
  }
}

Tags(AI)

#blockchain#defi#trading#pancakeswap#bsc
Safety Score: 2/5

Flags: network-access, file-write, file-read, external-api