What is an AI wallet and how does it work?
An AI wallet is a browser extension that keeps your AI accounts encrypted on your computer and lends them to the sites you approve. Here is how it works.
Published on
An AI wallet is a browser extension that holds a person's AI accounts, their plan sign ins and their API keys, in an encrypted store on their own computer. Websites the person approves send their questions to the wallet, which answers them with those accounts while the credentials stay inside the extension.
How an AI wallet works
An AI wallet places an object in every page it serves. A site asks that object for access, and the person approves each site once in a window the extension controls. From then on the site sends a conversation, the extension calls the provider with the stored credential, and the answer streams back to the page.
window.ai worked this way: the user set up models from OpenAI, OpenRouter or a local server in the extension, and sites called the window.ai object it injected. Its Chrome Web Store item was last updated on 17 July 2023, and its repository's last commit dates from 6 August 2024.
Inside AI Wallet
AI Wallet is the AI wallet TensorPass makes for Chrome. It opens in the browser's side panel and places window.aiwallet in each page before the page's scripts run. A site talks to it through four methods: status, connect, disconnect and chat. The site receives the streamed answer, its tool calls, the model's name and the token counts. No method returns a credential, the list of accounts or another site's conversations.
| Layer | How AI Wallet builds it |
|---|---|
| Recovery phrase | 12 BIP39 words from 128 bits of randomness |
| Vault key | HKDF over SHA-256 from the phrase's seed |
| Vault | AES-GCM with a new 12 byte nonce on every write |
| Password seal | PBKDF2, SHA-256, 600,000 iterations, a password of 8 characters or more |
| Automatic lock | After 30 minutes without use by default, from 5 minutes to 4 hours |
| Site approval | A window that takes no input during its first second on screen |
The wallet holds 13 kinds of plan sign in and 7 kinds of API key, listed on the providers page. Each approved site gets its own account and model, or Auto, which moves to the next account when a plan runs out of room.
On 12 November 2026, AI Wallet loads unpacked and its Chrome Web Store item is a draft not yet submitted. The wallet page follows its release, and the security model describes every check.
Related terms
- Bring your own AI: the model the wallet serves.
- Inference cost: what the visitor's account pays per answer.
- Prompt injection: the attack the SDK's guards stop before an answer reaches the page.
Sources
Questions
- Where does an AI wallet keep my API keys and sign ins?
- AI Wallet keeps them in a vault in Chrome's extension storage on your computer, encrypted with AES-GCM under a key derived from 12 recovery words. Its background service worker sends each credential only to the provider it belongs to.
- What happens when I approve a site in AI Wallet?
- The wallet saves the site's origin and answers its chats with the account you picked for it. You switch the site off from the side panel, which removes it from the vault and stops any answer in progress.
- How much of my plan does one site use?
- AI Wallet caps each site at 2,000,000 tokens a day by default, with 500,000, 10,000,000 and 50,000,000 as the other settings. A site starts at most 60 chats a minute and runs at most 4 at the same moment by default.
- Is AI Wallet on the Chrome Web Store?
- Not on 12 November 2026. AI Wallet loads unpacked, and its Chrome Web Store item exists as a draft under the publisher TensorPass that has not been submitted.