Email Agent
  • Sign in

Privacy policy

Effective 2026-11-22

1. Scope

This policy covers email-agent, both the program you run on your own computer and this website at email-agent.berdyh.com. It does not cover other sites. The policy at berdyh.com/privacy covers the main berdyh.com site and is separate.

2. Who is responsible

Shokhrukh Berdikobilov, Uzbekistan. Contact: email-agent@berdyh.com.

3. What this website stores

This website has public pages (the home page, this policy and the terms) and, if you choose to make one, an email-agent account with a dashboard. Browsing the public pages needs no account. The website does not read your mailbox and collects no Gmail data, with these exceptions that you trigger: the optional hosted embedding service (section 5, b2), which passes message text through our server in transit only; the Gmail connection slot claim (section 5, e), which sends your Gmail address; and the hosted relay between your browser and the Bridge program on your own computer (section 5, f), which is transport only and stores no mail.

Account. Sign-in is handled by Clerk. For the dashboard the website uses three things about you: your Clerk user id, your primary email address and your display name (your full name, otherwise your username). To get them, our server fetches your full Clerk user record from Clerk (currentUser()), so it can see whatever Clerk holds in that record; it uses only those three and does not copy the name into our database. Clerk itself holds the account record, your sign-in method and your sessions, under Clerk's own policy.

Database. We keep a small Postgres database on Neon (region Frankfurt, AWS eu-central-1). It stores exactly the columns listed here and nothing else. It never holds message text, Gmail tokens or anything about the content of your mail.

Table embed_consent (one row per user and consent version; accepting the same version again keeps the first acceptance): clerk_user_id (your Clerk user id), version (which version of the consent text you accepted) and accepted_at (when you first accepted that version).

Table embed_quota (one row per user per month): clerk_user_id, period_start (the first day of the UTC month) and used (how many input characters of hosted embedding were counted that month).

