# AI on your own key

Needs the Mailset CLI, signed in: step 1 of `mailset guide onboarding`.

Mailset's AI sorts new mail into tabs, checks it for phishing, and on request writes summaries, smart replies, drafts and follow-up checks. By default it runs on Mailset's own key. Every plan includes $5 of AI credit a month, with no rollover; past it, each action has a fixed price:

- Sorting and the phishing check: $0.50 per 1,000 emails each.
- Smart replies, follow-up checks and Ask: $1.00 per 1,000.
- A summary: $0.03. A draft: $0.05.

Owners and admins can move the org's AI to its own Anthropic key, or turn it off.

## Steps

1. See where your org's AI runs now: `mailset ai status`. It names each of your orgs, what runs its AI, and this month's AI credit.
2. To use your own key, make an API key at console.anthropic.com (Settings, then API keys). Not an Admin API key: it can't call a model.
3. Run `mailset ai key set anthropic` with your passkey. It never takes the key as an argument, so it stays out of your shell history: at a terminal it asks, and shows nothing as you paste. In a script or an agent's shell, pipe it in: `pbpaste | mailset ai key set anthropic`. Mailset checks the key, stores it safely, shows only its last four characters, and runs the org's AI on it.
4. Pick a model per feature, if you like. `mailset ai models` lists each feature (Sorting, Phishing check, Summaries, Smart replies, Drafts, Follow-ups, Ask, and Chat, not out yet), its model and a month's cost at your volume. Change one with `mailset ai models set summaries --model claude-opus-5-5`; `--model default` goes back. Picks apply only on your own key; on Mailset's, Mailset picks each model.
5. To go back to Mailset's key, run `mailset ai source mailset`. To stop all AI for the org, run `mailset ai source off`.

The web app has the same in Settings, on your org's side, under AI.

## Check

`mailset ai status` names your own key as what runs the org's AI, with its last four characters and the word works. New mail lands in its tabs within a minute or so, and `mailset ai models` shows this month's calls on your key.

## Watch out

- If Anthropic refuses the key (revoked, deleted) or its account can't pay, the org's AI pauses, and owners and admins get a notice in their mailbox and a banner in the web app. Mail keeps arriving; Sorting falls back to headers and your own rules. Mailset never moves you to its own key by itself. Set a new key (`mailset ai key set anthropic`), or add credit at Anthropic and run `mailset ai key check anthropic`.
- If Anthropic asks Mailset to slow down, calls wait and try again later. Nothing pauses.
- Sorting reads every new arrival, so a bigger model there costs the most. `mailset ai models` warns when you pick one.
- Anthropic bills calls on your own key, at its prices. Mailset shows them for you to follow, but never bills them or counts them against your credit.
- Removing the key (`mailset ai key remove anthropic`, passkey) leaves the org with no AI until you add another or pick Mailset's.

---

© 2026 Intenseloop, Inc. Mailset’s site, docs and guides are copyrighted. You may read them and use their code to build with Mailset. Don’t republish them or use them to build a copy of Mailset. Terms: https://mailset.app/terms#content