Gateway (Node/TS)
API key auth, provider routing (Groq/OpenAI/Anthropic/x402), velocity tracking, soft pause, rate limiting, and batch settlement (~5 min configurable).
Non-custodial AI billing on Sui — one API key, multi-provider routing, hard spend caps enforced by Move.
SEAL (v0.2) is a decentralized Sui-native protocol for AI teams: deposit SUI once, configure on-chain spend limits, and let agents call LLMs through a single key while settlement and caps live on Move contracts. Tagline from the repo: “One API key. Multiple providers. On-chain caps.”
AI agent spend is usually a developer credit card behind a shared API key. There is no hard ceiling if an agent loops, gets prompt-injected, or fans out sub-calls. Teams need multi-provider routing without trusting a custodian with the full treasury.
Split trust: users sign deposit, caps, and pause via PTBs; the gateway only signs
authorize_call for settlement. Daily, monthly,
and per-provider limits are enforced on-chain so a compromised key cannot override policy.
API key auth, provider routing (Groq/OpenAI/Anthropic/x402), velocity tracking, soft pause, rate limiting, and batch settlement (~5 min configurable).
Deposit/withdraw, set_spend_caps / set_provider_cap, authorize_call (gateway-only), pause/unpause (user-only). Events: Deposit, Withdraw, Receipt, Pause, Alert.
Wallet connect via Mysten dapp-kit, treasury setup PTB, API key management, anomaly banners, spend history, provider status, and live status polling.
POST /v1/chat — primary completion flowPOST /api/:provider — x402-protected routeGET /status/:wallet — balance, caps, pause, velocityPOST /keys/create · /settle · /resumeHierarchical agent treasuries on Sui