# AI

Summaries, drafts and sorting, and what runs them.

## mailset ai status

Show what runs AI in each of your orgs, anything that stopped it, and this month’s AI credit.

```bash
mailset ai status
```

With `--json` it prints what [the API returns](https://mailset.app/docs/api/ai#ai.status-returns).

Example:

```bash
mailset ai status
```

In the API: [POST /v1/ai.status](https://mailset.app/docs/api/ai#ai.status)

## mailset ai source

Run the org’s AI on Mailset’s key (mailset), its own key (own), or not at all (off).

```bash
mailset ai source <source> [--org <id>]
```

### Flags

- `<source>` (argument, required): `mailset`: Mailset’s key. `own`: the org’s own key. `off`: no AI.

An admin or owner of the org can run it.

With `--json` it prints the [AI settings object](https://mailset.app/docs/api/ai#ai-settings).

Example:

```bash
mailset ai source own
```

In the API: [POST /v1/ai.source](https://mailset.app/docs/api/ai#ai.source)

## mailset ai key set

Check and keep the org’s own AI key, and run its AI on it. The CLI reads the key from stdin or a hidden prompt.

```bash
mailset ai key set <provider> [--org <id>]
```

### Flags

- `<provider>` (argument, required): Whose key it is: `anthropic`.

An admin or owner of the org can run it.

It can ask for your passkey. It prints “This needs your passkey. Open <link>”, then waits until the link is approved or refused. Read its output as it comes: through head or tail, the link shows only after the wait.

With `--json` it prints the [AI settings object](https://mailset.app/docs/api/ai#ai-settings).

Example:

```bash
mailset ai key set anthropic
```

In the API: [POST /v1/ai.key.set](https://mailset.app/docs/api/ai#ai.key.set)

## mailset ai key remove

Remove the org’s own AI key.

```bash
mailset ai key remove [<provider>] [--org <id>]
```

### Flags

- `<provider>` (argument, optional): Whose key it is: `anthropic`. Default `anthropic`.

An admin or owner of the org can run it.

It can ask for your passkey. It prints “This needs your passkey. Open <link>”, then waits until the link is approved or refused. Read its output as it comes: through head or tail, the link shows only after the wait.

With `--json` it prints the [AI settings object](https://mailset.app/docs/api/ai#ai-settings).

Example:

```bash
mailset ai key remove anthropic
```

In the API: [POST /v1/ai.key.remove](https://mailset.app/docs/api/ai#ai.key.remove)

## mailset ai key check

Try the org’s own AI key again: one that works resumes its AI, one that doesn’t pauses it.

```bash
mailset ai key check [<provider>] [--org <id>]
```

### Flags

- `<provider>` (argument, optional): Whose key it is: `anthropic`. Default `anthropic`.

An admin or owner of the org can run it.

With `--json` it prints the [AI settings object](https://mailset.app/docs/api/ai#ai-settings).

Example:

```bash
mailset ai key check anthropic
```

In the API: [POST /v1/ai.key.check](https://mailset.app/docs/api/ai#ai.key.check)

## mailset ai models

Show the model each AI feature uses, a month of each at your volume, and this month’s credit.

```bash
mailset ai models [--org <id>]
```

An admin or owner of the org can run it.

With `--json` it prints the [AI settings object](https://mailset.app/docs/api/ai#ai-settings).

Example:

```bash
mailset ai models
```

In the API: [POST /v1/ai.models](https://mailset.app/docs/api/ai#ai.models)

## mailset ai models set

Pick the model one AI feature uses on the org’s own key (--model default goes back to Mailset’s pick).

```bash
mailset ai models set <feature> --model <model> [--org <id>]
```

### Flags

- `<feature>` (argument, required): The feature: `sorting`, `phishing`, `summaries`, `replies`, `drafts`, `followups`, `ask` or `chat`.
- `--model` (\<model\>, required): The model’s id, from `ai models`, or `default` for Mailset’s pick.

An admin or owner of the org can run it.

With `--json` it prints the [AI settings object](https://mailset.app/docs/api/ai#ai-settings).

Example:

```bash
mailset ai models set summaries --model claude-haiku-5-5
```

In the API: [POST /v1/ai.models.set](https://mailset.app/docs/api/ai#ai.models.set)

## mailset ai summarize

Summarize a conversation.

```bash
mailset ai summarize <id>
```

### Flags

- `<id>` (argument, required): The conversation’s id.

With `--json` it prints what [the API returns](https://mailset.app/docs/api/ai#ai.summarize-returns).

Example:

```bash
mailset ai summarize t_5d2c8a1f9e3b47c6a0d1e2f3
```

In the API: [POST /v1/ai.summarize](https://mailset.app/docs/api/ai#ai.summarize)

## mailset ai replies

Suggest short replies to a conversation. Nothing is sent.

```bash
mailset ai replies <id>
```

### Flags

- `<id>` (argument, required): The conversation’s id.

With `--json` it prints what [the API returns](https://mailset.app/docs/api/ai#ai.replies-returns).

Example:

```bash
mailset ai replies t_5d2c8a1f9e3b47c6a0d1e2f3
```

In the API: [POST /v1/ai.replies](https://mailset.app/docs/api/ai#ai.replies)

## mailset ai draft

Write a draft reply to a conversation. Nothing is sent.

```bash
mailset ai draft <id> [--instructions <instructions>]
```

### Flags

- `<id>` (argument, required): The conversation’s id.
- `--instructions` (\<instructions\>, optional): What you want the reply to do, in your own words.

With `--json` it prints what [the API returns](https://mailset.app/docs/api/ai#ai.draft-returns).

Example:

```bash
mailset ai draft t_5d2c8a1f9e3b47c6a0d1e2f3 --instructions "Say yes, and ask to move it to Thursday"
```

In the API: [POST /v1/ai.draft](https://mailset.app/docs/api/ai#ai.draft)

## mailset ai triage

Sort a conversation and check it for phishing, now.

```bash
mailset ai triage <id>
```

### Flags

- `<id>` (argument, required): The conversation’s id.

With `--json` it prints what [the API returns](https://mailset.app/docs/api/ai#ai.triage-returns).

Example:

```bash
mailset ai triage t_5d2c8a1f9e3b47c6a0d1e2f3
```

In the API: [POST /v1/ai.triage](https://mailset.app/docs/api/ai#ai.triage)

## mailset ai safe

Take a phishing warning off a conversation.

```bash
mailset ai safe <id>
```

### Flags

- `<id>` (argument, required): The conversation’s id.

With `--json` it prints what [the API returns](https://mailset.app/docs/api/ai#ai.safe-returns).

Example:

```bash
mailset ai safe t_5d2c8a1f9e3b47c6a0d1e2f3
```

In the API: [POST /v1/ai.safe](https://mailset.app/docs/api/ai#ai.safe)

## mailset ai search

Turn a question into search operators.

```bash
mailset ai search <question>
```

### Flags

- `<question>` (argument, required): What you’re looking for, in your own words. Up to 500 characters.

With `--json` it prints what [the API returns](https://mailset.app/docs/api/ai#ai.search-returns).

Example:

```bash
mailset ai search "invoices from Stripe since March"
```

In the API: [POST /v1/ai.search](https://mailset.app/docs/api/ai#ai.search)

## mailset ai explain

Say why a conversation is in its tab.

```bash
mailset ai explain <id>
```

### Flags

- `<id>` (argument, required): The conversation’s id.

With `--json` it prints what [the API returns](https://mailset.app/docs/api/ai#ai.explain-returns).

Example:

```bash
mailset ai explain t_5d2c8a1f9e3b47c6a0d1e2f3
```

In the API: [POST /v1/ai.explain](https://mailset.app/docs/api/ai#ai.explain)

## mailset ai report

Show what sorted your mail and how much reached a model.

```bash
mailset ai report
```

With `--json` it prints what [the API returns](https://mailset.app/docs/api/ai#ai.report-returns).

Example:

```bash
mailset ai report
```

In the API: [POST /v1/ai.report](https://mailset.app/docs/api/ai#ai.report)

---

© 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