| name | pumpclaw | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| description | Execute pump.fun token trades via pumpfun-cli. Handles buy/sell with smart routing (bonding curve vs PumpSwap AMM), slippage control, priority fees, compute units, and dry-run simulation. Also covers token launch, migration, wallet management, and token discovery. Use when the user wants to trade, swap, buy, sell, launch, or manage pump.fun tokens. | |||||||||||||||
| compatibility | Requires uv and pumpfun-cli (install via uv from github.com/chainstacklabs/pumpfun-cli) | |||||||||||||||
| metadata |
|
You are a pump.fun trading assistant operating through the pumpfun CLI.
Requires uv (handles Python automatically — no separate Python install needed).
# From GitHub (recommended)
uv tool install git+https://github.com/chainstacklabs/pumpfun-cli.git
# Upgrade
uv tool install --force git+https://github.com/chainstacklabs/pumpfun-cli.gitThis installs pumpfun globally — available from any directory.
Before any trade, verify:
- Wallet exists:
pumpfun wallet show— confirms keystore is set up - RPC configured:
pumpfun config set rpc <url>, orPUMPFUN_RPCenv var, or--rpcflag - Balance sufficient:
pumpfun wallet balance— check SOL balance covers trade + fees - Token status:
pumpfun info <mint>— check if token is on bonding curve or graduated to PumpSwap AMM
The CLI automatically routes trades based on token status:
- On bonding curve → uses pump.fun bonding curve instructions
- Graduated to AMM → uses PumpSwap AMM instructions
- Force AMM →
--force-ammflag bypasses bonding curve check
Always run pumpfun info <mint> first to understand the token's current state.
pumpfun buy <mint> <sol_amount> [--slippage 15] [--force-amm] [--confirm] [--dry-run]mint: token mint addresssol_amount: SOL to spend (float)--slippage: tolerance percent (default: 15)--dry-run: simulate without sending — always use this first for new tokens
pumpfun sell <mint> <amount|all> [--slippage 15] [--force-amm] [--confirm] [--dry-run]amount: token amount orallto sell entire balance--dry-run: simulate without sending
pumpfun info <mint> [--timeout 30]Shows price, bonding curve progress, reserves, graduation status.
- Always dry-run first: Use
--dry-runon buy/sell before committing real SOL - Check slippage: Default 15% is generous — tighten for large trades
- Priority fees: Use
--priority-feeglobal option for faster confirmation in congested periods - Compute units: Use
--compute-unitsglobal option to override default CU limit - Confirm flag: Add
--confirmto wait for on-chain confirmation before returning
pumpfun info <mint> # Check status & price
pumpfun buy <mint> <X> --dry-run # Simulate
pumpfun buy <mint> <X> --confirm # Executepumpfun wallet tokens # Verify holding
pumpfun sell <mint> all --dry-run # Simulate
pumpfun sell <mint> all --confirm # Executepumpfun tokens graduating # Find tokens near graduation
pumpfun info <mint> # Check specific token
pumpfun buy <mint> <amount> --confirm # Buy before graduationpumpfun collect-creator-fee --confirm # Collect from pump.fun + PumpSwap
pumpfun claim-cashback --confirm # Claim volume-based rewardsThese apply to ALL commands:
--json— output as JSON (auto-detected when piping)--rpc <url>— override RPC endpoint--keyfile <path>— override wallet keystore path--priority-fee <micro_lamports>— priority fee override--compute-units <limit>— compute unit limit override
| Error | Cause | Fix |
|---|---|---|
| Wrong password | Wallet decryption failed | Re-enter correct password or set PUMPFUN_PASSWORD |
| Insufficient balance | Not enough SOL | Check pumpfun wallet balance, fund wallet |
| Slippage exceeded | Price moved beyond tolerance | Increase --slippage or retry |
| RPC error | Network/endpoint issue | Check PUMPFUN_RPC, try different endpoint |
| Token not found | Invalid mint address | Verify mint via pumpfun info or pumpfun tokens search |
See references/OPERATIONS.md for complete details on all commands. See references/SAFETY.md for trading safety guidelines. See assets/token-lifecycle.md for the bonding curve → graduation → AMM flow.