$npx -y skills add helius-labs/core-ai --skill okxBuild Solana trading and intelligence applications combining OKX DEX aggregation with Helius infrastructure. Integration-only layer — describes when and how to compose OKX tools with Helius tools for swaps, token discovery, smart money signals, meme token analysis, and portfolio
| 1 | # Helius x OKX — Build Trading & Intelligence Apps on Solana |
| 2 | |
| 3 | You are an expert Solana developer building trading and token intelligence applications by composing OKX's DEX aggregation and market data tools with Helius's Solana infrastructure. This skill teaches you **when and how to combine** the two ecosystems — it does not duplicate OKX's own documentation. |
| 4 | |
| 5 | **OKX** provides DEX swap aggregation (500+ liquidity sources), token discovery, trending rankings, smart money signals, meme token analysis (pump.fun scanning, dev reputation, bundle detection), market data, and portfolio PnL — via the `onchainos` CLI and OKX skill library. |
| 6 | |
| 7 | **Helius** provides transaction submission (Sender), priority fee optimization, asset queries (DAS), real-time on-chain streaming (WebSockets, LaserStream), and wallet intelligence (Wallet API) — via the Helius MCP server. |
| 8 | |
| 9 | ## Prerequisites |
| 10 | |
| 11 | Before doing anything, verify these: |
| 12 | |
| 13 | ### 1. Helius MCP Server |
| 14 | |
| 15 | The Helius MCP server should start automatically with this plugin. Check that Helius MCP tools are available (e.g., `getBalance`, `getAssetsByOwner`, `getPriorityFeeEstimate`). |
| 16 | |
| 17 | If they are NOT available, **STOP**. Do NOT attempt to call Helius APIs via curl or any other workaround. Tell the user: |
| 18 | |
| 19 | ``` |
| 20 | The Helius MCP server isn't running. Try restarting Cursor. |
| 21 | If the problem persists, add it manually via Settings > Cursor Settings > MCP |
| 22 | with command: npx helius-mcp@latest |
| 23 | ``` |
| 24 | |
| 25 | ### 2. OKX Skill Library (Required) |
| 26 | |
| 27 | The OKX skill library provides the detailed domain knowledge for all OKX tools — swap workflows, token discovery, risk controls, signal interpretation, and CLI command reference. Install it: |
| 28 | |
| 29 | ``` |
| 30 | npx skills add okx/onchainos-skills |
| 31 | ``` |
| 32 | |
| 33 | Or via the Claude Code plugin marketplace. See [github.com/okx/onchainos-skills](https://github.com/okx/onchainos-skills) for all installation options. |
| 34 | |
| 35 | ### 3. OKX CLI (`onchainos`) |
| 36 | |
| 37 | Check if the `onchainos` binary is installed by running `onchainos --version`. If not available, tell the user: |
| 38 | |
| 39 | ``` |
| 40 | You need to install the OKX onchainos CLI: |
| 41 | curl -fsSL https://raw.githubusercontent.com/okx/onchainos-skills/main/install.sh | bash |
| 42 | ``` |
| 43 | |
| 44 | ### 4. API Keys |
| 45 | |
| 46 | **Helius**: If any Helius MCP tool returns an "API key not configured" error, guide the user through setup (existing key, agentic signup, or CLI). |
| 47 | |
| 48 | **OKX**: The `onchainos` CLI works without an API key but is rate-limited. For production use, the user needs OKX API credentials: |
| 49 | |
| 50 | ```bash |
| 51 | export OKX_API_KEY=your-api-key |
| 52 | export OKX_SECRET_KEY=your-secret-key |
| 53 | export OKX_PASSPHRASE=your-passphrase |
| 54 | ``` |
| 55 | |
| 56 | API keys can be obtained from the OKX Developer Portal. |
| 57 | |
| 58 | ## Routing |
| 59 | |
| 60 | Identify what the user is building, then use the appropriate tools. For OKX-specific commands and parameters, defer to the OKX skill library. This skill focuses on **when to combine OKX + Helius**. |
| 61 | |
| 62 | ### Quick Disambiguation |
| 63 | |
| 64 | - **"swap" / "trade" / "buy token" / "sell token"** — OKX swap + Helius Sender for optimal block inclusion. Read `references/integration-patterns.md` Pattern 1. |
| 65 | - **"token info" / "trending" / "hot tokens"** — OKX token discovery. Enrich with Helius `getAsset` MCP tool for on-chain metadata verification. |
| 66 | - **"price" / "chart" / "OHLC"** — OKX market data commands. |
| 67 | - **"smart money" / "whale" / "KOL" / "signals"** — OKX signals. Combine with Helius `getWalletIdentity` for wallet context. |
| 68 | - **"meme" / "pump.fun" / "rug check" / "dev reputation"** — OKX trenches + token discovery. Combine with Helius DAS and Wallet API for on-chain verification. |
| 69 | - **"PnL" / "profit loss" / "win rate"** — OKX PnL analysis commands. |
| 70 | - **"simulate tx" / "broadcast" / "gas estimate"** — OKX gateway. Note: prefer Helius Sender for most Solana tx submission. |
| 71 | - **"portfolio" / "balances"** — Helius Wallet API for Solana-specific intelligence, OKX portfolio for multi-chain. |
| 72 | - **"monitor trades" / "real-time on-chain"** — Helius WebSockets or LaserStream. |
| 73 | - **"trading bot" / "HFT" / "latency-critical"** — LaserStream + OKX swap + Helius Sender. Read `references/integration-patterns.md` Pattern 6. |
| 74 | |
| 75 | ### When to Combine OKX + Helius |
| 76 | |
| 77 | | Task | OKX Provides | Helius Provides | |
| 78 | |------|-------------|-----------------| |
| 79 | | Token swap | Quote, routing, aggregation | Sender (dual-route to validators + Jito), priority fees | |
| 80 | | Token discovery | Trending, rankings, risk tags, holder analysis | DAS metadata verification, on-chain proof | |
| 81 | | Smart money tracking | Signals, sold ratio, wallet types | Wallet identity, funding source investigation | |
| 82 | | Meme token scanner | Dev reputation, bundle detection, trenches | DAS verification, dev wallet investigation | |
| 83 | | Portfolio dashboard | Market data, charts, PnL, |