Site owners
Each answer counts against the visitor's own plan, credits or key. Your site pays nothing for the answers and holds no provider key.
AI Connect is the open source SDK that TensorPass publishes for websites. With it, a site adds an AI chat, a search bar that answers questions or a full page AI mode. Each answer runs on the visitor's own ChatGPT, Claude, Gemini or OpenRouter account through the AI Wallet browser extension. The SDK works with React, Web Components and MCP (Model Context Protocol) tools, and code already written for the OpenAI, Anthropic or Vercel AI SDK keeps its calls once it passes one option.
The SDK ships as four packages on npm under @tensorpass.
Each answer counts against the visitor's own plan, credits or key. Your site pays nothing for the answers and holds no provider key.
A React app wraps its pages in AiConnectProvider and renders the chat modules of @tensorpass/aiconnect-react. A static site or a WordPress page loads one script and adds an <aiconnect-chat> element.
A site that calls a model through the OpenAI, Anthropic, Google Gen AI, Vercel AI or LangChain SDK keeps that code and passes the SDK one option. AiConnect.fetch then sends each request to the visitor's wallet and returns the answer in the format the SDK expects.
A visitor keeps ChatGPT, Claude, Gemini, Grok or OpenRouter accounts and API keys in AI Wallet, which encrypts them on their computer behind a password. The wallet asks the visitor before each new site uses them. No method of the wallet returns a credential to a site.
AI Wallet places window.aiwallet in every page before your scripts run.
On a first visit, the visitor presses your connect button and the wallet opens its approval window. That window shows your site's host and the account that will answer. A site approved on an earlier visit connects again without a click.
The SDK reads your tool definitions from your MCP server and sends the conversation to the wallet.
The wallet calls the provider with the visitor's credential and streams the answer back to your page.
When the model asks for a tool, the SDK calls your MCP server from the page and sends the result back to the model. The loop repeats until the model answers in plain text, for at most 6 steps by default.
Each conversation draws a random salt that marks where your instructions and each tool result start and end, so text planted in your data reaches the model as data. When an answer reaches an unsafe piece, such as a link outside the hosts you allow, the SDK stops it there and shows the safe answer you wrote.
To try it, add AI Wallet to desktop Chrome, Edge, Brave, Opera or Firefox, connect an AI account and ask the chat on tensorpass.app a question. A visitor without the wallet signs in to OpenRouter in the page, or to the TensorPass plan when the site passes its site key.
Any page
<script src="https://cdn.jsdelivr.net/npm/@tensorpass/[email protected]/dist/aiconnect-elements.js" defer></script>
<aiconnect-chat variant="popup" mcp="/api/mcp"
system="You answer questions about this site."></aiconnect-chat>React
npm install @tensorpass/aiconnect @tensorpass/aiconnect-react
const client = new AiConnect();
<AiConnectProvider client={client} locale="en">
<AiChatPopup system={SYSTEM} mcp="/api/mcp" />
</AiConnectProvider>Your current AI SDK
const aiconnect = new AiConnect();
const openai = new OpenAI(aiconnect.sdkOptions);
const anthropic = new Anthropic(aiconnect.sdkOptions);TensorPass, AI Connect and AI Wallet are trademarks of TensorPass.