An AI keyboard for mobile that swaps on Uniswap, places Flash orders and thinks privately on 0G.


Glyf is an AI keyboard for mobile, on iPhone (TestFlight) and Android. At ETHGlobal Mumbai we taught the iPhone keyboard to trade from the words you already type, in any app: WhatsApp, Messages, X, anywhere.
Definitive Flash, for orders that wait. "sell my eth if it drops below 3000", "take profit at 4500", "protect my eth with a 5% trail", "buy $20 of eth every day for a week". The keyboard reads the sentence on the phone (no AI, no server), shows a live Flash quote you can edit, and places stop-losses, take-profits, limits, stop buys, brackets, trailing stops and TWAP, on Base and on Solana. Open orders list with Cancel.
Uniswap, for trades now. "swap 0.05 eth to usdc on base" gets a live Uniswap quote inside the keyboard, any token to any token, with token and chain pickers, on Base, Ethereum, Arbitrum, Optimism and Unichain.
You keep the keys. Glyf builds every transaction on the phone, then signs with its own wallet (one 24-word phrase makes both its Ethereum and Solana wallets) or hops to MetaMask or Phantom by deeplink and comes straight back. No web page, no WalletConnect relay, and every signature is checked before anything is sent.
Trading is social. Share a trade into the chat; a friend taps Copy this trade and the same order opens in their Glyf, waiting for their tap.
Private AI on 0G. A keyboard sees everything you type, so its AI has to be private. On this build every AI call (answers, rewrites, and recommendations: type "dca 20$ in eth each month" and a chip offers the Flash plan, filled in) runs on 0G Private Computer inside a TEE, and each answer's 0G request id is listed in the app as a receipt.
Three parts: a native Swift keyboard extension, a Flutter app that holds the wallets and signs, and a Fastify/TypeScript server on Vercel. They talk through an App Group (shared settings) and glyf:// links.
Keyboard (Swift). TradeIntent.swift reads trades in plain words with no model: amounts, "$50 of", "all my", prices, percentages, durations, chains, ENS and SNS names. TradeSurface.swift draws the quote, the editable amounts and prices, and the token and chain pickers inside the keyboard, with each chain's real logo parsed from its SVG path data on the phone. One tap hands the trade to the app.
Definitive Flash. The server proxies /quote and /order with our integrator key and maps symbols to assets per chain. On EVM the phone signs Flash's evmOrderTypedData, Permit2 and the attached bracket (EIP-712). On Solana, Flash's setup instructions (token accounts, SOL wrap, delegation) become one transaction built on the phone; Phantom signs it and the order message, and each signature is checked with Ed25519 before Flash sees it. Flash's 30-day TWAP limit is why a monthly DCA becomes a plan.
Uniswap. The Trading API when keyed; otherwise QuoterV2 over every fee tier in one Multicall3 call, two-pool routes through WETH or USDC, and SwapRouter02 calldata, proven with eth_call balance overrides before we had funds.
0G. One header (X-Glyf-AI: 0g), read through AsyncLocalStorage, sends every existing AI route to 0G's OpenAI-compatible router with Private trust mode and verify_tee: no route changed. 0gm-1.0-35b-a3b-sia streams a rewrite in about 2.2 s for about $0.0002, and each x_0g_trace request id is saved as a receipt. TestFlight builds never send the header and keep their usual models.
Hacky bits: trades are understood with zero AI calls; MetaMask's archived iOS SDK deeplink protocol re-implemented in about 150 lines of Dart (connect, sign, a chain switch batched in front, replies on glyf://); stand-ins that answer as MetaMask and Phantom so the whole flow runs in the simulator and in unit tests.

