> **Can't find what you're looking for?** Use `search_docs` on the docs MCP server at `https://www.openfort.io/api/mcp` to find what you need.
>
> **Have feedback?** Use `submit_feedback` on the same MCP server.

# Recipes

Explore comprehensive recipes that demonstrate how to integrate Openfort's embedded wallet infrastructure with popular DeFi protocols and blockchain applications.

[Pick a recipe →](#pick-a-recipe) · [recipes-hub on GitHub →](https://github.com/openfort-xyz/recipes-hub)

Each recipe includes complete source code, setup instructions, and implementation details.

:::tip
Jump straight to code in our [GitHub](https://github.com/openfort-xyz/recipes-hub).
:::

## Pick a recipe

| I want to | Recipe | Openfort pieces | Platform | Network |
| --- | --- | --- | --- | --- |
| Earn lending yield | [Aave](https://www.openfort.io/docs/recipes/aave), [Morpho](https://www.openfort.io/docs/recipes/morpho) | Embedded wallet, gas sponsorship | React (Vite) | Aave: Base or Base Sepolia; Morpho: Base mainnet |
| Offer vaults across many protocols | [vaults.fyi](https://www.openfort.io/docs/recipes/vaults-fyi), [Yield.xyz](https://www.openfort.io/docs/recipes/yield-xyz) | Embedded wallet, automatic recovery, gas sponsorship | React (Vite) + backend | vaults.fyi: Base mainnet; Yield.xyz: Monad mainnet |
| Swap across chains | [LI.FI](https://www.openfort.io/docs/recipes/lifi), [NEAR Intents](https://www.openfort.io/docs/recipes/near-intents) | Embedded wallet, gas sponsorship | Next.js | Multi-chain |
| Trade tokenized stocks | [Ondo](https://www.openfort.io/docs/recipes/ondo) | Solana embedded wallet, passkey recovery | React (Vite) | Solana mainnet |
| Trade perps | [Hyperliquid](https://www.openfort.io/docs/recipes/hyperliquid), [Lighter](https://www.openfort.io/docs/recipes/lighter) | Embedded wallet, backend wallets | React Native (+ backend) | Hyperliquid; Lighter testnet by default (mainnet via env) |
| Charge for an API or pay as an agent | [x402](https://www.openfort.io/docs/recipes/x402), [MPP](https://www.openfort.io/docs/recipes/mpp) | Embedded and backend wallets, EIP-7702, gas sponsorship | React + Node; Next.js | Base Sepolia; Tempo testnet |
| Let a backend act for a user within limits | [User + server signers](https://www.openfort.io/docs/products/server/workflows/user-and-server-signers) (guide) | Embedded wallet, backend wallet, EIP-7715 session keys | React + Node.js | Any supported EVM chain |
| Pay users out to their bank | [Cash out with Bridge](https://www.openfort.io/docs/recipes/bridge-offramp) | Embedded wallet, gas sponsorship, server session checks | Next.js | Base Sepolia (Bridge sandbox) |
| Move money between a bank and a wallet | [Lightspark Grid](https://www.openfort.io/docs/recipes/lightspark-grid) | Embedded wallet, gas sponsorship, server session checks | Next.js | Base Sepolia (Grid sandbox) |
| Give each chat user a wallet | [Telegram wallet bot](https://www.openfort.io/docs/recipes/telegram-bot) | Backend wallets, EIP-7702, gas sponsorship | Node.js | Base Sepolia |
| Pay or earn privately | [Unlink](https://www.openfort.io/docs/recipes/unlink-private-payments), [Zama](https://www.openfort.io/docs/recipes/earn-private-yield-zama) | Embedded EOA with passkey, EIP-7702, gas sponsorship | React (Vite) | Monad testnet; Ethereum Sepolia |

Most recipes' source is in [recipes-hub](https://github.com/openfort-xyz/recipes-hub), and each of those has an `AGENTS.md` with steps for adding it to your own app. A few recipes are not in the recipes-hub default branch yet: Cash out with Bridge ([recipes-hub#63](https://github.com/openfort-xyz/recipes-hub/pull/63)), Virtual bank accounts ([recipes-hub#61](https://github.com/openfort-xyz/recipes-hub/pull/61)) Spend with Gnosis Pay ([recipes-hub#44](https://github.com/openfort-xyz/recipes-hub/pull/44)) and Trade tokenized stocks with Ondo ([recipes-hub#86](https://github.com/openfort-xyz/recipes-hub/pull/86)) are in review, and Pay with WalletConnect Pay is documented on its page only.

## Available recipes

* [Yield on Aave](https://www.openfort.io/docs/recipes/aave) — Full-Stack DeFi Application. Lending and borrowing with Aave protocol integration.
* [Yield on Morpho](https://www.openfort.io/docs/recipes/morpho) — Optimized Yield Generation. Morpho Blue USDC vault interactions on Base network.
* [Stake and earn with Yield.xyz](https://www.openfort.io/docs/recipes/yield-xyz) — Staking & Vaults on 80+ Networks. Discover, enter, track, and exit native staking and ERC-4626 vaults via Yield.xyz's StakeKit API.
* [Trade on Hyperliquid](https://www.openfort.io/docs/recipes/hyperliquid) — Perpetuals, Agents & HyperEVM. Backend wallets, agent delegation, trading policies, and HyperEVM integration.
* [Trade on Lighter](https://www.openfort.io/docs/recipes/lighter) — Zero-Fee zk L2 Perps. Server-held API keys for order signing, backed by an Openfort wallet that owns the account.
* [Swap on LI.FI](https://www.openfort.io/docs/recipes/lifi) — Cross-chain bridge and swap. Multi-chain swaps with LiFi's routing engine across 6+ networks.
* [Swap on NEAR Intents](https://www.openfort.io/docs/recipes/near-intents) — Cross-chain Swaps via Solvers. Swap from an embedded wallet to any chain NEAR Intents supports, including Solana and Bitcoin, with the 1Click API.
* [Trade tokenized stocks with Ondo](https://www.openfort.io/docs/recipes/ondo) — Ondo Global Markets on Solana. Buy and sell tokenized stocks and ETFs such as NVDAon and SPYon with USDC from a Solana embedded wallet, routed by Jupiter.
* [Virtual bank accounts](https://www.openfort.io/docs/recipes/virtual-bank-accounts) — Fiat On-Ramp with Noah. Issue each user a US account number or a European IBAN; deposits auto-convert to USDC in their wallet.
* [Cash out with Bridge](https://www.openfort.io/docs/recipes/bridge-offramp) — Fiat Off-Ramp with Bridge. Send USDC from an embedded wallet to a Bridge liquidation address and pay it out to the user's bank by ACH, wire or SEPA.
* [Bank rails with Lightspark Grid](https://www.openfort.io/docs/recipes/lightspark-grid) — Fiat On- and Off-Ramp with Grid. Fund an embedded wallet from a bank transfer and cash USDC back out to the same bank, with Grid quoting each conversion.
* [x402 Payments](https://www.openfort.io/docs/recipes/x402) — HTTP-Based Micropayments. API monetization with Coinbase x402 payment protocol.
* [Pay with WalletConnect Pay](https://www.openfort.io/docs/recipes/walletconnect-pay) — Stablecoin Checkout. Pay WalletConnect Pay links with an embedded wallet — passkey recovery, no backend.
* [Spend with Gnosis Pay](https://www.openfort.io/docs/recipes/gnosis-pay) — Self-Custodial Debit Card. Sign in to Gnosis Pay with an embedded wallet, onboard the user, and issue a virtual Visa card funded with EURe.
* [MPP on Tempo](https://www.openfort.io/docs/recipes/mpp) — Autonomous Agent Payments. An AI agent pays for HTTP services in PathUSD on Tempo via MPP.
* [Private payments with Unlink](https://www.openfort.io/docs/recipes/unlink-private-payments) — Confidential Accounts Payable. Pay supplier invoices privately through Unlink's shielded pool on Monad testnet — non-custodial EOA with passkey.
* [Earn private yield with Zama](https://www.openfort.io/docs/recipes/earn-private-yield-zama) — Confidential cUSDC Vault. Shield USDC into confidential cUSDC and earn private yield in Zama's confidential Morpho vault — gasless EOA with passkey.
* [Telegram wallet bot](https://www.openfort.io/docs/recipes/telegram-bot) — Backend Wallet per Chat User. Every Telegram user gets a backend wallet and sends USDC on Base Sepolia with sponsored gas.

## Community recipes

Integrations built with partner protocols and SDKs on top of Openfort wallets.

* [Yield discovery with vaults.fyi](https://www.openfort.io/docs/recipes/vaults-fyi) — Vault Aggregation Across 80+ Protocols. Discover, deposit into, and redeem yield positions with the vaults.fyi SDK.

## Use your own authentication

Complete quickstart templates integrating third-party authentication providers with Openfort embedded wallets.

* [Firebase](https://github.com/openfort-xyz/openfort-react/tree/main/examples/quickstarts/firebase) — Quickstart with Firebase. Firebase Authentication integration with Openfort embedded wallets.
* [Supabase](https://github.com/openfort-xyz/openfort-react/tree/main/examples/quickstarts/supabase) — Quickstart with Supabase. Supabase authentication with Openfort embedded wallets.
* [Better-Auth](https://github.com/openfort-xyz/openfort-react/tree/main/examples/quickstarts/betterauth) — Quickstart with Better-Auth. Better Auth integration with Openfort embedded wallets.
