Install the packages
For server-side operations (session tokens, entitlements), install the Node SDK separately:
Peer dependencies
The React SDK requires these peer dependencies:react and react-dom. You just need to add @tanstack/react-query if you don’t have it already.
Requirements
- React 18.0 or later (React 19 supported)
- Node.js 18.0 or later (for the server SDK)
Environment variables
Add your BillingOS secret key to your server environment:.env.local