Solana sniper bot

From npc-live/clawfirm · View interactive version

Solana sniper bot is an AI agent skill from the GitHub repository npc-live/clawfirm. Autonomous Solana token sniper and trading bot. Monitors new token launches on Raydium/Jupiter, evaluates rugpull risk with LLM analysis, auto-buys promising launches, and manages exit strategies. Use when user wants to snipe Solana token launches, trade memecoins, monitor new Solana pairs, or build

How to use this skill

Skill file

Solana Sniper Bot

Autonomous token sniper for Solana. Monitors Raydium and Jupiter for new liquidity pools, evaluates tokens using LLM-powered rugpull detection, and executes buy/sell orders via Jupiter aggregator.

Prerequisites

Setup

1. Install Dependencies

python3 {baseDir}/scripts/setup.sh

Or manually:

pip install solana solders httpx aiohttp python-dotenv

2. Configuration

Create .env:

SOLANA_PRIVATE_KEY=<base58-private-key>
LLM_API_KEY=<anthropic-api-key>
RPC_URL=https://api.mainnet-beta.solana.com
HELIUS_API_KEY=<optional-for-faster-monitoring>
BUY_AMOUNT_SOL=0.1
TAKE_PROFIT=2.0
STOP_LOSS=0.5

3. Deploy

cp {baseDir}/scripts/sniper.py /opt/sniper/
python3 /opt/sniper/sniper.py

How It Works

  1. Pool Monitor — Watches Raydium AMM for new liquidity pool creation events
  2. Token Analysis — For each new pool, queries token metadata:
  1. LLM Risk Assessment — Sends token data to Claude Haiku for rugpull probability estimate
  2. Auto-Buy — If risk score < threshold, buys via Jupiter aggregator for best price
  3. Position Management — Monitors positions with take-profit and stop-loss triggers
  4. Auto-Sell — Exits via Jupiter when TP/SL hit

Risk Scoring

Each token gets scored 0-100 (lower = safer):

| Factor | Weight | Red Flag |

|--------|--------|----------|

| Mint authority | 25% | Not revoked |

| Freeze authority | 20% | Not revoked |

| LP lock | 20% | < 80% locked |

| Top 10 holders | 15% | > 50% supply |

| Contract age | 10% | < 1 hour |

| LLM sentiment | 10% | Negative assessment |

Default buy threshold: risk score < 40

Trading Parameters

Configurable in .env:

⚠️ Security Considerations

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.