skills$openclaw/pump-fun
playdadev8.8k

by playdadev

pump-fun – OpenClaw Skill

pump-fun is an OpenClaw Skills integration for coding workflows. Buy, sell, and launch tokens on Pump.fun using the PumpPortal API

8.8k stars7.6k forksSecurity L1
Updated Feb 7, 2026Created Feb 7, 2026coding

Skill Snapshot

namepump-fun
descriptionBuy, sell, and launch tokens on Pump.fun using the PumpPortal API OpenClaw Skills integration.
ownerplaydadev
repositoryplaydadev/pump-fun
languageMarkdown
licenseMIT
topics
securityL1
installopenclaw add @playdadev/pump-fun
last updatedFeb 7, 2026

Maintainer

playdadev

playdadev

Maintains pump-fun in the OpenClaw Skills directory.

View GitHub profile
File Explorer
15 files
.
src
cli.ts
5.1 KB
config.ts
1.3 KB
index.ts
1.4 KB
launch.ts
8.9 KB
trade.ts
6.6 KB
utils.ts
3.8 KB
_meta.json
271 B
docker-compose.yml
939 B
entrypoint.sh
1.1 KB
package-lock.json
37.5 KB
package.json
910 B
README.md
7.1 KB
SKILL.md
2.8 KB
tsconfig.json
501 B
SKILL.md

name: pump-fun description: Buy, sell, and launch tokens on Pump.fun using the PumpPortal API homepage: https://pump.fun user-invocable: true metadata: {"moltbot":{"requires":{"env":["SOLANA_PRIVATE_KEY"]},"primaryEnv":"SOLANA_PRIVATE_KEY"}}

Pump.fun Trading Skill

This skill enables trading and launching tokens on Pump.fun through the PumpPortal API.

Commands

Buy Tokens

Buy tokens on Pump.fun by specifying the token mint address and amount.

Usage: /pump-buy <mint_address> <amount_sol> [slippage]

Examples:

  • /pump-buy 7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU 0.1 - Buy 0.1 SOL worth of tokens
  • /pump-buy 7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU 0.5 15 - Buy with 15% slippage

Sell Tokens

Sell tokens on Pump.fun by specifying the token mint address and amount.

Usage: /pump-sell <mint_address> <amount|percentage> [slippage]

Examples:

  • /pump-sell 7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU 1000000 - Sell 1,000,000 tokens
  • /pump-sell 7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU 100% - Sell all tokens
  • /pump-sell 7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU 50% 10 - Sell 50% with 10% slippage

Launch Token

Create and launch a new token on Pump.fun.

Usage: /pump-launch <name> <symbol> <description> [dev_buy_sol]

Examples:

  • /pump-launch "My Token" MTK "A revolutionary token" 1 - Launch with 1 SOL dev buy
  • /pump-launch "Cool Coin" COOL "The coolest coin ever" - Launch with default dev buy

Configuration

Required Environment Variables

  • SOLANA_PRIVATE_KEY - Your Solana wallet private key (base58 encoded)

Optional Environment Variables

  • SOLANA_RPC_URL - Custom RPC endpoint (defaults to public mainnet)
  • PUMP_PRIORITY_FEE - Priority fee in SOL (default: 0.0005)
  • PUMP_DEFAULT_SLIPPAGE - Default slippage percentage (default: 10)

Setup

  1. Install dependencies:

    cd {baseDir}
    npm install
    
  2. Set your environment variables:

    export SOLANA_PRIVATE_KEY="your-base58-private-key"
    
  3. (Optional) Configure custom RPC:

    export SOLANA_RPC_URL="https://your-rpc-endpoint.com"
    

Security Notes

  • Never share your private key
  • Use a dedicated trading wallet with limited funds
  • Start with small amounts to test
  • The skill uses the Local Transaction API for maximum security (transactions are signed locally)

Fees

  • PumpPortal charges a 0.5% fee per trade
  • Standard Solana network fees apply
  • Priority fees are configurable

Supported Pools

The skill automatically selects the best pool, but supports:

  • pump - Pump.fun bonding curve
  • raydium - Raydium AMM (for graduated tokens)
  • pump-amm - Pump.fun AMM
  • auto - Automatic pool selection (default)
README.md

Pump.fun Skill for MoltBot

An open-source MoltBot skill that enables buying, selling, and launching tokens on Pump.fun using the PumpPortal Local Transaction API.

Features

  • Buy Tokens: Purchase tokens using SOL with configurable slippage
  • Sell Tokens: Sell tokens by amount or percentage (e.g., "50%", "100%")
  • Launch Tokens: Create and launch new tokens with custom metadata
  • Local Signing: All transactions are signed locally for maximum security
  • Multi-Pool Support: Automatic pool selection (pump, raydium, pump-amm, etc.)

Installation

Prerequisites

  • Node.js v22 or higher
  • MoltBot installed and configured
  • A Solana wallet with SOL for trading

Install Dependencies

cd pump-fun-skill
npm install
npm run build

Add to MoltBot

Copy the skill to your MoltBot skills directory:

# For managed skills (globally available)
cp -r pump-fun-skill ~/.clawdbot/skills/

# Or for workspace skills (project-specific)
cp -r pump-fun-skill /path/to/your/workspace/skills/

Configuration

Required Environment Variables

export SOLANA_PRIVATE_KEY="your-base58-encoded-private-key"

Optional Environment Variables

# Custom RPC endpoint (recommended for production)
export SOLANA_RPC_URL="https://your-rpc-endpoint.com"

# Priority fee in SOL (default: 0.0005)
export PUMP_PRIORITY_FEE="0.001"

# Default slippage percentage (default: 10)
export PUMP_DEFAULT_SLIPPAGE="15"

MoltBot Configuration

Add to your ~/.clawdbot/moltbot.json:

