Trader Claw is an AI-powered trading agent written 100% in Rust. Execute swaps on EVM, Solana, and TON — and trade Polymarket prediction markets — all from a single secure, sandboxed environment.
Monitor wallets, scan markets, configure strategies, and analyze performance — all from a clean, real-time web UI served directly by the Rust binary.
A complete trading stack — AI agent, multi-chain execution, prediction markets, backtesting engine, and Telegram bot — compiled into a single binary.
Every component — wallet manager, execution engine, web gateway, AI loop — is written in safe, blazing-fast Rust. No Python runtime, no Node bloat. Compile once, run anywhere.
Powered by Claude / OpenAI / any OpenRouter model. The agent reads market data, manages your wallets, executes trades, and explains every decision in plain English.
Trade natively on Ethereum, Arbitrum, Optimism, Base, BNB Chain, Polygon, Unichain, and ETC via Uniswap V2/V3/V4. Parallel chain balance queries with live block-explorer links.
Buy and sell Solana tokens via Jupiter v6 aggregator with real-time quotes. Full SPL token balance tracking, PumpFun and Raydium DEX support.
Trade real-money prediction markets with L2 HMAC authentication. Place limit and market orders, track positions and open orders, all from the dashboard or Telegram.
Write strategies in Rhai scripts. Backtest against real Binance OHLCV historical data with live RSI, MACD, and EMA indicators. Get Sharpe ratio, max drawdown, and win rate.
Control Trader Claw from any Telegram app. Query balances, browse markets, place orders and get trade confirmations — all via natural language commands or structured slash commands.
Schedule automated strategies with cron syntax. Set DCA orders, rebalance triggers, or alert jobs that run on your schedule. All managed from the web dashboard.
A React + Vite dashboard embedded directly into the binary via rust-embed. Zero external dependencies to serve the UI — open a browser and trade.
Trader Claw connects to every major blockchain with custom RPC override support per chain.
Download the binary or build from source with cargo build --release. Edit config.toml to add your LLM API key and preferred chains.
Create or import EVM, Solana, and TON wallets directly from the dashboard. All private keys are encrypted with AES-256-GCM + Argon2id — never stored in plain text.
Type "buy 0.1 SOL worth of BONK when RSI drops below 30" — the AI agent writes the strategy, backtests it, and confirms before executing.
Set cron jobs for recurring strategies. Get Telegram alerts for fills and PnL updates. Track everything from the real-time web dashboard.
Replay your strategies against real historical OHLCV data from Binance. The Rhai scripting engine runs fully sandboxed — no network access, no side effects.
Example strategy output — BTCUSDT 90-day backtest:
Scripts run sandboxed — memory & time limited. Ask the AI to write one for you.
Connect your Telegram bot in seconds. Get real-time alerts, check balances, and place orders — all without opening the dashboard.
Trader Claw runs entirely on your machine. No cloud custody, no shared infrastructure. Every secret is encrypted before it ever touches disk.
All private keys and API credentials are encrypted at rest using AES-256-GCM with Argon2id key derivation. Never stored in plain text.
Rhai strategy scripts run in a fully sandboxed VM — no network access, no file system access, enforced memory and CPU time limits.
Binds to 127.0.0.1 only. Refuses to expose to the public internet unless explicitly opted in. No telemetry, no remote control.
Every trade amount is validated before signing. The agent cannot sign a transaction it was not explicitly authorized to execute.
Private keys and mnemonics are never logged, never serialized as strings, and never included in error messages or debug output.
The web dashboard and API require a paired Bearer token. Unpaired requests are rejected before any handler logic runs.
Build from source or download a pre-built binary. Requires Rust 1.86+.
# 1. Clone the repo git clone https://github.com/Trader-Claw-Labs/Trader-Claw cd traderclaw # 2. Build the web dashboard cd web && npm install && npm run build && cd .. # 3. Build the Rust binary cargo build --release # 4. Start the gateway ./target/release/trader-claw gateway # 5. Open the dashboard # → http://127.0.0.1:3000
On first launch, Trader Claw prints a one-time pairing code. Enter it in the dashboard to authenticate and start trading.
Join traders building the future of algorithmic trading with Rust and AI.