Developer portal
Let your users bring their own AI keys. Register an app, send users through consent, then call an OpenAI-compatible API with their token.
Your apps
Loading…
Quickstart
Open an app for snippets filled in with its client ID and redirect URI.
// npm install @usaaicorp/ai-wallet-react
import { AIWalletProvider, ConnectAIWalletButton } from "@usaaicorp/ai-wallet-react";
export function ConnectAI() {
return (
<AIWalletProvider clientId="YOUR_CLIENT_ID" redirectUri="https://yourapp.example/aiwallet/callback">
<ConnectAIWalletButton />
</AIWalletProvider>
);
}
// Exchange the returned code on your server. Never put the client secret in browser code.