Auth for AI builders
Build AI products without the AI bill.
Your users sign in with their AI subscription. authai.js wires it into your app in two lines. Every model call lands on their plan — across ChatGPT, Grok, and Copilot.
Or get started in one command
npx authai-cloud initimport { AuthAIProvider, SignIn, useAuthAI } from "@authai/react"; export function App() { // Wrap once. The provider mounts the sign-in dialog and exposes // the session via useAuthAI() anywhere below it. return ( <AuthAIProvider relayUrl="https://relay.authai.io" appName="MyApp"> <Chat /> </AuthAIProvider> ); } function Chat() { const { jwt, isSignedIn } = useAuthAI(); if (!isSignedIn) return <SignIn />; // jwt is the user's session — opaque to you. Send it to your backend // however you usually send auth (header, cookie, body). }