Skip to content

AI-powered Solana trading CLI. Trade tokens with natural language through Moltbot. Built-in rugcheck protection, encrypted wallets, and trading strategies.

License

Notifications You must be signed in to change notification settings

BAGWATCHER/SlopeSniper

Repository files navigation

SlopeSniper Logo

SlopeSniper 🦞

Trade Solana tokens with natural language

License: MIT Python 3.10+ Version

Quick Start · Features · Documentation · Contributing


What is SlopeSniper?

SlopeSniper is an AI-powered Solana trading assistant. Instead of navigating DEX interfaces, just tell it what you want:

"Buy $25 of BONK"
"What's trending right now?"
"Is POPCAT safe to trade?"
"Sell half my WIF position"

SlopeSniper handles token resolution, safety checks, quotes, and execution—all through conversation.


Current Status

Platform Status Description
Moltbot ✅ Beta Natural language trading via Moltbot
Claude Desktop (MCP) 🔜 Coming Soon Direct integration with Claude Desktop
Web API 🔜 Coming Soon REST API for custom integrations

🚀 Quick Start

1. Install

curl -fsSL https://raw.githubusercontent.com/BAGWATCHER/SlopeSniper/main/skills/install.sh | bash

2. Set Up Your Wallet

Recommended: Interactive Setup

slopesniper setup

This guides you through wallet creation with confirmation and ensures you save your private key.

Alternative: Quick Start

slopesniper status

Auto-generates a wallet on first run (for advanced users/automation).

Import Existing Wallet

slopesniper setup --import-key YOUR_PRIVATE_KEY

3. Fund Your Wallet

Send SOL to your wallet address. This is your dedicated trading wallet—only deposit what you're willing to trade.

4. Start Trading

Talk to Moltbot:

You: "Check my trading status"
You: "Buy $20 of BONK"
You: "What's the price of SOL?"

✨ Features

Natural Language Trading

No commands to memorize. Just describe what you want:

You Say What Happens
"Buy $25 of BONK" Resolves token → safety check → quote → execute
"Sell half my WIF" Calculates 50% of holdings → executes sell
"What's pumping?" Scans DexScreener for trending tokens
"Scan for new tokens" Finds newly listed pairs
"Is POPCAT safe?" Runs rugcheck analysis, shows risk factors
"Set aggressive mode" Increases trade limits and auto-execution threshold

Safety First

  • Rugcheck Integration - Automatic scam token detection before every trade
  • Two-Step Confirmation - Large trades require explicit approval
  • Auto-Execute Thresholds - Only small trades execute automatically
  • Dedicated Wallet - Auto-generated wallet isolates trading funds

Trading Strategies

Strategy Max Trade Auto-Execute Safety Checks
Conservative $25 Under $10 Required
Balanced $100 Under $25 Required
Aggressive $500 Under $50 Optional
Degen $1000 Under $100 None

Change anytime: "Set conservative mode" or "Use degen strategy"

Smart Execution

You: "Buy $20 of BONK"
     ↓
[1] Resolve BONK → mint address
[2] Run rugcheck safety analysis
[3] Get Jupiter quote (best price across all DEXs)
[4] Auto-execute (under $25 threshold)
     ↓
"Bought 1.2M BONK for $20. Tx: solscan.io/tx/..."

For trades above your auto-execute threshold, you'll be asked to confirm first.


📖 Documentation

CLI Reference

# Wallet Setup (recommended for new users)
slopesniper setup               # Interactive wallet creation with confirmation
slopesniper setup --import-key KEY  # Import existing private key

# Account & Wallet
slopesniper status              # Full status: wallet, holdings, strategy
slopesniper wallet              # Show wallet address and token balances
slopesniper export              # Export private key for backup
slopesniper pnl                 # Show portfolio profit/loss
slopesniper pnl init            # Set baseline for tracking
slopesniper pnl stats           # Win rate, avg gain/loss
slopesniper pnl positions       # Detailed position breakdown
slopesniper pnl export          # Export trade history (JSON/CSV)
slopesniper history             # Show recent trade history

