# The Vault and accounts

> Where logins, cards and API keys for your agents are kept, how an agent uses one without seeing it, and what happens when an agent makes an account itself.

## What the Vault is

**Settings**, **Vault** holds what you keep for your agents: logins, payment cards, contact info and API keys. It is one encrypted file on your Mac, locked with a key from your Mac's Keychain. Nothing in it is sent to one-off.

Each item is for the agents you choose: every agent, every agent of one store, or agents by name.

## Adding things

- **New item** adds a login (website, user name, password, an optional two-step setup key, notes), a card, contact info, or an API key.
- **Import from CSV** adds the logins from a password manager's export, skipping ones already there.
- An agent can ask you for one with a card in its chat. **Open in Vault** opens the form with what the agent already knew, and saving it answers the card.

## How an agent uses a login or card

**Agents never see a password, a card number or a security code from the Vault.** An agent asks the app to type it, and the app types it into the page itself, in the store's own Chrome.

- A login is typed only into a page of its own website.
- A card is typed only into a site you have allowed for that card. The first time, a card in the agent's chat asks.
- While a tab is on a page the Vault typed into, the agent cannot take a screenshot of it, run a script on it or read its network log. Saved secrets are blanked from what it reads back.

## API keys

An API key is saved under the name of the variable a program reads it from, such as `STRIPE_API_KEY`. The agent's programs read it from a file; it is not written in the chat.

All your agents run as you on your Mac, so an agent could read a key file meant for another agent. Scope here keeps things tidy. It is not a wall between agents.

## Accounts an agent makes

When a store needs an account it does not have, an agent can sign up for it with the store's [email address](https://one-off.ai/docs/email.md). It makes a strong password and saves the login in the Vault for that store's agents, marked with the agent that added it. You can see, change or delete it there.

An agent stops and asks you when a sign-up wants a phone number, a card or a paid plan.

> To sign in to an account it made, an agent has to handle that password, so it has passed through your AI subscription's servers. The app blanks it from what the chat shows and saves. For accounts of your own, either sign in yourself in the store's browser or save the login in the Vault, where the app does the typing.

## What is not there

- Paying through a wallet service such as Apple Pay.
- Reading a two-step QR code from a picture. Paste the setup key instead.
- Using another password manager as the source, other than by CSV import.

## Erasing it

**Settings**, **Account**, **Erase this Mac's data** deletes the Vault along with every store and agent on this Mac. See [Your data](https://one-off.ai/docs/data.md).
