> ## 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

> Combines Jupiter APIs with Helius infrastructure. Covers token swaps, lending/borrowing, limit orders, DCA, token/price data, transaction submission via Sender, and real-time streaming.

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.

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

## 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](/agents/mcp) and a Jupiter API key.

### Helius MCP Server (Required)

The [Helius MCP server](/agents/mcp) 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](/agents/claude-code-plugin), the Helius MCP server starts automatically.
</Note>

## Standalone Installation

<Steps>
  <Step title="Clone the repository">
    ```bash theme={"system"}
    git clone https://github.com/helius-labs/core-ai.git
    cd core-ai/helius-skills/helius-jupiter
    ```
  </Step>

  <Step title="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
  </Step>

  <Step title="Install the Helius MCP server">
    ```bash theme={"system"}
    claude mcp add helius npx helius-mcp@latest
    ```
  </Step>

  <Step title="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.
  </Step>
</Steps>

## 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](/agents/skills/overview#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

<CardGroup cols={2}>
  <Card title="Build Skill" icon="hammer" href="/agents/skills/build">
    Core Helius skill for general Solana development
  </Card>

  <Card title="Jupiter Documentation" icon="book" href="https://dev.jup.ag">
    Official Jupiter API documentation
  </Card>

  <Card title="Jupiter Portal" icon="key" href="https://developers.jup.ag/portal">
    Get a Jupiter API key
  </Card>

  <Card title="GitHub" icon="github" href="https://github.com/helius-labs/core-ai">
    Source code and issue tracking
  </Card>
</CardGroup>
