---
title: "AI Connect by TensorPass: website AI on your visitors' accounts"
description: "AI Connect, TensorPass's open source SDK, adds an AI chat, search or AI mode to a site and runs each answer on the visitor's ChatGPT, Claude or Gemini account."
canonical: "https://laboetie.io/open-source/tensorpass"
language: en
---
# TensorPass: AI Connect, the SDK for website AI that runs on each visitor's own AI account

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.

- License: Apache 2.0
- Packages: 4 on npm
- Interface languages: English, French, Hebrew, Arabic, Chinese

## Who TensorPass is for

### 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.

### React and plain HTML sites

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.

### Teams on an AI SDK

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.

### Visitors

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.

## How TensorPass works

### The wallet in the page

AI Wallet places window.aiwallet in every page before your scripts run.

### Approval per site

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.

### Your tools over MCP

The SDK reads your tool definitions from your MCP server and sends the conversation to the wallet.

### The visitor's provider

The wallet calls the provider with the visitor's credential and streams the answer back to your page.

### The tool loop

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.

### Guards

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.

## Get started

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/aiconnect-elements@0.1/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);
```

## License

- SDK packages, demo, WordPress plugin and Claude Code plugin: Apache 2.0
- Shopify app: Apache 2.0
- AI Wallet extension: Proprietary

TensorPass, AI Connect and AI Wallet are trademarks of TensorPass.

## Links

- Website: https://tensorpass.app
- Documentation: https://tensorpass.app/docs
- GitHub: https://github.com/tensorpass/aiconnect
- npm: https://www.npmjs.com/package/@tensorpass/aiconnect
- AI Wallet on the Chrome Web Store: https://chromewebstore.google.com/detail/ai-wallet/gkmgamdkmlidbjfmheeghkcjdofdafge
- AI Wallet on Firefox Add-ons: https://addons.mozilla.org/en-US/firefox/addon/ai-wallet/
