Overview
What is Owney?
Owney is an aggregator of trusted DeFi yield agents capturing the best risk-adjusted yield with diversified exposure to DeFi markets and 24/7 risk monitoring. The agents continuously optimize allocations across yield protocols, outperforming static strategies because they continuously adapt to where yield moves, while having proven to be more resilient during recent exploits.
Everything is non-custodial end to end: there are no pooled funds, and each user has it’s own smart account. This SDK gives you a single entry point to trusted DeFi agents, combining a simple integration with flexible customization. The setup also works with existing non-custodial and custodial wallet setups. Learn more on our home page or try Owney yourself in the Owney Web App.
Integration methods
Owney can be integrated in two ways:
- White-label: The best fit if you want to ship fast. We manage the application from start to finish for you, so you do not need to worry about technical complexity.
- Owney SDK: The best fit if you want to have full control over the user experience. We provide the infrastructure, and you can build your own UI on top of it.
White-label
Integrate DeFi agents through our pre-built interface with minimal development effort. The UI can be styled to match your brand and made available in either of two ways:
- Custom domain: Use the white-label as a standalone app hosted on a dedicated custom domain.
- Embedded widget: Embed the white-label in your existing website or application using our iframe-based widget.
Contact your Owney account manager or email support@owney.app to get started with the white-label.
Owney SDK
Build your own interface on top of the Owney SDK for full control over the user experience. The Owney SDK is a TypeScript library that helps you integrate DeFi agents into your application.
The SDK handles:
- Wallet connection
- Smart wallet deployment
- Session key management
- Agent and strategy selection
- Agent execution
- Gasless (sponsored) deposits
- Single-chain and cross-chain swaps
- Pool customization
- Portfolio and earnings tracking
Wallet connection
Users interact with DeFi agents through Owney by connecting their own wallet. Agents run on top of the user's wallet. The SDK is non-custodial and does not manage custody of user funds. All interactions are executed through the user's wallet, and the SDK never requires or accesses user private keys.
Each deployed agent creates its own smart wallet or smart account through which all agent actions are executed. This ensures agent interactions remain isolated while still operating on top of the user's connected wallet.
Requirements
To use the SDK, your application must:
- Integrate an EVM-compatible wallet solution (e.g. MetaMask, Privy, Fireblocks, etc.).
- Obtain an EIP-1193-compatible provider from that wallet. See the examples for more information.
The SDK uses the provider to:
- Request wallet connection
- Sign authentication messages (e.g. SIWE, if required)
- Deploy smart wallets (when needed)
- Approve and execute transactions
- Manage session keys for delegated agent actions
Connection flow
- Call
connectonce at the start of a user session. - Use
isConnectedto guard wallet-dependent UI/actions. - Call
disconnectwhen ending the session.
Most SDK methods require an active connection.
Account setup and activation
Use account lifecycle methods to prepare a user for agent execution:
activateAgentdeploys the user smart wallet and initializes session context for one or more chain-compatible agents.getActiveChainIdreturns the current active chain selected byactivateAgent.
Fund operations
Use the fund methods to move capital into and out of agent strategies:
deposit- Deposit into one or all eligible agents. Uses the built-in gasless deposit flow when nodepositCallbackis provided.withdrawapprovePermit2- One-time approval required for gasless WETH deposits.ensureAutoSelectProtocols- Opt an asset into backend protocol auto-selection.
Swapping
Swap wallet assets into agent-supported deposits, or withdraw into another wallet asset:
swapAndDeposit- Swap a wallet asset and deposit the proceeds.withdrawAndSwap- Withdraw an agent asset and swap it into the requested asset.- Asset discovery, quotes, and recovery - Build asset pickers, preview swaps, and resume interrupted operations.
Pool customization
Use pool-customization methods to show available pools and save a user's choices before depositing:
getPoolCatalog- Get selectable pools grouped by protocol.getPoolSelection- Restore the user's current selections.setPoolSelection- Save explicit pool choices.
Portfolio monitoring
Use portfolio methods to fetch performance data and account views:
getBalances- Current balances across active agents or for a single agent.getEarnings- Earnings summary.getAccountApy- Weighted APY across the active portfolio or for a single agent.getAllocationApy- Position-weighted APY based on the user's current allocation.getHistory- Transaction and rebalance history.getUserProfile- User-level agent profile data.
Agent performance
Get insights into agent performance. A wallet connection is not required to use this function.
getAgentApy: Overall APY for one or all agents.