Add AI Chatbot to Website With No API Key on Your Server
Three ways to pay for AI chat on a website, priced at 1,000 answers: a hosted widget, your own API key at $0.557 on gpt-5-mini, or the visitor's own AI through AI Connect at $0 inference. Every install path, from a script tag to Shopify.
Published on
To add AI chatbot to website pages this week, you pick between three billing routes, and the price of 1,000 answers ranges from $990 to $0 for your site. A hosted widget bills you per message or per resolution. A route handler holding your own OpenAI key bills you per token: $0.557 for 1,000 short chat answers on gpt-5-mini at November 2026 prices. The third route lets each visitor answer with the ChatGPT, Claude or Gemini plan they already pay for, through AI Connect (our open source SDK under Apache 2.0) and AI Wallet (the browser extension that holds the visitor's AI accounts). Your server holds no provider key and receives no inference bill. This guide maps every install path, from a script tag to Shopify, around that one question: who pays for each answer. It also states what your site still hosts and pays for.
Key takeaways:
- One chat answer of 1,748 input and 60 output tokens costs $0.000557 on gpt-5-mini at the list prices of 12 November 2026, so 1,000 answers cost $0.557 on your own key.
- Intercom bills its Fin AI Agent $0.99 per outcome in November 2026, which is $990 for 1,000 resolved conversations.
- With AI Connect the inference line of your site is $0 at any traffic; you still host your MCP server, your pages and your search index.
- On 16 November 2026 a fresh Next.js 16 app installed AI Connect from npm and passed 12 of 12 visitor checks against the live sign ins.
- On 12 November 2026 our chat passed 108 of 108 guard and MCP server checks and 35 of 35 model attacks in an internal pen test (not a third party audit).
Add AI chatbot to website: who pays for each answer
Every AI answer on a website consumes tokens, and one account pays for them. The inference bill is the price of the tokens the model reads plus the price of the tokens it writes, listed by providers in US dollars per million tokens. On a site with 50,000 monthly visitors, that line decides whether the chat stays a feature or turns into a budget item. Three routes exist in November 2026, and each one puts the bill on a different account.
The first route is the hosted widget: a vendor such as Elfsight, Botpress, Chatbase or Intercom builds the bot in its dashboard, trains it on your URLs and gives you a snippet to paste before the closing body tag. The vendor buys the tokens and resells them to you as messages, credits, conversations or resolutions. Elfsight's free plan covers 50 messages a month. Botpress listed a free tier of 100 conversations a month and a Plus plan at $150 a month in June 2025. Chatbase's Basic plan costs $150 a month for 4,000 message credits, with extra credits at $40 per 1,000. Intercom charges $0.99 per outcome for its Fin AI Agent.
The second route is your own API key. A route handler on your server holds an OpenAI, Anthropic or Google key, receives the visitor's question and calls the model. You pay the provider's list price for every token every visitor sends. The key sits on your server, every visitor shares its rate limit, and abuse of the chat lands on your invoice.
The third route is the visitor's own AI. The page sends the conversation to AI Wallet in the visitor's browser, and the wallet calls the provider with the visitor's own credential: a ChatGPT, Claude, Gemini or Grok plan, OpenRouter credits or an API key. The provider counts the answer against that account.
| Route | Who pays the model | Your cost for 1,000 answers | Prices dated |
|---|---|---|---|
| Hosted widget | Your site, through the vendor | $40 in Chatbase add-on credits to $990 in Intercom Fin outcomes | November 2026 |
| Your own API key | Your site, at provider list price | $0.20 (Claude Haiku 5.5) to $8.19 (Claude Opus 5.5) for chat; $0.557 on gpt-5-mini | 12 November 2026 |
| Visitor's own AI with AI Connect | The visitor's plan, credits or key | $0 inference; MCP server and hosting stay on your bill | November 2026 |
The spread inside the own key row comes from the model alone. The cheapest and the dearest of eight models priced on 12 November 2026 differ by a factor of 40 for the same 1,748 input and 60 output tokens. A retrieval answer widens the gap: 1,000 RAG answers (retrieval augmented generation, where the site adds passages from its own content to the question) cost $0.60 on Claude Haiku 5.5 and $23.98 on Claude Opus 5.5. Our full comparison of what each AI chatbot pricing model costs a site prices the four billing models line by line.
The cost of one answer on your own key, measured
One chat answer on gpt-5-mini costs $0.000557 at the OpenAI list price read on 12 November 2026. The figure comes from a fixed token count: 1,748 input tokens and 60 output tokens, the average per message of a university admissions chatbot measured in production over two weeks. That deployment cost $11.58 in total on GPT-4o mini.
The arithmetic fits on one line. OpenAI lists gpt-5-mini at $0.25 per million input tokens and $2.00 per million output tokens. The input costs 1,748 × $0.25 ÷ 1,000,000 = $0.000437. The output costs 60 × $2.00 ÷ 1,000,000 = $0.000120. The answer costs $0.000557, so 10,000 answers cost $5.57 and 1,000,000 answers cost $557.
That price holds for a short, flat chat. Three variables move it upward on a real site.
- The model. The same chat answer costs $0.0002048 on Claude Haiku 5.5, $0.004096 on Claude Sonnet 5.5 or gpt-6.1-sol, and $0.008192 on Claude Opus 5.5 at the list prices of 12 November 2026.
- Retrieval. A plain RAG pipeline averages 3,865 input and 426 output tokens per query, which costs $0.01199 per answer on Claude Sonnet 5.5, about 3 times the chat answer on that model.
- Iterative retrieval. A pipeline that retrieves several times averages 12,814 input and 1,207 output tokens, $0.037698 per answer on Claude Sonnet 5.5.
- The input share. On Claude Sonnet 5.5 the 1,748 input tokens of a chat answer cost $0.003496 and the 60 output tokens $0.0006, so input makes 85% of the bill. Longer instructions and more tool definitions raise it.
- Tool fees. OpenAI's file search tool adds $2.50 per 1,000 calls and its web search tool $10.00 per 1,000 calls in November 2026, on top of the tokens.
- Price changes. Google's gemini-3.8-flash moves from $0.75 and $3.75 to $1.50 and $7.50 per million tokens on 1 January 2027, which doubles every answer on that model.
- Model retirement. OpenAI's model page lists gpt-5-mini as deprecated in November 2026 and points new low latency workloads to GPT-6.1 Terra, so the $0.000557 baseline has a shelf life.
Volume multiplies these small per answer prices. The section on worked scenarios below runs these numbers at 50,000 monthly visitors. The method and every row of the eight model table sit in our study the cost of one AI answer on a website's own API key.
How the visitor's own AI answers on your site
AI Connect moves the model call from your server into the visitor's browser and hands it to an account the visitor already pays for. The visitor holds a ChatGPT, Claude, Gemini, Grok or OpenRouter account, or an API key, in AI Wallet. Each request from your page goes through the wallet to the provider, signed with the visitor's credential. Your site receives the streamed text, the tool calls, the finish reason, the model that answered and the token counts.
A first visit runs in seven steps:
- Detection. AI Wallet places
window.aiwalletin every page before your scripts run. - Status check. Your AiConnect client looks for the wallet and checks whether the visitor approved your site on an earlier visit; an approved site reconnects without a click.
- Approval. Your connect button calls
connect(), and the wallet opens its approval window with your site's host and the account that will answer. - Tool discovery. The SDK reads your tool definitions from your MCP server (Model Context Protocol, the open standard that exposes a site's tools to a model).
- Model call. The SDK sends the conversation to the wallet, and the wallet's background calls the provider with the visitor's credential and streams the answer back.
- Tool loop. When the model asks for a tool, the SDK calls your MCP server from the page and sends the result back, for up to 6 steps by default.
- Final answer. The model answers in plain text and the module renders it.
The wallet exposes four methods to a site: status, connect, disconnect and chat. A site has no method to read the visitor's credentials, the list of accounts in the wallet, the other approved sites or another site's conversations. The wallet keeps the accounts in a vault encrypted on the visitor's computer and asks the visitor before each new site uses them. The visitor's provider receives the conversation because the answer runs on that account, and your MCP server receives the arguments of each tool call.
Any account in the wallet answers any of the supported protocols. A Claude plan answers a request your code wrote for the OpenAI SDK, because the wallet translates one chat format to each provider's API. The model in each answer is the one the visitor picked for your site, and the answer reports its name. The visitor's choice of model is the trade that comes with a $0 inference line. The master guide on AI chat on the visitor's own AI account covers the model of bring your own AI from the visitor's side.
A site that already calls a model through an AI SDK keeps its code. AiConnect.fetch and sdkOptions pass the request of the OpenAI SDK, the Anthropic SDK, Google Gen AI, the Vercel AI SDK or LangChain to the wallet and return the answer in the format that SDK expects. The API key field takes the placeholder aiwallet, which the wallet ignores.
Install paths side by side, from a script tag to Shopify
AI Connect ships as four npm packages under the @tensorpass scope, published on 16 November 2026, plus a WordPress plugin and a Shopify app. Every path renders the same interface modules: a side panel, a popup, an inline chat, a full page AI mode and a search bar that answers. Each module streams the answer, shows each tool call while it runs and names the account and model that answer in its header.
| Install path | What you add | Requirements | Status in November 2026 |
|---|---|---|---|
| Script tag | aiconnect-elements from jsDelivr | Any HTML page | On npm since 16 November 2026 |
| Web Components | <aiconnect-chat> and <aiconnect-search> | No build step | On npm since 16 November 2026 |
| React | @tensorpass/aiconnect-react | React 19 or later | On npm since 16 November 2026 |
| Next.js | Client provider in the root layout | App Router, React 19 | Quickstart in the docs |
| Vue and Svelte | Core SDK and your own components | A bundler | Quickstarts in the docs |
| WordPress plugin | Block, shortcode and posts as an MCP server | WordPress 6.5, PHP 8.1 | Zip built from the repository; not in the plugin directory yet |
| Shopify app | Theme app extension and catalogue MCP server | Shopify theme editor | Not on the Shopify App Store yet |
Add AI chatbot to website pages with one script tag
The Web Components path needs no framework and no build step, which suits static sites, server rendered templates and WordPress pages. One script and one element add a chat popup to 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>The full script weighs about 650 KB, or 185 KB with gzip. A page with a tight script budget loads the loader first, a file of under 10 KB that draws the chat button and fetches the full script when the visitor points at the button or presses it. Web Components are custom HTML elements the browser renders natively, so the chat works inside any template that accepts HTML.
React and Next.js
The React path installs two packages and wraps your app in one provider:
npm install @tensorpass/aiconnect @tensorpass/aiconnect-reactYou create one AiConnect client, pass it to AiConnectProvider and render a module such as AiChatPopup with your system prompt and your MCP address. For an interface of your own, useAiChat holds the conversation and runs the tool loop, and you render the turns.
On Next.js, the provider goes in a client component inside the root layout, built with a lazy useState initializer so each page load creates one client. The server cannot see the visitor's wallet, so the provider renders a checking state during the server render and switches to the browser's state after hydration. The chat panel loads with next/dynamic and ssr: false on first open, which keeps the MCP client out of the first page load. The existing app/api/chat/route.ts that held your key goes away, because no key exists. The Next.js quickstart walks through the files one by one.
On 16 November 2026 we ran that path end to end: a fresh Next.js 16 app installed AI Connect from npm and passed 12 of 12 visitor checks against the live sign ins, including OpenRouter's real key exchange.
Vue, Svelte and plain JavaScript
A Vue or Svelte site uses the core package, AiConnect and runConversation, and builds its connect button and chat in its own components. The same core works in a page built with plain JavaScript and a bundler. The docs carry one quickstart for each of the three.
WordPress and Shopify
The WordPress plugin adds the chat as a block and a shortcode and serves the site's published posts and pages as an MCP server, so the visitor's model searches the site before it answers. It needs WordPress 6.5 or later with PHP 8.1. The plugin is not in the WordPress plugin directory yet; a script in the repository builds its zip. The WordPress quickstart covers the settings, including the field for your site key.
On Shopify, AI Connect comes as an app with a theme app extension. The merchant switches on the chat in the theme editor, and the app serves the store's catalogue as an MCP server on the store's own domain. The app is not on the Shopify App Store yet. A hosted widget installs on Shopify by pasting code in theme.liquid before the closing body tag; the AI Connect app replaces that paste with a theme editor switch.
Let a coding agent do the install
A coding agent such as Claude Code, Cursor, Codex or Gemini CLI installs AI Connect from five Agent Skills, packaged instructions an agent loads when a task matches them. The skills are free and live in the public repository:
- aiconnect-integrate. Adds AI Connect to a React, Next.js or JavaScript site, from the provider and the site key to the chat.
- aiconnect-mcp-tools. Turns a site's server, API or OpenAPI file into MCP tools a model uses well, and checks them with a script.
- aiconnect-rag-chatbot. Builds a chatbot that answers from the site's own pages: a search index, the MCP server and the chat.
- aiconnect-hardening. Guards a chat against prompt injection and leaks, and pen tests it in English, French and Hebrew.
- aiconnect-auth. Hardens the site's login before its MCP server serves signed in or staff tools.
One command installs them in any agent that reads skills:
npx skills add tensorpass/aiconnectIn Claude Code, the repository doubles as a plugin marketplace. /plugin marketplace add tensorpass/aiconnect then /plugin install aiconnect@tensorpass installs the five skills with two MCP servers: the AI Connect docs at https://tensorpass.app/mcp and the TensorPass account server at https://plan.tensorpass.app/mcp. The account server creates your site key, the public identifier that names your site on the TensorPass sign in page. You then ask the agent to add an AI chat to your site, and it follows the integrate skill.
What your site still hosts: its MCP server
Your site keeps every cost outside the model's tokens. With AI Connect the inference line drops to $0, and four lines stay on your bill: the pages and their hosting, the MCP server, the search index of your content and the bandwidth of the chat script. No route brings the total cost of a chat to $0.
The MCP server is where your data lives. A catalogue search, a booking lookup or a docs search runs on your server, and the visitor's model reads only the results. McpToolSource, the MCP client in the core package, connects over Streamable HTTP on first use, reads the tool list once and returns each result as text. The MCP specification of 18 June 2025 defines Streamable HTTP as a single endpoint that accepts POST and GET, and it requires servers to validate the Origin header on every incoming connection to prevent DNS rebinding.
Your MCP server answers anyone who calls it, with or without your page. That fact sets four rules for the tools you expose:
- Bound every input. Each argument carries a maximum length and a type in the schema.
- Take no address from the model. A tool that fetches a URL the model chose becomes a proxy for an attacker.
- Build results from public fields by name. A result copies the title, price and URL fields one by one instead of returning the whole database row.
- Rate limit each visitor address. Our docs server takes 60 requests a minute from each address, bodies up to 16 KB, and keeps each result under 20,000 bytes.
The free aiconnect-rag-chatbot skill builds a keyword index of your pages and serves it as two tools. A RAG chatbot on AI Connect therefore leaves your site with the cost of the index and the search, and the visitor's account pays for the 3,865 input tokens of each retrieval answer.
Visitors without AI Wallet
A visitor with no extension still gets a chat. In a browser without AI Wallet, on a computer or a phone, the connect window and the modules keep the install step and add two sign ins under it: OpenRouter and the TensorPass plan.
OpenRouter is offered on every site with no setting. The visitor signs in on openrouter.ai, and the sign in uses PKCE with the S256 method; OpenRouter refuses to exchange the code without the verifier only your page holds. The visitor's requests are billed to their own OpenRouter credits, so you pay for none of their inference.
The TensorPass plan is a monthly AI subscription for visitors with no AI account, offered when your client passes its site key. It costs US$5 a month (Light), US$20 a month (Pro) or US$50 a month (Max), and the visitor pays it. You create the key with one command:
npx @tensorpass/aiconnect site-key shop.exampleThe key is public. It works on https:// with your domain and on http://localhost for development, with no proof of the domain. A web account works differently from the wallet: its credential, an OpenRouter key or a TensorPass token of 15 minutes with its refresh token, sits in your site's localStorage for its origin, where your page scripts can read it. A TensorPass token answers chats only, and only from your site's origin. The web accounts page covers the return page and the popup flow.
Plan accounts such as ChatGPT, Claude, Gemini and Grok stay in the extension. On 15 November 2026 each of them refused a web page at its sign in or its chat, so a visitor who wants their ChatGPT plan to answer needs AI Wallet. In November 2026, AI Wallet runs in desktop Chrome, Edge, Brave and Opera from the Chrome Web Store, and in desktop Firefox from Firefox Add-ons, where it has been public since 18 November 2026. A Safari version is planned. AI Wallet and the connect window are available in English, French, Hebrew, Arabic and simplified Chinese, right to left in Hebrew and Arabic.
Guards against prompt injection and where they run
Prompt injection is the attack where text in a question or in retrieved content changes what the model does. The OWASP GenAI Security Project ranks it first in its 2025 list of risks for applications built on large language models, and states that "it is unclear if there are fool-proof methods of prevention for prompt injection". A chat open to anonymous visitors faces both forms: direct injection in the visitor's question and indirect injection planted in your pages, your catalogue or a tool result.
The modules and useAiChat run five layers of guards with no setup:
| Layer | Where it runs | What it checks |
|---|---|---|
| Salted envelopes | The visitor's page | A random salt of 12 hex characters per conversation wraps your instructions and every tool result, so planted text reaches the model as data |
| Question guard | The page, before a question leaves | Questions over 2,000 characters, long base64 blobs and 18 injection patterns in English, French and Hebrew |
| Answer guard | The page, at each streamed piece | Envelope tags, the salt, any image, links outside allowed hosts, unknown email addresses and your deny list |
| Drawing | The module | Draws no image and only the links the answer guard allows |
| Server policy | Your MCP server | checkToolResult against a policy only the server imports, plus rate and size limits |
On 12 November 2026 we pen tested the chat of the tensorpass.app home page against the live site. It passed 108 of 108 checks of its guards and its docs MCP server, and 35 of 35 conversations run through claude-haiku-5-5 with attacks in English, French and Hebrew. Of the 25 direct attacks, 19 were in English, 3 in French and 3 in Hebrew. The test is internal and no third party audited it. One attack, a request for a JSON answer with an extra debug field, went through before a rule added on 12 November closed it.
The result has limits. The 35 of 35 holds for one model, and the hardening skill tells a site to run the model mode again with the model its visitors use most. The answer guard reads the answer in the browser after the model wrote it, so pieces streamed before a pattern was complete showed on screen until the safe answer replaced them. The guards reduce the risk and leave part of it in place. Content that must stay private stays on the server, out of the instructions and the tool results. The method, each layer and the attack categories are in our write up attacking our own AI chat, and the guards reference lists every check.
Three worked scenarios at 50,000 monthly visitors
The persona of this guide runs a content or e-commerce site with 50,000 monthly visitors. The scenarios below assume that 4% of visitors open the chat and ask 3 questions each, which gives 6,000 answers a month. The share is an assumption for the arithmetic; your analytics set the real one. Prices are the list prices of November 2026.
A content site on its own key, plain chat on gpt-5-mini. Each answer carries 1,748 input and 60 output tokens. 6,000 answers × $0.000557 = $3.34 a month. The bill stays small while the model and the prompt stay small. A switch to Claude Sonnet 5.5 for better answers moves it to 6,000 × $0.004096 = $24.58 a month, and every new visitor adds to it.
An e-commerce catalogue on its own key, RAG on Claude Sonnet 5.5. Each answer carries 3,865 input and 426 output tokens. 6,000 answers × $0.01199 = $71.94 a month. An iterative retrieval pipeline on the same model costs 6,000 × $0.037698 = $226.19 a month. A traffic spike to 150,000 visitors at the same chat rate triples both lines.
A hosted widget. On Chatbase's Basic plan at $150 a month, 6,000 answers need 2,000 credits above the included 4,000, or two $40 add-ons, which puts the month at $230 if each answer uses one message credit. On Intercom's Fin AI Agent, if half of the 6,000 answers end as resolved outcomes, 3,000 outcomes at $0.99 cost $2,970 a month.
The same site on AI Connect. The inference line is $0 for all three scenarios, at 6,000 answers or 60,000. The site pays for its hosting and its MCP server, and the RAG scenario adds the index. A visitor on a plan uses the room the plan leaves; a visitor on an API key pays the list prices above on their own account.
When a hosted widget fits better
A hosted widget fits a support desk that hands conversations to human agents. Intercom's Fin AI Agent transfers to agents in the same inbox, and Elfsight's Contact a human card appears when the visitor asks for a person or the bot cannot answer. The AI Connect packages of November 2026 carry no ticketing system and no live operator console. A team whose chat exists to close tickets with staff in the loop gets that workflow out of the box from a support suite.
Three other cases favour a widget or your own key. A site that needs every visitor to get an answer, with no install step and no sign in, pays per answer to remove that step; AI Connect serves visitors with AI Wallet, an OpenRouter account or a TensorPass plan. A site that must fix one model for compliance or brand reasons needs its own key, because the visitor picks the model on AI Connect. A no-code site builder that blocks custom code below a paid tier (Wix needs a Premium plan and Squarespace a Business plan to run custom code) narrows every route, ours included.
The choice depends on who the chat serves. A chat that answers questions about your content, your catalogue or your docs fits the visitor's own AI, because its answers come from your MCP tools and its tokens from the visitor's plan.
FAQ: adding AI chat to a website
How do you add AI chatbot to website pages without an API key?
Install AI Connect with one script tag or the React package, and point the module at your MCP server. The visitor's AI Wallet or web account answers each question on their own plan, credits or key, so no provider key sits on your server. A fresh Next.js 16 app did this from npm on 16 November 2026 and passed 12 of 12 visitor checks against the live sign ins, including OpenRouter's key exchange.
How much does one AI chat answer cost a website on its own key?
A chat answer of 1,748 input and 60 output tokens costs $0.000557 on gpt-5-mini at the list prices of 12 November 2026. The same answer costs $0.0002048 on Claude Haiku 5.5 and $0.008192 on Claude Opus 5.5, a factor of 40. A RAG answer of 3,865 input and 426 output tokens costs $0.01199 on Claude Sonnet 5.5. With AI Connect the site's inference cost is $0.
Can I embed ChatGPT in my website?
The ChatGPT plan stays in AI Wallet, because on 15 November 2026 ChatGPT, Claude, Gemini and Grok each refused a web page at their sign in or chat. A visitor with AI Wallet connects their ChatGPT plan once, and your AI Connect chat then answers on it. A visitor without the wallet signs in with OpenRouter or the TensorPass plan at US$5, US$20 or US$50 a month.
Does AI Connect stop prompt injection?
The guards reduce the risk, and no known method removes prompt injection fully in 2025 security guidance. AI Connect runs salted envelopes, a question guard with 18 patterns in three languages, an answer guard and a server policy. Our internal pen test of 12 November 2026 passed 108 of 108 checks and 35 of 35 model attacks on one model, claude-haiku-5-5.
Which browsers run AI Wallet?
In November 2026, AI Wallet runs in desktop Chrome, Edge, Brave and Opera from the Chrome Web Store, and in desktop Firefox from Firefox Add-ons, where it has been public since 18 November 2026. A Safari version is planned. A visitor in Safari or on a phone, or anyone without the wallet, signs in with OpenRouter or the TensorPass plan inside the connect window. The connect window works in English, French, Hebrew, Arabic and simplified Chinese.
What does my site still pay for with AI Connect?
Your site pays for its pages and hosting, its MCP server and the search index of its content. The SDK, the WordPress plugin, the Shopify app, the Agent Skills, the MCP servers, AI Wallet and the site key are free. The MCP server answers anyone, so it needs bounded inputs and a rate limit; our docs server takes 60 requests a minute per address.
How TensorPass helps you ship the chat
We build the tools that put an AI chat, a search that answers or an AI mode on your site with the visitor's own AI paying for each answer. The developer page holds the install commands, the quickstarts and the site key.
AI Connect SDK and integrations. The SDK, the WordPress plugin, the Shopify app, the Agent Skills, the MCP servers, AI Wallet and the site key are free. The SDK is under Apache 2.0 and public on GitHub since 12 November 2026, with npm provenance signed by the GitHub build.
The TensorPass plan for visitors with no AI account. It costs US$5 a month (Light), US$20 a month (Pro) or US$50 a month (Max), paid by the visitor. A site earns 5% of each TensorPass plan payment made from its AI window, for 12 months, with a 60-day hold, paid in USDC once US$50 is available.
Done-for-you service. We make a site AI native in under 24 hours, and the service is priced on quote. The general contact is [email protected], and vulnerability reports go to [email protected].
Your next step to add AI chatbot to website traffic this week
Start with the route that matches your chat's job. A content or catalogue chat runs on the visitor's own AI: install the script tag or the React package, create a site key, and expose one search tool from your MCP server with bounded inputs and a rate limit. A support desk with human handoff runs on a support suite. A site that must fix the model runs on its own key, priced from $0.557 per 1,000 answers on gpt-5-mini. Run the hardening skill's pen test before launch, with the model your visitors use most. Then add AI chatbot to website templates one page at a time, and measure answers per visitor before you widen it.
Also worth reading:
- AI chat on the visitor's own AI account
- What each AI chatbot pricing model costs a site
- AI chatbot security for a public website
- The cost of one AI answer on a website's own API key
- Attacking our own AI chat: the pen test of the tensorpass.app home page
Sources:
- The cost of one AI answer on a website's own API key: TensorPass, 18 November 2026
- AI Connect SDK repository and README: TensorPass on GitHub, November 2026
- Changelog of the AI Connect packages: TensorPass, 20 November 2026
- Next.js quickstart: TensorPass, November 2026
- TensorPass, install check of a fresh Next.js 16 app against the live sign ins, 16 November 2026
- Attacking our own AI chat: the pen test of the tensorpass.app home page: TensorPass, 19 November 2026
- GPT-5 mini model page: OpenAI, read 20 November 2026
- API pricing: OpenAI, read 20 November 2026
- How to add an AI chatbot to your website: Elfsight, November 2026
- How to Add an AI Chatbot to a Website: Botpress, 25 June 2025
- Pricing: Intercom, read 20 November 2026
- Pricing: Chatbase, read 20 November 2026
- LLM01:2025 Prompt Injection: OWASP GenAI Security Project, 2025
- OAuth PKCE: OpenRouter, read 20 November 2026
- Transports, Model Context Protocol specification: Model Context Protocol, 18 June 2025
Questions
- How do you add AI chatbot to website pages without an API key?
- Install AI Connect with one script tag or the React package, and point the module at your MCP server. The visitor's AI Wallet or web account answers each question on their own plan, credits or key, so no provider key sits on your server. A fresh Next.js 16 app did this from npm on 16 November 2026 and passed 12 of 12 visitor checks against the live sign ins, including OpenRouter's key exchange.
- How much does one AI chat answer cost a website on its own key?
- A chat answer of 1,748 input and 60 output tokens costs $0.000557 on gpt-5-mini at the list prices of 12 November 2026. The same answer costs $0.0002048 on Claude Haiku 5.5 and $0.008192 on Claude Opus 5.5, a factor of 40. A RAG answer of 3,865 input and 426 output tokens costs $0.01199 on Claude Sonnet 5.5. With AI Connect the site's inference cost is $0.
- Can I embed ChatGPT in my website?
- The ChatGPT plan stays in AI Wallet, because on 15 November 2026 ChatGPT, Claude, Gemini and Grok each refused a web page at their sign in or chat. A visitor with AI Wallet connects their ChatGPT plan once, and your AI Connect chat then answers on it. A visitor without the wallet signs in with OpenRouter or the TensorPass plan at US$5, US$20 or US$50 a month.
- Does AI Connect stop prompt injection?
- The guards reduce the risk, and no known method removes prompt injection fully in 2025 security guidance. AI Connect runs salted envelopes, a question guard with 18 patterns in three languages, an answer guard and a server policy. Our internal pen test of 12 November 2026 passed 108 of 108 checks and 35 of 35 model attacks on one model, claude-haiku-5-5.
- Which browsers run AI Wallet?
- In November 2026, AI Wallet runs in desktop Chrome, Edge, Brave and Opera from the Chrome Web Store, and in desktop Firefox from Firefox Add-ons, where it has been public since 18 November 2026. A Safari version is planned. A visitor in Safari or on a phone, or anyone without the wallet, signs in with OpenRouter or the TensorPass plan inside the connect window. The connect window works in English, French, Hebrew, Arabic and simplified Chinese.
- What does my site still pay for with AI Connect?
- Your site pays for its pages and hosting, its MCP server and the search index of its content. The SDK, the WordPress plugin, the Shopify app, the Agent Skills, the MCP servers, AI Wallet and the site key are free. The MCP server answers anyone, so it needs bounded inputs and a rate limit; our docs server takes 60 requests a minute per address.
Posts
Agent Skills: let Claude Code, Cursor or Codex add the AI chat for you
With Agent Skills, Claude Code, Cursor or Codex can add an AI chat to your site in one session: five TensorPass skills, two MCP servers and one prompt install the chat, connect your tools and harden it.
Next.js AI chatbot tutorial with no key on your server
This Next.js AI chatbot tutorial removes app/api/chat/route.ts and the provider key it holds. Each answer counts against the visitor's own AI account, and your server keeps only the MCP tools it hosts.
Choosing a React AI chat component for a site with real traffic
Choosing a React AI chat component for a site with 200,000 monthly visits comes down to two numbers: what each answer costs you and where the checks against prompt injection run.
Give Your Site's AI Chat Real Tools: An MCP Server for Websites
An MCP server for websites lets your public AI chat answer from your live catalogue: four tools, JSON Schemas the model reads, Streamable HTTP and CORS, auth for anonymous visitors and the monthly hosting bill.
Build a RAG chatbot for website content you host, served as an MCP tool
A RAG chatbot for website content costs about $0.05 to embed 3,000 pages once at November 2026 list prices. Keep the index on your server, serve retrieval as an MCP tool, and let the visitor's own AI write and cite the answer.