Skip to main content

React Components

The @vaultkit/ai-sdk package exports three core components for managing the user onboarding flow: These “inner” components assume they live inside a VaultkitProvider. If you prefer self-contained widgets that instantiate their own provider, use the top-level wrappers: FeatureSelection, VaultkitAuthComponent, and VaultkitConnectionManager.

Self-contained components

If you are not already inside a VaultkitProvider, import the outer components—they create their own provider internally.
Both approaches hit the same Vaultkit endpoints; choose the one that fits your architecture.

FeatureSelection props

Reading selections and connections

useVaultkit() exposes everything the UI components collect:
Use these helpers to pass selectedProviders/selectedScopes into createVaultkitClient before your agent connects.