# Trading
slopesniper price SOL           # Get current token price
slopesniper buy BONK 25         # Buy $25 of BONK
slopesniper sell WIF 50         # Sell $50 worth of WIF
slopesniper sell WIF all        # Sell entire position

# Discovery
slopesniper search "dog"        # Search for tokens
slopesniper resolve BONK        # Get mint address from symbol
slopesniper scan                # Scan all opportunities
slopesniper scan trending       # Scan trending tokens
slopesniper scan pumping        # Scan tokens with price spikes

# Safety
slopesniper check POPCAT        # Run safety analysis

# Strategy
slopesniper strategy            # View current strategy
slopesniper strategy aggressive # Change to aggressive mode

# Configuration
slopesniper config              # View current config
slopesniper config --set-jupiter-key KEY  # Set custom API key (10x faster!)

# Updates
slopesniper version             # Show current version
slopesniper version --check     # Check for updates
slopesniper update              # Update to latest version

Wallet Management

Your wallet is encrypted and stored at ~/.slopesniper/wallet.enc. The private key is shown only once at creation—make sure to save it!

Create a new wallet (recommended):

slopesniper setup               # Interactive setup with confirmation

View wallet and holdings:

slopesniper wallet              # Quick view
slopesniper status              # Full status

Export private key for backup:

slopesniper export              # Displays your private key

Import an existing wallet:

slopesniper setup --import-key YOUR_PRIVATE_KEY

Or set the SOLANA_PRIVATE_KEY environment variable.

Storage locations:

~/.slopesniper/
├── wallet.enc      # Encrypted private key (AES-128)
├── config.enc      # Encrypted user config (Jupiter API key, etc.)
└── .machine_key    # Salt for key derivation

⚠️ CRITICAL: Backup Your Private Key

Your private key is only shown once at wallet creation. Use slopesniper export to retrieve it.

Back it up OUTSIDE this system immediately:

  • Password manager (1Password, Bitwarden, LastPass)
  • Encrypted USB drive stored securely
  • Paper backup in a safe or lockbox
  • Import into a hardware wallet (Ledger, Trezor)

Why external backup is essential:

  • The wallet file is machine-bound and won't work on other computers
  • If your computer dies, the encrypted file is useless
  • No private key = No recovery = Funds lost forever

Configuration

View current config:

slopesniper config

Set your own Jupiter API key (10x better performance):

slopesniper config --set-jupiter-key YOUR_KEY

Get a free key at: https://station.jup.ag/docs/apis/ultra-api

Environment Variables:

Variable Required Description
SOLANA_PRIVATE_KEY No Override auto-generated wallet
SOLANA_RPC_URL No Custom RPC endpoint (defaults to public mainnet)
JUPITER_API_KEY No Your own Jupiter key (or use slopesniper config)

Trading Limits

Default limits (Balanced strategy):

  • Max trade size: $100 per transaction
  • Auto-execute threshold: $25 (trades under this execute without confirmation)
  • Slippage tolerance: 1%

Customize with slopesniper strategy <mode> or set environment variables:

export POLICY_MAX_TRADE_USD=200
export POLICY_MAX_SLIPPAGE_BPS=50  # 0.5%

🔐 Security

Encryption & Storage

Layer Implementation
Wallet Encryption Fernet (AES-128-CBC)
Key Derivation PBKDF2 + machine fingerprint + random salt (100k iterations)
File Permissions Directory 700, files 600
Machine Binding Wallet can only be decrypted on the machine that created it
API Keys User's Jupiter API key stored encrypted

What We Do

  • Encrypted Storage - Wallet and config encrypted at rest with machine-specific key
  • Machine-Bound Keys - Wallet files cannot be decrypted on a different machine
  • Isolated Wallet - Auto-generates a dedicated trading wallet separate from your main holdings
  • No Secrets in Code - No API keys or credentials embedded in source
  • Rugcheck Integration - Every trade runs safety analysis first
  • Two-Step Trades - Large trades require explicit confirmation

