One binary for the
entire AMM lifecycle.

Swap, farm, launch tokens, govern, and monitor — from a single Zig build with zero runtime dependencies.

$ zig build && ./zig-out/bin/aex pool list copy
aex tui — devnet
+- 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,456   61       |                 |
| WS * RPC *      |  mSOL/SOL    $   89,012   45       | LP Positions  |
| VPools   8         |  BONK/SOL    $   34,567   38       |  12.5 LP SOL  |
|                   |  JUP/USDC    $   12,890   33       |   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                                                  |
+------------------------------------------------------------------------+

StableSwap and constant product curves

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.

85 instruction handlers
22 CLI commands
$ 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)

Bonding curve launches that graduate to real pools

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.

create → buy/sell → graduate → vest → claim

Automated farming with a background daemon

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.

scan → claim LP → stake → harvest
aex402-daemon
$ 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

Six ways in

CLI

22 commands with aliases. Unrecognized input becomes a natural language query.

$ aex pool list

TUI

10 panels in a weighted grid. Live WebSocket data. Braille sparklines.

$ aex tui

MCP

112 tools over JSON-RPC stdio. Claude Desktop and Claude Code compatible.

$ aex mcp

Web

PTY bridge serves the TUI to xterm.js over WebSocket.

$ aex web

Telegram

Long-polling bot with inline keyboards for pool browsing.

$ aex telegram

WASM

Freestanding wasm32 build. TUI runs in-browser, no server.

$ zig build wasm

Zig 0.15. Zero deps.
Ships as one file.

Compiles both binaries in under 3 seconds.

Read the docs View source →