Swap, farm, launch tokens, govern, and monitor — from a single Zig build with zero runtime dependencies.
+- Stats -----------+- Pools --------------------------+- Wallet ---------+ | Network devnet | | | | Slot 312847291 | SOL/USDC $1,234,567 72 | 5.23 SOL | | Pools 15 | SOL/USDT $ 987,654 68 | 1000 USDC | | TVL $2.8M | USDC/USDT $ 456,789 85 | 250 USDT | | Farms 4 | DAI/USDC $ 123,45661| | | WS * RPC * | mSOL/SOL $ 89,01245| LP Positions | | VPools 8 | BONK/SOL $ 34,56738| 12.5 LP SOL | | | JUP/USDC $ 12,89033| 5.0 LP DAI | +- Events ---------+----------------------------------+-----------------+ | 14:03 Pool updated: SOL/USDC | | 14:02 Risk: low diversification | | 14:01 Scout: high APR farm (SOL/USDC, 25%) | | 14:00 Connected to devnet | +------------------------------------------------------------------------+
Quote a swap, execute it, add or remove liquidity. Newton-Raphson convergence in 32 iterations with u128 overflow protection. Circuit breakers, rate limiting, TWAP oracles.
$ aex pool quote SOL/USDC 1.5 Input: 1.500000000 SOL Output: 234.891204 USDC Price: 156.594 USDC/SOL Impact: 0.03% Fee: 0.30 bps $ aex pool swap SOL/USDC 1.5 Swap executed Signature: 4kR9...vXm2 Received: 234.891204 USDC
$ aex vpool show 3 Slot: 3 Mint: 7xKX...m2qN Progress: ████████████████░░░░ 78% Sold: 780,000 / 1,000,000 Raised: 412.50 SOL Price now: 0.00088 SOL Grad price: 0.00110 SOL Creator vesting: 2%/hr (50h) Holder vesting: 5%/hr (20h)
Create a virtual pool with a linear curve. Price rises as tokens sell. When the curve completes, it automatically creates a full AMM pool seeded with the raised SOL. LP tokens vest over 20 hours.
The daemon scans for graduated pools, claims vested LP, stakes into farms, and harvests rewards on a 5-minute cycle. State persists to disk. Graceful shutdown on SIGINT.
$ aex farm stake --pool 7xKXt... Staked: 12.500000000 LP Farm: SOL/USDC APR: 24.7% $ aex farm claim --pool 7xKXt... Claimed: 360.000000 reward tokens Pending: 0.000000
22 commands with aliases. Unrecognized input becomes a natural language query.
10 panels in a weighted grid. Live WebSocket data. Braille sparklines.
112 tools over JSON-RPC stdio. Claude Desktop and Claude Code compatible.
PTY bridge serves the TUI to xterm.js over WebSocket.
Long-polling bot with inline keyboards for pool browsing.
Freestanding wasm32 build. TUI runs in-browser, no server.
Compiles both binaries in under 3 seconds.