Privacy Policy
1. Local-First Architecture & What Data Stays on Your Device
Dou is designed so your personal context never lives in a cloud database operated by us:
- Workspace notes and files: Read and edited directly inside the local folder you configure on your primary Mac.
- Conversation history and routines: Stored locally in your user state directory (
~/.local/state/dou/) with owner-only permissions. - Plugin credentials and tokens: OAuth tokens and IMAP/SMTP credentials are stored locally in
~/.config/dou/plugins/(POSIX mode600) and are never uploaded to our servers.
2. Google Account & Gmail API Data (Dou Mail)
If you choose to connect a Gmail account to Dou’s optional Mail plugin, Dou requests only the minimum OAuth 2.0 scopes needed for email assistance:
https://www.googleapis.com/auth/gmail.readonly— to list, search, and read email messages you ask Dou to inspect.https://www.googleapis.com/auth/gmail.compose— to create or update reply drafts and send a draft only after your explicit confirmation in a subsequent turn.
How Google user data is used and stored:
- All Gmail API calls are made directly from your primary Mac to Google’s servers using OAuth tokens stored locally on your machine.
- Email content retrieved during a request is processed solely to answer your prompt or prepare the draft you requested. It may be sent to the AI model provider you explicitly configured in your local Dou settings to generate your requested summary or draft.
- Dou enforces a structural guard that blocks sending any email draft in the same task that read incoming mail or created the draft, requiring your explicit confirmation first.
- We do not collect, store, sell, rent, or transfer your Google user data on our servers.
- We do not use Google user data for advertising, marketing, or profiling.
- We do not use Google user data to develop, improve, or train generalized AI or machine learning models.
Dou’s use and transfer of information received from Google APIs to any other app will adhere to the Google API Services User Data Policy, including the Limited Use requirements.
3. End-to-End Encrypted Relay (relay.yourdou.com)
When you pair a secondary Mac or mobile device to your primary Mac, Dou connects directly over your local network whenever possible. Away from home, devices connect through wss://relay.yourdou.com (hosted in Singapore).
- All payloads are end-to-end encrypted between your devices using X25519 key agreement and ChaCha20-Poly1305 authenticated encryption.
- The relay server has no decryption keys, inspects no message contents, and persists no user messages, notes, or email data.
- Minimal operational connection logs (such as connection timestamps and anonymous relay IDs) are kept transiently in memory/container logs for service stability and abuse prevention.
4. Third-Party Model Providers & Optional Channels
Dou sends your prompts—and only the context needed to answer them—to the AI model API provider you configure locally (using your own API key). If you enable an optional messaging channel plugin (such as Feishu/Lark), Dou connects directly from your primary Mac to that platform using your own credentials. Those providers process data under their own privacy policies.
5. Data Retention, Deletion & Revoking Access
Because your data is stored locally on your Mac, you control retention and deletion directly at any time:
- Revoke Gmail access: Remove the account via
dou-plugin mail remove --alias <alias>, delete the local token file in~/.config/dou/plugins/data/mail/tokens/, and revoke Dou Mail at Google Account Permissions. - Delete all local Dou data: Delete
~/.config/dou/and~/.local/state/dou/on your Mac.
6. Contact
If you have questions about this Privacy Policy or Dou’s handling of data, contact Max Lin at [email protected] or open an issue at github.com/max1874/dou-agent.