NPM (React/Next.js/Vite)
react and react-dom (>=18) — which your React/Next/Vite app already has. Everything else (assistant-ui, the AI SDK, Radix, animation, icons, syntax highlighting, etc.) is bundled into the package, so there’s nothing else to install. The SDK renders in its own React root inside a Shadow DOM and never shares those libraries with your app — this is what avoids version-skew crashes (e.g. duplicate React contexts blanking the panel).
Using the CDN standalone bundle below instead? It bundles React too — so it has no peer dependencies at all and works in Vue, Angular, or vanilla JS with nothing else installed.
CDN (Static sites, WordPress, vanilla JS)
Next step: mint a session token on your backend. It is the one thing the SDK cannot start without.