8.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
Skill Snapshot
| name | pump-fun |
| description | Buy, sell, and launch tokens on Pump.fun using the PumpPortal API OpenClaw Skills integration. |
| owner | playdadev |
| repository | playdadev/pump-fun |
| language | Markdown |
| license | MIT |
| topics | |
| security | L1 |
| install | openclaw add @playdadev/pump-fun |
| last updated | Feb 7, 2026 |
Maintainer

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
-
Install dependencies:
cd {baseDir} npm install -
Set your environment variables:
export SOLANA_PRIVATE_KEY="your-base58-private-key" -
(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 curveraydium- Raydium AMM (for graduated tokens)pump-amm- Pump.fun AMMauto- Automatic pool selection (default)
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
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.
| Parameter | Type | Description |
|---|---|---|
mint | string | Token contract address |
amountSol | number | Amount of SOL to spend |
options.slippage | number | Slippage tolerance (default: 10%) |
options.priorityFee | number | Priority fee in SOL |
options.pool | string | Pool to use (auto, pump, raydium, etc.) |
sellTokens(mint, amount, options?)
Sell tokens on Pump.fun.
| Parameter | Type | Description |
|---|---|---|
mint | string | Token contract address |
amount | number | string | Token amount or percentage (e.g., "50%") |
options.slippage | number | Slippage tolerance (default: 10%) |
options.priorityFee | number | Priority fee in SOL |
options.pool | string | Pool to use (auto, pump, raydium, etc.) |
launchToken(name, symbol, description, options?)
Create and launch a new token.
| Parameter | Type | Description |
|---|---|---|
name | string | Token name (max 32 chars) |
symbol | string | Token symbol (max 10 chars) |
description | string | Token description |
options.devBuyAmountSol | number | Initial dev buy in SOL |
options.imagePath | string | Local path to token image |
options.imageUrl | string | URL to token image |
options.twitter | string | Twitter profile URL |
options.telegram | string | Telegram group URL |
options.website | string | Website URL |
Security Considerations
- Private Key Safety: Never share your private key. Use a dedicated trading wallet.
- Local Signing: All transactions are signed locally - your private key is never sent to any server.
- Test First: Always test with small amounts before trading larger sums.
- 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
| Pool | Description |
|---|---|
pump | Pump.fun bonding curve |
raydium | Raydium AMM (graduated tokens) |
pump-amm | Pump.fun AMM |
raydium-cpmm | Raydium CPMM |
bonk | Bonk launchpad |
auto | Automatic 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
- MoltBot - The AI assistant platform
- PumpPortal - The Pump.fun API provider
- Pump.fun - The token launchpad
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.
