████████╗██████╗ █████╗ ██████╗ ███████╗██████╗ ██████╗██╗ █████╗ ██╗ ██╗ ╚══██╔══╝██╔══██╗██╔══██╗██╔══██╗██╔════╝██╔══██╗██╔════╝██║ ██╔══██╗██║ ██║ ██║ ██████╔╝███████║██║ ██║█████╗ ██████╔╝██║ ██║ ███████║██║ █╗ ██║ ██║ ██╔══██╗██╔══██║██║ ██║██╔══╝ ██╔══██╗██║ ██║ ██╔══██║██║███╗██║ ██║ ██║ ██║██║ ██║██████╔╝███████╗██║ ██║╚██████╗███████╗██║ ██║╚███╔███╔╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═════╝ ╚══════╝╚═╝ ╚═╝ ╚═════╝╚══════╝╚═╝ ╚═╝ ╚══╝╚══╝ // 100% Rust · EVM · Solana · TON · Polymarket
Built entirely in Rust · Blazing fast · Open source

Trade Web3 & Predict Markets
at Rust speed.

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.

trader-claw — gateway
$ trader-claw gateway
🦀 Trader Claw v0.1.7 — Rust AI Trading Agent
✓ Config loaded from ~/.traderclaw/config.toml
✓ Wallets: 3 registered (EVM · Solana · TON)
✓ Chains: 8 EVM chains + Solana + TON
✓ Polymarket CLOB: connected
✓ Telegram bot: @traderclaw_bot online
✓ Backtesting engine: Rhai sandbox ready
🌐 Dashboard: http://127.0.0.1:3000
Waiting for instructions...
100%
Pure Rust
8+
EVM Chains
<50ms
Execution
Strategies
0
Key exposure

A fully featured trading
dashboard, built in.

Monitor wallets, scan markets, configure strategies, and analyze performance — all from a clean, real-time web UI served directly by the Rust binary.

http://127.0.0.1:3000 — Trader Claw Dashboard
Trader Claw Dashboard — showing stat cards, system health, market scanner, and quick access panel

Everything you need to trade
at machine speed.

A complete trading stack — AI agent, multi-chain execution, prediction markets, backtesting engine, and Telegram bot — compiled into a single binary.

🦀

100% Rust, Zero Compromise

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.

🤖

AI Agent Loop

Powered by Claude / OpenAI / any OpenRouter model. The agent reads market data, manages your wallets, executes trades, and explains every decision in plain English.

🌐

Multi-Chain EVM Trading

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.

Solana & SPL Tokens

Buy and sell Solana tokens via Jupiter v6 aggregator with real-time quotes. Full SPL token balance tracking, PumpFun and Raydium DEX support.

💎

Polymarket Prediction Markets

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.

📊

Strategy Backtesting

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.

✈️

Telegram Integration

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.

⚙️

Cron Strategies

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.

🖥️

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.

One agent. Every chain.

Trader Claw connects to every major blockchain with custom RPC override support per chain.

Ethereum
🔵 Arbitrum
🔴 Optimism
🔷 Base
🟡 BNB Chain
🟣 Polygon
🦄 Unichain
🟢 ETC
Solana
💎 TON
🔮 Polymarket

From idea to live trade
in minutes.

01

Install & configure

Download the binary or build from source with cargo build --release. Edit config.toml to add your LLM API key and preferred chains.

02

Add wallets

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.

03

Write or ask for a strategy

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.

04

Monitor & automate

Set cron jobs for recurring strategies. Get Telegram alerts for fills and PnL updates. Track everything from the real-time web dashboard.

AI Agent · conversation
You:
Buy $50 of SOL on Solana when RSI goes below 28, then sell when it crosses 65.
🦀 TraderClaw:
Strategy understood. Let me backtest first…
📊 Backtest (90d): +31.4% PnL · Sharpe 1.82 · Win rate 71%
Looks solid. Shall I activate this strategy?
You:
Yes, activate it.
🦀 TraderClaw:
Cron strategy scheduled. Watching RSI on SOL/USDT.

Test before you risk
real money.

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:

Total PnL
+38.2%
Sharpe Ratio
2.14
Max Drawdown
-8.7%
Win Rate
73%
Total Trades
142
Avg Hold Time
4.2h
strategy.rhai
// RSI mean-reversion strategy
// Variables injected per candle:
// open, high, low, close, volume
// rsi, macd, signal, balance
 
if rsi < 28.0 && macd > signal {
  "buy"
} else if rsi > 68.0 {
  "sell"
} else {
  "hold"
}

Scripts run sandboxed — memory & time limited. Ask the AI to write one for you.

Trade from anywhere.
Your phone is the terminal.

Connect your Telegram bot in seconds. Get real-time alerts, check balances, and place orders — all without opening the dashboard.

🦀
TraderClaw Bot
● online
/balance
💼 Wallets
Main EVM · 0.42 ETH ($1,482)
Solana · 12.3 SOL ($2,103)
Poly · $340 USDC
/poly markets
🔮 Top Markets
BTC $100k in 2025 — YES 67%
ETH ETF by June — YES 44%
Fed rate cut March — YES 38%
/poly buy "BTC $100k in 2025" YES $25
Order placed
Bought 37.3 YES shares @ $0.67
Cost: $25.00 USDC

Every command you need, right in Telegram.

💰
Balance & Portfolio
Check all wallet balances across every chain in one command.
🔮
Polymarket Trading
Browse markets, check prices, buy and sell prediction shares instantly.
📈
Live Alerts
Get notified when RSI triggers, orders fill, or strategies activate.
🔐
Whitelist-Only Access
Only your Telegram username can send commands. Case-insensitive, @ optional.

Your keys. Your rules.
Zero compromise.

Trader Claw runs entirely on your machine. No cloud custody, no shared infrastructure. Every secret is encrypted before it ever touches disk.

🔒

AES-256-GCM Encryption

All private keys and API credentials are encrypted at rest using AES-256-GCM with Argon2id key derivation. Never stored in plain text.

📦

Sandboxed Script Execution

Rhai strategy scripts run in a fully sandboxed VM — no network access, no file system access, enforced memory and CPU time limits.

🏠

100% Local by Default

Binds to 127.0.0.1 only. Refuses to expose to the public internet unless explicitly opted in. No telemetry, no remote control.

Amount Validation

Every trade amount is validated before signing. The agent cannot sign a transaction it was not explicitly authorized to execute.

🔑

Zero Key Logging

Private keys and mnemonics are never logged, never serialized as strings, and never included in error messages or debug output.

🛡️

Bearer Token Auth

The web dashboard and API require a paired Bearer token. Unpaired requests are rejected before any handler logic runs.

Up and running
in under 2 minutes.

Build from source or download a pre-built binary. Requires Rust 1.86+.

bash
# 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.

Open source · MIT License

Start trading at
Rust speed.

Join traders building the future of algorithmic trading with Rust and AI.

🚀 Install Now 📖 Read the Docs