# Send Solana Copy Trader to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "solana-copy-trader",
    "name": "Solana Copy Trader",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/YouthAIAgent/solana-copy-trader",
    "canonicalUrl": "https://clawhub.ai/YouthAIAgent/solana-copy-trader",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/solana-copy-trader",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=solana-copy-trader",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "scripts/index.js",
      "scripts/package.json",
      "scripts/src/alerts.js",
      "scripts/src/arbitrage.js",
      "scripts/src/config.js"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-07T17:22:31.273Z",
      "expiresAt": "2026-05-14T17:22:31.273Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
        "contentDisposition": "attachment; filename=\"afrexai-annual-report-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/solana-copy-trader"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/solana-copy-trader",
    "downloadUrl": "https://openagent3.xyz/downloads/solana-copy-trader",
    "agentUrl": "https://openagent3.xyz/skills/solana-copy-trader/agent",
    "manifestUrl": "https://openagent3.xyz/skills/solana-copy-trader/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/solana-copy-trader/agent.md"
  }
}
```
## Documentation

### Solana Copy Trader

Real-time Solana whale copy trader using Helius WebSocket + Jupiter API + Pump.fun.

### Quick Start

cd solana-bot
npm install
cp .env.example .env  # fill in keys
node index.js copy    # paper mode (safe)
node index.js watch   # whale tracker only
node index.js scan    # arb scanner

### Modes

ModeCommandDescriptioncopynode index.js copy 0.01Copy whale trades (paper by default)watchnode index.js watchWatch whale txs livescannode index.js scanScan arb opportunitiespapernode index.js paperFull paper trading simanalyzenode index.js analyzeWallet pattern analysissafetynode index.js safety <mint>Token rug check

### .env Setup

PRIVATE_KEY=your_base58_private_key   # leave blank for watch-only
RPC_URL=https://mainnet.helius-rpc.com/?api-key=YOUR_KEY
HELIUS_API_KEY=your_helius_key        # free at dev.helius.xyz
BOT_TOKEN=telegram_bot_token          # for alerts
CHAT_ID=your_telegram_chat_id
MAX_TRADE_SOL=0.01                    # safety limit per trade
MIN_PROFIT_PCT=0.5

### Architecture

Helius WebSocket → whale tx detected
        ↓
parseTransaction() → decode token changes
        ↓
Jupiter quote → can we route? 
        ↓ (if no route)
Pump.fun DAS check → bonding curve token?
        ↓
safety check → price impact < 50%?
        ↓
paper: log trade | live: executeRealSwap()
        ↓
Telegram alert sent

### Key Files

src/copy_trade.js — Core copy trader engine
src/wallet_tracker.js — Helius WebSocket + tx parsing
src/arbitrage.js — Jupiter arb scanner
src/pumpfun.js — Pump.fun token metadata via Helius DAS
src/sniper.js — New token sniper (paper mode)
src/config.js — Wallet + connection setup
src/alerts.js — Telegram notifications

### Live → Paper Switch

In copy_trade.js startCopyTrader():

paper: true   // paper mode (safe, no real money)
paper: false  // LIVE mode — real trades

Or use index.js mode copy (always paper) vs direct startCopyTrader({ paper: false }).

### Safety Limits

MAX_TRADE_SOL — max SOL per trade (default 0.01)
maxPositions: 3 — max open positions at once
priceImpact > 50% → skip (rug protection)
Pump safety score < 40 → skip

### Whale to Copy

Default whale: AgmLJBMDCqWynYnQiPCuj9ewsNNsBJXyzoUhD9LJzN51

Confirmed MEV bot: 477 SOL, 172K txs/day, $40K/day
Change in src/copy_trade.js → WHALE constant

### Requirements

Node.js 18+
Free Helius API key (1000 req/day free tier)
Solana wallet (optional — watch-only without)
Telegram bot (optional — for alerts)

See references/api-setup.md for getting free API keys.
See references/trading-concepts.md for how Solana MEV/arb works.
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: YouthAIAgent
- Version: 1.0.0
## Source health
- Status: healthy
- Source download looks usable.
- Yavira can redirect you to the upstream package for this source.
- Health scope: source
- Reason: direct_download_ok
- Checked at: 2026-05-07T17:22:31.273Z
- Expires at: 2026-05-14T17:22:31.273Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/solana-copy-trader)
- [Send to Agent page](https://openagent3.xyz/skills/solana-copy-trader/agent)
- [JSON manifest](https://openagent3.xyz/skills/solana-copy-trader/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/solana-copy-trader/agent.md)
- [Download page](https://openagent3.xyz/downloads/solana-copy-trader)