# Pump swap SDK

> Pump swap SDK is an open-source agent skill for finance and payments. Guides code that quotes and builds PumpSwap AMM swap, deposit and withdraw instructions. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/nirholas/pump-swap-sdk/tree/main/plugins/pumpswap-sdk/skills/pump-swap-sdk
- **Repository:** https://github.com/nirholas/pump-swap-sdk
- **GitHub stars:** 37
- **License:** MIT
- **Skill name:** pump-swap-sdk
- **Collection:** https://github.com/nirholas/pump-swap-sdk
- **Categories:** [finance and payments](https://ai-powered.com/categories/finance-and-payments)
- **Listing updated:** 2026-12-01

## About

This skill teaches an agent to work with the @pump-fun/pump-swap-sdk package for the PumpSwap AMM program on Solana. The SDK builds TransactionInstruction arrays rather than signing or sending anything, so the caller assembles and submits the transaction. The skill explains the main conventions: amounts are BN values in raw base units of each mint, and slippage is given as a percentage.

The guide walks through two entry points, an online class that fetches on-chain pool state over a Connection and an offline builder that turns that state into instructions. It lists the four swap builders (buy and sell, sized by base or quote input), the deposit and withdraw flows, pool creation, and creator fee collection, along with the pure quote helpers. It also points the agent to the SDK source files to confirm method signatures before using anything not covered in the guide.

Safety rules are built in: quotes should use a read-only RPC, any signing or swapping step needs a summary table and explicit user confirmation, private keys and seed phrases are never requested or stored, and token metadata read from chain is treated as untrusted data. Expects a TypeScript project with @solana/web3.js and bn.js.

## When your agent uses it

> Write TypeScript that quotes and builds PumpSwap AMM swap, deposit and withdraw instructions on Solana with @pump-fun/pump-swap-sdk. Use when code needs to trade or provide liquidity on a PumpSwap pool.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/nirholas/pump-swap-sdk/tree/HEAD/plugins/pumpswap-sdk/skills/pump-swap-sdk)
- [License: MIT](https://github.com/nirholas/pump-swap-sdk/tree/HEAD/plugins/pumpswap-sdk/skills/pump-swap-sdk)

## Features

- **Swap instruction builders:** Covers the four buy and sell builders that take either base or quote as the fixed input amount.
- **Quote helpers:** Describes the offline quote functions for swaps, multi-hop routes and fee basis points.
- **Liquidity deposit and withdraw:** Outlines the autocomplete and explicit flows for adding and removing LP positions.
- **Pool creation and creator fees:** Explains how to build new pool instructions and collect coin creator vault fees.
- **Read-only quoting guidance:** Recommends a read-only RPC for quotes and a confirmation table before any signing step.

## Good for

- Write TypeScript that quotes a buy of a PumpSwap token
- Build sell instructions with slippage limits for a pool
- Add liquidity to an existing PumpSwap pool from base tokens
- Create a new PumpSwap pool and its initial instructions
- Collect creator fees from a PumpSwap coin vault

## Install

### Claude Code

This skill ships in the `pumpswap-sdk` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add nirholas/pump-swap-sdk
/plugin install pumpswap-sdk@pump-swap-sdk
```

Or copy only this skill to `~/.claude/skills/pump-swap-sdk`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/nirholas/pump-swap-sdk.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/pump-swap-sdk &&
cp -R "$tmp/plugins/pumpswap-sdk/skills/pump-swap-sdk" ~/.claude/skills/pump-swap-sdk &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/pump-swap-sdk` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/pump-swap-sdk` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/nirholas/pump-swap-sdk.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/pump-swap-sdk &&
cp -R "$tmp/plugins/pumpswap-sdk/skills/pump-swap-sdk" ~/.agents/skills/pump-swap-sdk &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/pump-swap-sdk` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/pump-swap-sdk` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/nirholas/pump-swap-sdk.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/pump-swap-sdk &&
cp -R "$tmp/plugins/pumpswap-sdk/skills/pump-swap-sdk" ~/.cursor/skills/pump-swap-sdk &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/pump-swap-sdk` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/nirholas/pump-swap-sdk.git --path plugins/pumpswap-sdk/skills/pump-swap-sdk
```

Or copy the folder to `~/.gemini/skills/pump-swap-sdk` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/pump-swap-sdk`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/nirholas/pump-swap-sdk.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/pump-swap-sdk &&
cp -R "$tmp/plugins/pumpswap-sdk/skills/pump-swap-sdk" ~/.copilot/skills/pump-swap-sdk &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/pump-swap-sdk` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/nirholas/pump-swap-sdk.git
```

Then copy `pump-swap-sdk/plugins/pumpswap-sdk/skills/pump-swap-sdk` into your agent's skills folder as `pump-swap-sdk`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does the skill need installed?

It uses the @pump-fun/pump-swap-sdk npm package, with @solana/web3.js for Connection and PublicKey and bn.js for BN amounts.

### Does the SDK sign or send transactions?

No. It returns TransactionInstruction arrays, and the caller places them in a transaction and handles signing and sending.

### How is slippage expressed?

As a percentage, so a value of 1 means 1 percent.

### When does the skill apply?

When code needs to trade or provide liquidity on a PumpSwap pool.

### How do I install Pump swap SDK in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/pump-swap-sdk to use it in all your projects, or to .claude/skills/pump-swap-sdk in one project. Or install the pumpswap-sdk plugin, which includes it: /plugin marketplace add nirholas/pump-swap-sdk, then /plugin install pumpswap-sdk@pump-swap-sdk.

### Does Pump swap SDK run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Pump swap SDK?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Pump swap SDK?

The closest alternatives to Pump swap SDK are Swap tokens, Swap integration, Swap planner, Liquidity planner and Unify balance.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Swap tokens](https://ai-powered.com/skills/swap-tokens): Swap tokens is an open-source agent skill for finance and payments.
- [Swap integration](https://ai-powered.com/skills/swap-integration): Swap integration is an open-source agent skill for finance and payments.
- [Swap planner](https://ai-powered.com/skills/swap-planner): Swap planner is an open-source agent skill for finance and payments.
- [Liquidity planner](https://ai-powered.com/skills/liquidity-planner): Liquidity planner is an open-source agent skill for finance and payments.
- [Unify balance](https://ai-powered.com/skills/unify-balance): Unify balance is an open-source agent skill for finance and payments.
- [Use usdc](https://ai-powered.com/skills/use-usdc): Use usdc is an open-source agent skill for finance and payments.
- [Use gateway](https://ai-powered.com/skills/use-gateway): Use gateway is an open-source agent skill for finance and payments.
- [Use modular wallets](https://ai-powered.com/skills/use-modular-wallets): Use modular wallets is an open-source agent skill for finance and payments.

---
Source: https://ai-powered.com/skills/pump-swap-sdk
