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

# Claude代码插件

> Helius 是首个也是目前唯一拥有官方 Claude Code 插件的加密公司。安装一次即可在 Claude Code 中获得实时 Solana 区块链工具和专家 Solana 编码模式——Helius MCP 服务器、DFlow MCP 服务器以及专家技能。

Helius 是首个也是目前唯一在 [Anthropic 精选注册表](https://claude.com/claude-code)中具有官方 Claude Code 插件的加密公司。该插件将您需要的一切整合在一个安装包中，以便在 Solana 上进行构建——用于实时区块链访问的 MCP 服务器，引导 Claude 行为的专家技能，以及每个 Helius 产品的深度参考文件。

<CardGroup cols={3}>
  <Card title="Helius MCP 服务器" icon="plug">
    自动启动 `helius-mcp` — 10 个路由工具用于查询区块链、发送交易、管理 webhook 等
  </Card>

  <Card title="DFlow MCP 服务器" icon="chart-line">
    自动启动 DFlow MCP — 用于交易 API 详情、响应模式和代码示例的工具
  </Card>

  <Card title="专家技能" icon="brain">
    所有技能汇聚一处，使 Claude 成为在 Solana 最快基础设施提供商上运行的 Solana 专家
  </Card>
</CardGroup>

## 安装

### 官方（Anthropic 精选）

从 Anthropic 精选插件注册表安装：

```bash theme={"system"}
claude plugin install helius @claude-plugins-official
```

### 来自 Helius 市场

直接从 Claude Code 内的 `helius-labs/core-ai` 市场安装：

```
/plugin marketplace add helius-labs/core-ai
/plugin install helius@helius-labs
```

### 本地测试

```bash theme={"system"}
git clone https://github.com/helius-labs/core-ai.git
claude --plugin-dir ./core-ai/helius-plugin
```

## 包含什么

### MCP 服务器

插件在 Claude Code 启动时自动启动两个 MCP 服务器：

| 服务器                              | 传输方式  | 提供内容                                                                                                                                                                                                                                   |
| -------------------------------- | ----- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Helius** (`helius-mcp@latest`) | stdio | 10 个路由工具 (`heliusAccount`, `heliusWallet`, `heliusAsset`, `heliusTransaction`, `heliusChain`, `heliusStreaming`, `heliusKnowledge`, `heliusWrite`, `heliusCompression`, `expandResult`) 覆盖 DAS API、RPC、webhooks、流、钱包分析、入职、Solana 知识和文档 |
| **DFlow** (`pond.dflow.net/mcp`) | HTTP  | 交易 API 详情、响应模式、DFlow 集成的代码示例                                                                                                                                                                                                           |

查看 [Helius MCP](/zh/agents/mcp) 了解完整工具目录。

### 技能

| 技能                                   | 调用                | 功能                                                                                                |
| ------------------------------------ | ----------------- | ------------------------------------------------------------------------------------------------- |
| [Build](/zh/agents/skills/build)     | `/helius:build`   | 让 Claude 成为 Solana 开发专家。为 DAS、Sender、WebSockets、LaserStream、Webhooks、Wallet API 等路由到正确的工具和参考文件。   |
| [Phantom](/zh/agents/skills/phantom) | `/helius:phantom` | 让 Claude 成为构建前端 dApps 的专家。涵盖 Phantom Connect SDK（React、React Native、浏览器）、代币访问控制、NFT 铸造、支付和安全前端架构。 |
| [Jupiter](/zh/agents/skills/jupiter) | `/helius:jupiter` | 让 Claude 成为构建 DeFi 应用的专家。将 Jupiter API（交换、借贷、限价单、DCA）与 Helius 基础设施结合。                             |
| [DFlow](/zh/agents/skills/dflow)     | `/helius:dflow`   | 让 Claude 成为构建交易应用的专家。将 DFlow API（现货交换、预测市场、流、KYC）与 Helius 基础设施结合。                                 |
| [OKX](/zh/agents/skills/okx)         | `/helius:okx`     | 让 Claude 成为构建交易和智能应用的专家。将 OKX DEX 聚合、聪明资金信号和 meme 分析与 Helius 基础设施组合。                              |
| [SVM](/zh/agents/skills/svm)         | `/helius:svm`     | Solana 协议专家。使用实时资源解释架构、共识、执行引擎、账户模型和验证者经济学。                                                       |

### 参考文件

深入的文档与每个技能一起捆绑，Claude 在编写代码之前进行阅读——涵盖 DAS API、Sender、优先费用、Webhooks、WebSockets、LaserStream、Wallet API、增强交易、入门、Phantom Connect SDK（React、React Native、浏览器）、token gating、NFT 铸造、支付、前端安全、Jupiter（Swap V2、Lend、Trigger、Recurring、Perps、Predictions、tokens/prices、Plugin）、DFlow 现货交易和预测市场、OKX DEX 聚合和情报，以及集成模式。

## API 密钥设置

插件会自动启动 MCP 服务器，但你仍然需要一个 Helius API 密钥。首次使用时，Claude 会引导你通过以下路径之一：

<Tabs>
  <Tab title="现有密钥">
    如果你已经从 [dashboard.helius.dev](https://dashboard.helius.dev) 拥有一个密钥，请让 Claude 在 `setHeliusApiKey` 上调用操作：

    只需告诉 Claude: "将我的 Helius API 密钥设置为 `YOUR_API_KEY`"
  </Tab>

  <Tab title="Signup">
    通过托管支付链接或自动支付从 Claude Code 创建一个新帐户。每一步都是在 `heliusAccount` 上的一项操作：

    1. Claude 使用 `heliusAccount` 调用 `action: "generateKeypair"` — 创建一个 Solana 钱包
    2. Claude 使用 `heliusAccount` 调用 `action: "signup"` 和 `mode: "link"` — 返回一个支付 URL，您可以在浏览器中打开该 URL 以使用任何钱包支付（或使用 `mode: "autopay"` 自动从本地密钥对支付 USDC）
    3. 通过链接支付后，Claude 使用 `heliusAccount` 调用 `action: "signup"` 和 `mode: "resume"` — 自动完成配置并配置 API 密钥
  </Tab>

  <Tab title="CLI">
    从终端使用 [Helius CLI](/zh/agents/cli)：

    ```bash theme={"system"}
    npx helius-cli@latest keygen
    npx helius-cli@latest signup --plan agent --email you@example.com --first-name Jane --last-name Doe   # Print hosted payment link
    # (pay in browser, then:)
    npx helius-cli@latest signup --resume         # Finalize account
    # Or autopay from the local keypair:
    npx helius-cli@latest signup --plan agent --pay --email you@example.com --first-name Jane --last-name Doe
    ```
  </Tab>
</Tabs>

**DFlow API 密钥：** REST 开发端点无需密钥即可工作（有速率限制）。对于生产或 WebSocket 访问，请从 [pond.dflow.net/build/api-key](https://pond.dflow.net/build/api-key) 获取密钥。

## 使用

安装后，用简单的英文问问题。Claude 会自动选择正确的工具并读取正确的参考文件：

* “使用 DFlow 和 Helius Sender 构建交换界面”
* “这个钱包拥有哪些 NFT？”
* “设置 webhooks 以监控我钱包的传入转账”
* “解析此交易：`5abc...`”
* “构建一个在连接 Phantom 后显示代币的投资组合查看器”
* “发送 1 SOL 到 `Gh9ZwEm...`”
* “创建一个预测市场交易 UI”

## 插件结构

插件包含三个顶级文件和一个 `skills/` 目录：

| 路径                           | 目的                                                           |
| ---------------------------- | ------------------------------------------------------------ |
| `.claude-plugin/plugin.json` | 插件清单（名称：`"helius"`, v1.0.0）                                  |
| `.mcp.json`                  | Helius + DFlow MCP 服务器的自动启动配置                                |
| `skills/build/`              | `/helius:build` — `SKILL.md` + 9 个 Helius 产品参考文件             |
| `skills/phantom/`            | `/helius:phantom` — `SKILL.md` + 16 个参考文件 (Phantom + Helius) |
| `skills/jupiter/`            | `/helius:jupiter` — `SKILL.md` + 16 个参考文件 (Jupiter + Helius) |
| `skills/dflow/`              | `/helius:dflow` — `SKILL.md` + 12 个参考文件 (DFlow + Helius)     |
| `skills/okx/`                | `/helius:okx` — `SKILL.md` + 集成模式 (OKX + Helius)             |
| `skills/svm/`                | `/helius:svm` — `SKILL.md` + 10 个架构参考文件                      |

在 [GitHub](https://github.com/helius-labs/core-ai/tree/main/helius-plugin) 上查看完整源码。

## 了解更多

<CardGroup cols={2}>
  <Card title="Helius MCP" icon="plug" href="/zh/agents/mcp">
    完整的工具目录和独立的 MCP 设置
  </Card>

  <Card title="Build Skill" icon="hammer" href="/zh/agents/skills/build">
    核心 Solana 开发技能详情
  </Card>

  <Card title="DFlow Skill" icon="chart-line" href="/zh/agents/skills/dflow">
    交易技能详细信息和复合工作流
  </Card>

  <Card title="GitHub" icon="github" href="https://github.com/helius-labs/core-ai">
    源代码和问题跟踪
  </Card>
</CardGroup>
