Architecture
Architecture
Auton is a permissionless protocol where providers, consumers, and liquidity participants trade compute derivatives on-chain.
Overview
- Frontend — React Router app for markets, dashboard, staking, and treasury
- Backend API — Express server handling auth, keys, balances, and gateway proxy
- Database — Supabase Postgres for users, API keys, compute balances, staking ledger, and usage logs
- Chain — Solana for wallet auth, staking via Streamflow, and settlement
Backend API
Wallet auth uses Solana message signatures — not Supabase Auth. A nonce endpoint returns a sign-in message; login verifies the signature and issues a JWT. All dashboard and staking routes require that JWT.
Express API → @supabase/supabase-js → Supabase PostgresInference gateway
The gateway is an OpenRouter-compatible proxy mounted at /api/v1/gateway/*. Requests authenticate with Auton API keys (hashed at rest). Usage is logged per request and deducted from forward compute balances.
On-chain layer
$AUTO serves three roles: futures margin collateral, verifier staking for SLA guarantees, and treasury buyback target. Staking is self-custody via Streamflow — your tokens stay in your wallet.