Secure Gmail for AI Agents
Gmail's OAuth scopes are all-or-nothing: gmail.modify grants full read, write, send, and delete. PortEden sits between your AI agent and the Gmail API, enforcing the granular rules that Google doesn't provide.
How PortEden Protects You
Six layers of security between AI and your data.
Visibility Controls
Choose what agents see: full content, headers only, or redacted versions with HTML stripped to neutralize prompt injection.
Action Limits
Restrict agents to read-only, draft-only, or full write access so they can never send or delete without permission.
Contact Rules
Block agents from seeing emails involving specific people or domains to keep sensitive correspondence invisible to AI.
Time Windows
Limit access to recent emails only with boundaries like 'last 7 days' or 'last 30 days' per agent.
Get Started in 3 Steps
Install — CLI or MCP
Install the PortEden CLI or add the cloud MCP connector to your AI client, then connect your Gmail account via secure Google OAuth.
Set Your Rules
Configure visibility controls, contact rules, action limits, and time windows per agent.
Connect Your Agent
Point your AI agent to PortEden instead of the Gmail API and every request is filtered with full audit logging.
Without vs. With PortEden
Without PortEden
- gmail.modify scope grants full read/write/send/delete with no middle ground
- Prompt injection via HTML email can hijack agent behavior
- Raw OAuth refresh token stored in agent's environment
- No audit trail of which emails the agent accessed
- Revoking access means disconnecting the entire Google integration
With PortEden
- Granular read-only, draft-only, or write access per agent
- HTML stripping and redaction neutralize prompt injection
- OAuth token stays in PortEden. Agents never see it
- Full audit log: which emails accessed, what was returned, what was blocked
- One-click revocation per agent, per provider, or globally