# epistole

epistole is a Claude Code plugin that gives Claude access to your Gmail accounts. It can search and read mail, and create or update drafts. Its `send_draft` tool sends a draft only after you approve it. It runs as a local server on your own computer, using a Google OAuth client that you create, so it works with several accounts at once, whichever Claude account is signed in.

This page describes the Google OAuth app epistole signs in with and is its privacy policy. Install, setup, tools and commands are on the [epistole plugin page](<https://ajbarea.github.io/techne/plugins/epistole/index.md>).

## Privacy

- epistole runs entirely on your computer.
- It reads Gmail only when your Claude Code session calls one of its tools, or when you run `epistole-login` to sign in or check an account.
- Your tokens, the audit log and the time of your last catch-up sweep stay on your machine under `~/.config/epistole`. The audit log records the time, account, recipients, subject and attachment names of each draft, update and send, never message bodies. Attachments you download are saved in your download folder (by default `~/Downloads/epistole`), and mail Claude reads is also kept in Claude Code's own local session transcripts.
- Nothing is sent to the techne author or to any third party, other than Google's Gmail API and the AI model you are already running in Claude Code. Mail the tools return to Claude is processed by that model under your own agreement with its provider.
- Claude creates or updates a draft when it calls those tools in your session. Sending a draft with the `send_draft` tool always needs your approval at a Claude Code prompt, in every mode that can prompt. You can also require a prompt for drafts, with the `ask` rules in the [README](<https://github.com/ajbarea/techne/blob/main/plugins/epistole/README.md#safety>).
- The approval prompt gates the `send_draft` tool. The stored token can also send mail, so a script run outside the tool could send without a prompt. The controls for that are the `Read(~/.config/epistole/**)` deny rule in the README and Claude Code's [sandbox](<https://code.claude.com/docs/en/sandboxing>). Claude can put any text it has read into a draft body.
- Attachments are off until you list folders in `attach_dirs` in `~/.config/epistole/accounts.toml`. epistole attaches files only from those folders.
- It requests two scopes. `gmail.readonly` lets it search and read mail, and read your default send-as address and its signature, which it appends to new drafts. `gmail.compose` lets it create, update and send drafts. It does not request `gmail.modify` or full mailbox access. epistole has no tool that deletes mail or changes labels, and its scopes cannot delete received mail or change labels.
- To revoke access, open [myaccount.google.com/linkedapps](<https://myaccount.google.com/linkedapps>), choose Access to your Google Account, then epistole, See details, Remove access and Confirm. Then delete `~/.config/epistole` to remove the stored tokens.

The use and transfer of information received from Google APIs adheres to the [Google API Services User Data Policy](<https://developers.google.com/terms/api-services-user-data-policy>), including the Limited Use requirements, and to the [Google Workspace API User Data and Developer Policy](<https://developers.google.com/workspace/workspace-api-user-data-developer-policy>).

epistole does not use Gmail data to train AI or ML models. Whether your model provider may train on conversation content depends on your agreement and settings with that provider.

Questions go to [github.com/ajbarea/techne/issues](<https://github.com/ajbarea/techne/issues>).
