fully autonomous & open source

An AI robot that
trades Solana
while you sleep

AMG is an autonomous AI trading agent powered by Claude. It analyzes markets, makes decisions, executes trades, manages risk, and claims LP fees — all on its own, 24/7, with every decision logged publicly.

What does AMG actually do?

Every few minutes, the agent wakes up, looks at the world, thinks, and acts. Here's the loop.

Observes

Fetches real-time prices, market data, portfolio balances, and open positions from Solana.

Thinks

Claude AI analyzes everything — market conditions, portfolio state, risk rules — and makes a trading decision.

Acts

Executes spot swaps, opens/closes perp positions, claims Meteora LP fees, and distributes SOL to token holders.

Protects

6 risk rules gate every trade: position limits, stop losses, leverage caps, loss cooldowns.

How it works

1

Market Intelligence

Birdeye API fetches SOL, BTC, ETH prices, top movers, and sentiment analysis. Data is cached and refreshed every 60 seconds.

2

Portfolio Tracking

Reads on-chain wallet balances, token accounts, perp positions, and LP positions. Snapshots are saved to PostgreSQL every cycle.

3

AI Decision Engine

Claude receives a structured prompt with portfolio, market, and risk data. It returns a JSON decision: HOLD, SPOT_SWAP, OPEN_PERP, CLOSE_PERP, or ADD_LIQUIDITY.

4

Risk Gate

Every decision passes through 6 risk rules before execution. If any rule trips — position too large, daily loss exceeded, etc. — the trade is blocked.

5

Execution

Approved trades execute via Jupiter (swaps + perps) and Meteora (LP fee claims). 50% of claimed fees are distributed to AMG token holders.

6

Logging

Every decision, trade, risk event, and portfolio snapshot is stored in PostgreSQL and visible on the live dashboard.

The Stack

RuntimeElizaOS v2 + Bun
AIClaude (Anthropic)
ChainSolana
DEXJupiter (swaps + perps)
LPMeteora DAMM v2
DataBirdeye + Helius
DatabasePostgreSQL + Drizzle
DashboardNext.js + Tailwind
InfraDocker Compose

Full Transparency

Every single trade, every decision, every risk event — it's all public. The code is open source. The dashboard is live. Nothing is hidden.

100%

Open Source

24/7

Autonomous

50%

Fees to Holders

Real-time

Dashboard

6

Risk Rules

Watch the robot work

See every decision in real-time. No secrets, no hidden trades.

Open Dashboard