> ## Documentation Index
> Fetch the complete documentation index at: https://www.helius.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Jupiter DeFi Skill

> Expert skill combining Jupiter APIs with Helius Solana infrastructure — token swaps, lending, limit orders, DCA, price data, and submission via Sender.

The **Jupiter** skill makes your AI assistant an expert at building Solana DeFi applications. It combines [Jupiter's](https://jup.ag) APIs — token swaps (Swap API V2), lending and borrowing (Lend), limit orders (Trigger), DCA (Recurring), and token/price data — with Helius infrastructure for transaction submission, fee optimization, asset queries, and on-chain monitoring.

> [!NOTE]
>
> **Claude Code:** `/helius:jupiter` (via [plugin](https://www.helius.dev/docs/agents/claude-code-plugin.md)) or auto-invoked (standalone). **Codex:** `$helius-jupiter` (auto-discovered from `.agents/skills/`). **API / Cursor / ChatGPT:** Use the pre-built [system prompt variants](https://www.helius.dev/docs/agents/skills/overview.md#using-skills-across-platforms).

## What It Covers

The Jupiter skill routes the AI across both Jupiter and Helius tools:

| Domain | APIs Used | MCP Tools |
| - | - | - |
| **Token Swaps** | Jupiter Swap API V2 + Helius Sender | `getPriorityFeeEstimate`, `getSenderInfo`, `parseTransactions` |
| **Lending & Borrowing** | Jupiter Lend (earn + vaults) | `getPriorityFeeEstimate`, `parseTransactions` |
| **Limit Orders** | Jupiter Trigger API V2 | `getPriorityFeeEstimate`, `parseTransactions` |
| **DCA / Recurring** | Jupiter Recurring API | `getPriorityFeeEstimate`, `parseTransactions` |
| **Perps & Predictions** | Jupiter Perps (on-chain), Predictions | `getPriorityFeeEstimate`, `parseTransactions`, `getAccountInfo` |
| **Swap Widget** | Jupiter Plugin | — |
| **Token & Price Data** | Jupiter data APIs (search, prices, Token Shield) | — |
| **On-Chain Monitoring** | Enhanced WebSockets, LaserStream | `transactionSubscribe`, `accountSubscribe`, `laserstreamSubscribe` |
| **Portfolio & Discovery** | DAS API, Wallet API | `getAssetsByOwner`, `getWalletBalances`, `getWalletIdentity` |
| **Transaction Submission** | Helius Sender | `getPriorityFeeEstimate`, `getSenderInfo` |

## Prerequisites

This skill requires the [Helius MCP server](https://www.helius.dev/docs/agents/mcp.md) and a Jupiter API key.

### Helius MCP Server (Required)

The [Helius MCP server](https://www.helius.dev/docs/agents/mcp.md) provides blockchain tools for transaction submission, asset queries, and on-chain streaming.

```bash theme={"system"}
claude mcp add helius npx helius-mcp@latest
```

### Jupiter API Key (Required)

Jupiter REST endpoints require an API key passed via the `x-api-key` header. Get one at [developers.jup.ag/portal](https://developers.jup.ag/portal).

> [!NOTE]
>
> If you install via the [Claude Code plugin](https://www.helius.dev/docs/agents/claude-code-plugin.md), the Helius MCP server starts automatically.

## Standalone Installation

**1. Clone the repository**

```bash theme={"system"}
git clone https://github.com/helius-labs/core-ai.git
cd core-ai/helius-skills/helius-jupiter
```

**2. Run the install script**

```bash theme={"system"}
./install.sh
```

Installs to `~/.claude/skills/helius-jupiter/`.

**Options:**

* `./install.sh --project` — install to the current project
* `./install.sh --path /custom/path` — install to a custom directory

**3. Install the Helius MCP server**

```bash theme={"system"}
claude mcp add helius npx helius-mcp@latest
```

**4. Set your API keys**

**Helius:**

```bash theme={"system"}
export HELIUS_API_KEY=YOUR_API_KEY
```

**Jupiter:** Get a key from [developers.jup.ag/portal](https://developers.jup.ag/portal) and pass it via the `x-api-key` header on each request.

## Example Prompts

Once installed, ask in plain English:

* "Build a swap interface using Jupiter and Helius Sender"
* "Place a limit order to buy SOL at \$X"
* "Set up a recurring DCA buy of USDC into SOL every week"
* "Build a lending dashboard with Jupiter Lend"
* "Earn yield by depositing USDC into a Jupiter Lend pool"
* "Build a token selector with prices and risk signals"
* "Stream Jupiter swap fills at the lowest possible latency"

## Composite Workflows

The Jupiter skill excels at tasks that span multiple APIs. Here are common patterns the AI handles automatically:

### Swap / Trading App

Jupiter Swap API for quotes and routing across all DEXes, Helius Sender for transaction submission, DAS API for token lists, Priority Fee API for optimal fees.

### Lending UI

Jupiter Lend for earn pools and vaults, Helius Sender for deposit/withdraw submission, DAS for token metadata, LaserStream for real-time position updates.

### Limit Order / DCA App

Jupiter Trigger for limit orders and Recurring for DCA, Helius Sender for submission, DAS for token discovery, WebSockets to track fills.

### Trading Bot / HFT

LaserStream for shred-level signals, Jupiter Swap for execution, Helius Sender for fast submission, Priority Fee API for optimal fees.

### Portfolio + Trading Dashboard

Wallet API for holdings, DAS API for token metadata, Jupiter price/token data for live prices, Jupiter Swap for trading.

## What's Included

* **`SKILL.md`** — Routing logic, rules, and expert context for DeFi applications
* **`prompts/`** — Pre-built system prompt variants (`openai.developer.md`, `claude.system.md`, `full.md`) — see [platform setup](https://www.helius.dev/docs/agents/skills/overview.md#using-skills-across-platforms)
* **`references/`** — Deep documentation files:
  * `jupiter-swap.md` — Swap API V2 (quotes, routing, execution)
  * `jupiter-lend.md` — Lend protocol (earn pools and vaults)
  * `jupiter-trigger.md` — Limit orders (OCO/OTOCO)
  * `jupiter-recurring.md` — DCA / recurring buys
  * `jupiter-perps-predictions.md` — Perps (on-chain) and prediction markets
  * `jupiter-plugin.md` — Embeddable swap widget
  * `jupiter-tokens-price.md` — Token search, price feeds, Token Shield safety
  * `jupiter-portal.md` — Jupiter Portal API key setup
  * `integration-patterns.md` — Composite patterns (swap execution, token selector, bots)
  * `helius-sender.md` — Transaction submission via Helius Sender
  * `helius-priority-fees.md` — Fee estimation strategies
  * `helius-das.md` — Digital Asset Standard API
  * `helius-laserstream.md` — gRPC streaming
  * `helius-wallet-api.md` — Wallet analysis and identity
  * `helius-websockets.md` — WebSocket subscriptions
  * `helius-onboarding.md` — Account setup and signup flow

## Learn More

> [card] [Build Skill](https://www.helius.dev/docs/agents/skills/build.md)
>
> Core Helius skill for general Solana development

> [card] [Jupiter Documentation](https://dev.jup.ag)
>
> Official Jupiter API documentation

> [card] [Jupiter Portal](https://developers.jup.ag/portal)
>
> Get a Jupiter API key

> [card] [GitHub](https://github.com/helius-labs/core-ai)
>
> Source code and issue tracking


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.