Table gmail_slots (one row per Clerk user and normalised Gmail address, created when the program asks to connect that address, which is before Google's consent screen, so an attempted connection that you abandon also leaves a row): id (a row number), clerk_user_id, address_hmac and claimed_at (when). address_hmac is a keyed one-way hash (HMAC-SHA256) of the normalised address (lower case; for gmail.com and googlemail.com dots and +tags are dropped). Your address is sent to our server in order to compute it and is not stored or logged; the hash cannot be turned back into the address without our secret key.

Table waitlist (one row per account that joins the waitlist for a Gmail connection slot): seq (an ordering id; your queue position is computed from it, not stored), clerk_user_id, email (your account email), joined_at (when) and confirmation_sent_at (when the confirmation email was accepted by our mail provider; empty until then).

Google sign-in and Gmail access are two different things. If you sign in to your email-agent account with Google, Clerk receives the identity details Google shares for sign-in (typically your name, email address and profile picture) under Clerk's policy. That hosted identity is not Gmail access: it grants no permission to read or change your mail. Gmail access exists only through the separate gmail.modify consent in section 5, which the program on your own computer requests, and the resulting Gmail tokens stay on your machine (section 4).

Bridge devices. If you pair a computer with your account, the database also holds two tables. Table bridge_devices (one row per user and device): user_id (your Clerk user id), device_id, hostname (the computer's name, as the runner reported it), os, runner_version, created_at, last_seen (when the device last connected) and revoked (0 or 1). Table bridge_device_credentials (one row per credential bound to a device): user_id, device_id, credential_id and fingerprint. The fingerprint was added by migration 0002 (0002_credential_fingerprint): it is the lowercase hex SHA-256 of the runner token that last authenticated that credential, never the token itself, and lets the relay tell a runner whose token the identity provider no longer reports that it was revoked. Credentials bound before that migration have an empty fingerprint. Neither table holds message text or Gmail tokens.

Hosted relay. The relay carries traffic between your browser and the Bridge program on your computer. It is transport only: we do not store the relayed content, and nothing about it is written to the tables above.

As the host and CDN, Cloudflare processes each request, including your IP address and browser type (user agent), in order to deliver the page. See section 6.

4. What is stored on your machine

email-agent is a program that runs on your own computer. It stores these on that computer, in the .email-agent folder in your home directory: your Gmail access tokens and refresh tokens (in each account's token.json), an index of the mail it has downloaded (including message text and a numeric search vector for each message), the results of its analyses, its approval queue, and its settings. We do not hold this data. Section 5 explains what can leave your computer: message text for hosted embeddings, a Gmail address for a slot claim, and traffic relayed when you use the website with a paired computer. Your Gmail tokens are never sent to us.

If you sign the program in to your email-agent account (email-agent signin), it also keeps a credential file, clerk.json, in the same folder (readable only by you). It holds the access and refresh tokens for your email-agent account, which are separate from your Gmail tokens. To sign out, run email-agent signout: it asks Clerk to revoke the token and then deletes the file, even if the revoke request fails. If you accept the hosted embedding consent, the program also writes embed-consent.json in that folder, a local record of the consent version and when you accepted; it lets the program refuse to send anything before consent, and the server remains the authority.

Storing data locally is not the same as never transmitting it. Section 5 lists what the program sends to third-party providers, and only when you use or configure them.

5. Google user data and AI processing

email-agent's use and transfer to any other app of information received from Google APIs will adhere to the Google API Services User Data Policy, including the Limited Use requirements.

Scope requested: https://www.googleapis.com/auth/gmail.modify, and no other. email-agent needs it to read your messages so it can analyse them, and to carry out changes you approve, such as marking a message read or unread, applying or removing labels, moving it to the trash or marking it as spam. It does not send mail, and it does not permanently delete mail.

We do not use Google user data for advertising, and we do not use it to train models. We do not sell it. We do not keep it: our server can carry it in transit for hosted embeddings (b2) and the paired-computer relay (f). For the slot claim (e), we keep a keyed hash rather than the Gmail address.

Where message content is sent (all of it from your machine, to a provider you installed or configured, under that provider's own terms and privacy policy, not ours):

(a) AI summaries, digests and action runs. The text of the messages involved goes to an AI agent. The program can use any of these: the Claude Code CLI, the Codex CLI, the Gemini CLI (Google), the Anthropic API through the Claude Agent SDK, the OpenAI API directly, and OpenRouter, which forwards requests to the upstream model provider that serves the model you pick. By default it prefers the Claude Code CLI. The CLI agents are used only if you have installed them, and the API options only if you have set the matching key (ANTHROPIC_API_KEY, OPENAI_API_KEY or OPENROUTER_API_KEY). If the preferred agent is not available, the program automatically falls back to another agent that is installed or configured, so mail content can reach a provider other than the one you expected.

(b) Search indexing. When the program fetches mail, it builds a search vector for each message from its subject, sender and the first 500 characters of the body. The provider is your choice. A new install selects the hosted service in (b2) (an existing install keeps the provider it already had, which may be OpenAI: if an OpenAI key is present, that text is sent to OpenAI during every fetch). You can choose OpenRouter instead, or a local option that computes the vectors on your machine and sends nothing. If the chosen provider cannot be reached or fails, the program does not switch to another provider: the messages are stored on your machine without a vector and marked pending, and nothing from them is sent elsewhere.

(b2) Hosted embeddings (optional, only after you accept the consent text in the program). A new install chooses this provider by default, so it asks for your consent first; an existing install keeps the provider it already had, and you opt in by changing the provider and accepting the consent. Before every embedding request the program fetches the current consent text from our server and refuses to send anything unless your recorded consent matches its version. It then sends the same text as in (b) to our server (email-agent.berdyh.com) together with your email-agent sign-in token. Our server checks that you have accepted the current consent version and have quota left, and forwards the text to OpenRouter, which routes it to Google's embedding model (Gemini Embedding 2), which OpenRouter currently serves from Google Vertex, and returns numeric vectors, which the program keeps in your local index. On our server the text is in transit only: it is held in memory while the request runs and is never stored and never logged. Each request asks OpenRouter for zero-retention routing, with data collection denied, so that only endpoints that do not retain or train on your data are used, and it is sent once, to that one model, with no fallback to another provider or model. If no such endpoint is available the request fails instead. What we store is only the consent record and the monthly counter (section 3). OpenRouter and Google process the text under their own terms and policies.

(c) Custom endpoint. The OpenAI direct option for AI agents and the OpenAI embedding provider both honour the OPENAI_BASE_URL setting, so if you set it, prompts and OpenAI embedding text go to that endpoint instead of OpenAI, under its operator's terms. It does not change where OpenRouter or the hosted embedding service send text.

(d) Local history kept by your own tools. The agent tools the program calls may keep their own local session history of the prompts they receive, which include message text. For example the Claude Agent SDK and the Claude Code CLI keep session transcripts under ~/.claude/projects, and the Codex and Gemini CLIs keep their own histories under their own directories. That history belongs to those tools, is governed by their settings, and is not removed when you delete the .email-agent folder.

(e) Gmail connection slots. Before the program asks Google for access with the shared email-agent Google client, it sends your Gmail address to our server with your sign-in token, to claim one of a limited number of connection slots (section 3, gmail_slots). After you consent, it claims the address Google actually authenticated, if that differs; if the slots are full, nothing is saved and the program attempts to revoke the Google grant. That revoke can fail or time out; if it does, the program tells you to remove the access yourself at https://myaccount.google.com/permissions.

(f) Hosted relay. When you use the website with a paired computer, our relay passes requests and responses between your browser and the Bridge program on that computer. Anything the Bridge returns, which can include mail content, passes through the hosted relay in transit. The relay does not store a mailbox or write message content to our database. The relay is transport; it does not give the website a copy of your mailbox.

Nothing is sent to any of these providers unless you install or configure it and use the feature. Apart from the optional hosted embedding service in (b2), the slot claim in (e) and the relay in (f), which only carries data in transit, we run no service that receives your mail or its content.

6. Processors

These services process data for this website and the hosted features, on our behalf:

Clerk: accounts and sign-in (section 3).

Neon (Postgres, Frankfurt): the database tables in section 3.

OpenRouter and Google (Gemini Embedding 2 on Google Vertex): the text of messages sent through the optional hosted embedding service (section 5, b2), in transit only on our side.

Resend: sends the waitlist confirmation email from email-agent@berdyh.com to your account email address. It receives that address and the message, and keeps delivery logs under its own policy. Nothing from your mailbox is involved. We send no other email through it.

Cloudflare: hosts this website (Cloudflare Workers) and provides its DNS and security checks (section 12), and Cloudflare Web Analytics, which counts page views. It sets no cookies and does not fingerprint visitors. Cloudflare also stores the closed beta access list in Cloudflare D1 (section 11), and stores visitor analytics in a separate Cloudflare D1 database (section 13). Cloudflare processes data in many countries, so your request may be handled outside the country you are in.

If this list changes, this policy will be updated before the change goes live.

7. Retention, deletion and revoking access

gmail_slots rows are kept permanently by design, and no code path updates or deletes them. Google counts every user who has ever consented to our Google client, including those who later revoked access, so the slot must stay claimed. A row holds only your Clerk user id, the keyed hash of your Gmail address and the time.

embed_consent, embed_quota, waitlist, bridge_devices and bridge_device_credentials rows are kept until you ask us to delete them. There is no automatic deletion and no self-service delete button, and no deletion workflow exists: write to email-agent@berdyh.com and the operator will delete them, and help close your account, by hand. Gmail slot rows are the exception: they are kept permanently because Google counts every user who ever consented to our Google client, revoked ones included, and deleting the row would let the count drift below the true number. The website code never deletes a waitlist row: if the confirmation email could not be sent, the row stays, the request fails with a mail error, and a repeat attempt retries the email (confirmation_sent_at stays empty until it is accepted). Deleting your Clerk account yourself does not remove these rows, so ask us as well.

Request and security logs and Cloudflare Web Analytics data kept by Cloudflare, delivery logs kept by Resend, and the account data held by Clerk follow those providers' retention policies.

Visitor analytics records (section 13) are stored in our own Cloudflare D1 database and are not deleted automatically; they are kept until the operator deletes them.

To stop the program using your account, run email-agent signout on your machine (section 4). To stop hosted embeddings, do not accept the consent text, or stop using the feature.

Data on your machine stays there until you remove it. Deleting the .email-agent folder in your home directory removes the downloaded mail, the stored tokens, the settings and the approval queue, but not the history your agent tools keep (section 5, item d). Resolved (applied or rejected) approval-queue records become eligible for removal after 365 days by default and are deleted during later clean-up sweeps, which run after approvals and rejections, not on a schedule; the setting is retention.approvalQueueDays, and 0 keeps them forever.

Data already sent to a provider in section 5 is kept under that provider's terms; ask that provider to delete it.

You can revoke email-agent's access to your Google account at any time at https://myaccount.google.com/permissions.

8. Your rights and contact

You can ask what we hold about you, ask for it to be corrected or deleted, or object to how it is used. Write to email-agent@berdyh.com; requests are handled manually by the operator, with no fixed deadline. If you are in the EU or the UK you also have the right to complain to your local data protection authority.

9. Children

email-agent is not directed at children, and we do not knowingly collect data from them.

10. Changes

We will update this page when the software or the services behind it change, and change the date at the top (currently 2026-11-22).

11. Beta access list (closed)

An earlier version of this website had a public form for registering interest in beta access. Registering did not create an account, did not connect or read Gmail, and sent nothing to an AI provider. The form is gone and no new registrations are collected.

For each registration made through that form we still hold the email address, the time of registration and the version of the consent text the person accepted, in a separate table (email_agent_beta_signups) in Cloudflare D1. No IP address is stored in that table. We use the list only to write to registrants about Email Agent's release.

These records are kept until you ask for removal; there is no automatic deletion. Write to email-agent@berdyh.com from the address you registered to ask what we hold, or to have it corrected or deleted. Requests are handled manually by the operator. Cloudflare stores this data on our behalf (section 6).

12. Cookies and browser storage

This website sets no advertising cookies. It uses Cloudflare Web Analytics to count page views; that sets no cookies and stores nothing in your browser. Separate visitor analytics on the public pages can use cookies as described in section 13.

Essential account cookies. Clerk sets the cookies that keep you signed in and protect the session (the session and client cookies Clerk names itself, for example __session and __client_uat). Clerk may set them on this website or its sign-in domain as part of authentication or session checks. Clerk's own policy governs them.

Essential security cookies. Cloudflare, which hosts the site, may set cf_clearance, __cf_bm and _cfuvid to tell people from automated traffic and to protect the site from abuse. They are essential to delivering the page and are not used for advertising.

Browser storage for setup and pairing. While you set up the program, the website remembers in this tab's sessionStorage that setup was asked for, and keeps a pending pairing link there across sign-in; it is cleared when the tab closes. The Bridge pairing keeps its device pairing state in your browser's IndexedDB so the page can reconnect to your computer. This is stored on your device only and is not sent to us as a cookie.

Managing and expiry. Cookie lifetimes vary by cookie and provider. Signing out ends your website session; it does not clear all site data. You can clear cookies and browser storage in your browser settings. Blocking essential cookies can prevent sign-in or interrupt security checks. Clearing this site's data removes the browser's saved pairing state; to revoke a computer's access, use the device controls in the dashboard.

13. Visitor analytics

We collect visitor analytics only on the public home, privacy and terms pages, while you are signed out. We use the information to understand which pages and features are useful and to improve the site. We do not record the contents of form fields.

Without consent: We record the pages you visit, when you visit, time on page, scroll depth, and links and buttons clicked. We also record your country when available, whether you use a mobile or desktop device, and the referring site's origin (for example, https://example.com). We use a random ID for each page view to group its events. It is not saved in your browser. We do not store a visitor ID, IP address, browser user agent or full referring URL in these records. If you have not made a choice, we do not set either analytics cookie.

With consent: We also record a random visitor ID shared across berdyh.com and its product subdomains, your IP address and browser user agent, and the full referring URL available to the site. We use the visitor ID to link visits across those sites. The analytics cookies and this additional visitor data are processed on the basis of your consent under Article 6(1)(a) of the GDPR.

We store this site's visitor analytics in its own Cloudflare D1 database. The cookie lifetimes below apply to your browser; the database does not automatically delete visitor records when a cookie expires. For privacy requests, write to email-agent@berdyh.com.

To change or withdraw your consent, open Cookie settings in the footer of a public page while signed out. Choosing Decline removes the visitor ID cookie and stops collection of the additional data that requires consent. It does not delete records already collected. Choosing Decline still saves your choice.

Visitor analytics cookies
NamePurposeDuration
bv_consentRemembers whether you accepted or declined across berdyh.com and its product sites.1 year
bv_vidLinks visits across berdyh.com and its product sites. Set only if you accept.1 year or until you withdraw consent
Email AgentPrivacyTermsCookie settingsemail-agent@berdyh.com