Best Practices

  1. Use the auto-generated wallet - Don't import your main wallet
  2. Fund conservatively - Only deposit what you're actively trading
  3. Start with conservative mode - Get comfortable before increasing limits
  4. Save your private key - It's only shown once at wallet creation
  5. Set your own Jupiter API key - slopesniper config --set-jupiter-key for 10x better performance
  6. Monitor your transactions - Check Solscan for trade history

🛠️ Architecture

┌─────────────────────────────────────────────────────────┐
│                      Moltbot                           │
│                    (Claude Code)                        │
└─────────────────────┬───────────────────────────────────┘
                      │ Natural Language
                      ▼
┌─────────────────────────────────────────────────────────┐
│                   SlopeSniper CLI                       │
│              slopesniper <command>                      │
└─────────────────────┬───────────────────────────────────┘
                      │
        ┌─────────────┼─────────────┐
        ▼             ▼             ▼
┌───────────┐  ┌───────────┐  ┌───────────┐
│  Jupiter  │  │ Rugcheck  │  │  Solana   │
│  DEX API  │  │    API    │  │    RPC    │
└───────────┘  └───────────┘  └───────────┘

Components

  • CLI (slopesniper) - Command-line interface for direct execution
  • SDK - Python library for Jupiter, Rugcheck, and Solana interactions
  • Strategy Engine - Manages trading limits and auto-execution rules
  • Intent System - Two-step quote → confirm flow with expiring intents

🔜 Roadmap

Coming Soon

  • Claude Desktop Integration - MCP extension for native Claude Desktop support
  • Web API - REST endpoints for custom integrations
  • Price Alerts - Notifications for price movements
  • DCA Automation - Scheduled recurring buys

Future Ideas

  • Multi-wallet support
  • Limit orders
  • Copy trading
  • Telegram bot interface

🧪 Development

Prerequisites

  • Python 3.10+
  • uv package manager

Setup

# Clone the repository
git clone https://github.com/BAGWATCHER/SlopeSniper.git
cd SlopeSniper

# Install in development mode
cd mcp-extension
uv pip install -e .

# Run tests
pytest

# Run linter
ruff check mcp-extension/src/

Project Structure

SlopeSniper/
├── config/                 # Public configuration files
├── skills/                 # Moltbot skill definition
│   ├── install.sh         # One-line installer
│   └── slopesniper/
│       └── SKILL.md       # Skill metadata and docs
├── mcp-extension/         # Main package
│   ├── src/
│   │   ├── slopesniper_skill/    # Core trading logic
│   │   │   ├── cli.py            # CLI entry point
│   │   │   ├── sdk/              # API clients
│   │   │   └── tools/            # Trading tools
│   │   ├── slopesniper_mcp/      # MCP server (coming soon)
│   │   └── slopesniper_api/      # Web API (coming soon)
│   ├── Dockerfile
│   └── pyproject.toml
└── README.md

🤝 Contributing

Contributions are welcome! Here's how to help:

  1. Report Bugs - Open an issue with reproduction steps
  2. Suggest Features - Open an issue describing your idea
  3. Submit PRs - Fork, branch, code, test, PR

Please follow existing code style and include tests for new features.


⚠️ Disclaimer

SlopeSniper is experimental software for trading volatile assets.

  • Not financial advice - Do your own research
  • Risk of loss - Only trade what you can afford to lose
  • No guarantees - Software may have bugs; trades may fail
  • Meme coins are risky - Most go to zero

By using SlopeSniper, you acknowledge these risks and take full responsibility for your trades.


📄 License

MIT License - see LICENSE for details.


Built for degens, by degens 🎯

Report Bug · Request Feature · Contribute

About

AI-powered Solana trading CLI. Trade tokens with natural language through Moltbot. Built-in rugcheck protection, encrypted wallets, and trading strategies.

Topics

Resources

License

Contributing

Stars

Watchers

Forks