{
  skills: {
    entries: {
      "pump-fun": {
        enabled: true,
        env: {
          SOLANA_PRIVATE_KEY: "your-private-key",
          SOLANA_RPC_URL: "https://your-rpc-endpoint.com"
        }
      }
    }
  }
}

Usage

Via MoltBot Chat Commands

# Buy tokens
/pump-buy 7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU 0.1

# Buy with custom slippage
/pump-buy 7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU 0.5 15

# Sell specific amount
/pump-sell 7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU 1000000

# Sell percentage of holdings
/pump-sell 7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU 50%

# Sell all tokens
/pump-sell 7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU 100%

# Launch a new token
/pump-launch "My Token" MTK "An amazing new token" 1

Via CLI

# Build first
npm run build

# Buy tokens
node dist/cli.js buy <mint> <amount_sol> [slippage]

# Sell tokens
node dist/cli.js sell <mint> <amount|percentage> [slippage]

# Launch token
node dist/cli.js launch <name> <symbol> <description> [dev_buy_sol]

Programmatic Usage

import { buyTokens, sellTokens, launchToken } from 'pump-fun-skill';

// Buy 0.1 SOL worth of tokens
const buyResult = await buyTokens(
  '7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU',
  0.1,
  { slippage: 15 }
);

if (buyResult.success) {
  console.log('Transaction:', buyResult.data.explorerUrl);
}

// Sell 50% of your tokens
const sellResult = await sellTokens(
  '7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU',
  '50%'
);

// Launch a new token
const launchResult = await launchToken(
  'My Token',
  'MTK',
  'The best token on Solana',
  {
    devBuyAmountSol: 1,
    twitter: 'https://twitter.com/mytoken',
    website: 'https://mytoken.com'
  }
);

if (launchResult.success) {
  console.log('Token launched:', launchResult.data.pumpFunUrl);
}

API Reference

buyTokens(mint, amountSol, options?)

Buy tokens on Pump.fun.

ParameterTypeDescription
mintstringToken contract address
amountSolnumberAmount of SOL to spend
options.slippagenumberSlippage tolerance (default: 10%)
options.priorityFeenumberPriority fee in SOL
options.poolstringPool to use (auto, pump, raydium, etc.)

sellTokens(mint, amount, options?)

Sell tokens on Pump.fun.

ParameterTypeDescription
mintstringToken contract address
amountnumber | stringToken amount or percentage (e.g., "50%")
options.slippagenumberSlippage tolerance (default: 10%)
options.priorityFeenumberPriority fee in SOL
options.poolstringPool to use (auto, pump, raydium, etc.)

launchToken(name, symbol, description, options?)

Create and launch a new token.

ParameterTypeDescription
namestringToken name (max 32 chars)
symbolstringToken symbol (max 10 chars)
descriptionstringToken description
options.devBuyAmountSolnumberInitial dev buy in SOL
options.imagePathstringLocal path to token image
options.imageUrlstringURL to token image
options.twitterstringTwitter profile URL
options.telegramstringTelegram group URL
options.websitestringWebsite URL

Security Considerations

  1. Private Key Safety: Never share your private key. Use a dedicated trading wallet.
  2. Local Signing: All transactions are signed locally - your private key is never sent to any server.
  3. Test First: Always test with small amounts before trading larger sums.
  4. RPC Endpoint: Consider using a private RPC endpoint for better reliability and privacy.

Fees

  • PumpPortal API: 0.5% per trade
  • Solana Network: Standard transaction fees
  • Priority Fees: Configurable (default: 0.0005 SOL)

Supported Pools

PoolDescription
pumpPump.fun bonding curve
raydiumRaydium AMM (graduated tokens)
pump-ammPump.fun AMM
raydium-cpmmRaydium CPMM
bonkBonk launchpad
autoAutomatic selection (recommended)

Troubleshooting

"SOLANA_PRIVATE_KEY environment variable is required"

Set your private key:

export SOLANA_PRIVATE_KEY="your-base58-private-key"

"Invalid private key format"

Ensure your private key is base58 encoded (the format used by Phantom and other Solana wallets).

"Transaction failed: insufficient funds"

Make sure your wallet has enough SOL for the trade plus transaction fees.

"Slippage exceeded"

Increase the slippage parameter or try again when the market is less volatile.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

MIT License - see LICENSE for details.

Disclaimer

This software is provided as-is. Trading cryptocurrencies involves significant risk. Always do your own research and never trade more than you can afford to lose.

Credits

Permissions & Security

Security level L1: Low-risk skills with minimal permissions. Review inputs and outputs before running in production.

- Never share your private key - Use a dedicated trading wallet with limited funds - Start with small amounts to test - The skill uses the Local Transaction API for maximum security (transactions are signed locally)

Requirements

  • OpenClaw CLI installed and configured.
  • Language: Markdown
  • License: MIT
  • Topics:

Configuration

### Required Environment Variables - `SOLANA_PRIVATE_KEY` - Your Solana wallet private key (base58 encoded) ### Optional Environment Variables - `SOLANA_RPC_URL` - Custom RPC endpoint (defaults to public mainnet) - `PUMP_PRIORITY_FEE` - Priority fee in SOL (default: 0.0005) - `PUMP_DEFAULT_SLIPPAGE` - Default slippage percentage (default: 10)

FAQ

How do I install pump-fun?

Run openclaw add @playdadev/pump-fun in your terminal. This installs pump-fun into your OpenClaw Skills catalog.

Does this skill run locally or in the cloud?

OpenClaw Skills execute locally by default. Review the SKILL.md and permissions before running any skill.

Where can I verify the source code?

The source repository is available at https://github.com/openclaw/skills/tree/main/skills/playdadev/pump-fun. Review commits and README documentation before installing.