Skip to main content
The Vaults.fyi SDK gives you typed access to 1,000+ DeFi yield strategies across 80+ protocols. This guide walks you through installation, authentication, and your first API call.
1

Install the SDK

Add the SDK to your project using your preferred package manager.
2

Set your API key

Export your API key as an environment variable so the SDK can authenticate your requests.
You need an API key to use the SDK. Sign up at the vaults.fyi portal to generate one. We offer a Pay-As-You-Go plan so you only pay for what you use, with no commitments.
3

Initialize the client

Import the SDK and create a client instance using your API key from the environment.
4

Make your first call

Call getDepositOptions to fetch personalized yield opportunities for a wallet address. The response is filtered by the assets you specify.
getDepositOptions ranks results by APY and filters out vaults below minimum TVL thresholds. It’s the fastest way to surface relevant opportunities for a specific wallet.

Next steps

Now that your client is working, explore the full set of SDK methods or follow a tutorial for your use case.