SDK Quickstart
1. Install dependencies
2. Provide Vaultkit credentials
Create environment variables for the required credentials: your Vaultkit API key and the end-user ID. The vault ID is optional—use it only if you have a static vault; otherwise, use dynamic vaults via feature mappings.3. Wrap your page with VaultkitProvider
4. Let users pick features and connect providers
Before the UI renders anything meaningful, create at least one Feature in the Vaultkit dashboard (Dashboard → Feature Mappings). Each feature bundles the providers and tools the end user can opt into. For example:- Feature: “Email assistant”
- Description: “Monitor and help manage your inbox”
- Providers: Gmail, Outlook
- Permissions / Scopes: create, read, update, delete
FeatureSelect surfaces it to end users, and AuthComponent automatically lists the OAuth buttons for the configured providers.
Important: If no feature exists in the dashboard,FeatureSelectrenders an empty list andAuthComponenthas nothing to authenticate. Always seed the dashboard first—either manually or by script—before wiring these components into your app.
Note:FeatureSelectandAuthComponentassume they are rendered inside aVaultkitProvider. If you want standalone components that manage their own provider, importFeatureSelectionorVaultkitAuthComponentinstead.
5. Connect your agent
Once users have selected features and authenticated providers, usecreateVaultkitClient to connect your agent:
vaultkit.tools to your LLM runtime (Vercel AI SDK, LangChain, etc.) to enable tool calling. For more details, see SDK Configuration.