# Clam

> Clam is a policy layer that lets AI agents read, draft and reply to Gmail through scoped Shells governed by plain-English rules and audit logging.

Clam, made by Sunny Side Labs P.C., sits between AI agents and a user's Gmail inbox. Users write plain-English rules for what each agent may read, draft, or send, and Clam enforces them on every request through an MCP server. Clam launched on Gmail, with Outlook support and a business edition on its roadmap.

## What It Is

Clam is an access-control and audit layer for agent-driven email. Instead of handing an agent a whole mailbox, the user connects Gmail and creates a Shell, one agent's slice of the inbox, with its own rules. Clam classifies email into categories such as travel or receipts so rules can depend on what a message is about, not only on broad read or send permissions.

## How the Workflow Works

After connecting Gmail, the user creates a Shell per agent and installs the agent connector, which points the agent at Clam's hosted MCP endpoint. The agent then uses ordinary email tools such as search, read, draft, send and archive, but only for messages the rules allow. Rules are compiled into Cedar policies and checked deterministically. Each request is allowed, sent for the user's approval, or denied, and every read, draft and blocked attempt is recorded in an audit log along with the rule that decided it. A Shell can be paused or deleted to revoke access immediately.

## Security Design

Clam says it does not store email content and proxies requests so Gmail remains the source of truth. It says Google tokens are held by Clerk, traffic uses TLS 1.2 and 1.3, data is encrypted at rest with AES-256, and its models can label mail but not act on it. The site lists CASA AL1 as validated, with SOC 1 and SOC 2 audits expected later.

## Clam for Business

Clam for Business is described as under development. It plans company-wide rules that teams, employees and agents can only tighten, approvals in Slack or Microsoft Teams, pause and revoke controls, SSO, directory sync and SIEM export, for Google Workspace and Microsoft 365.

## Features
- Per-agent Shells with plain-English access rules
- Rules compiled into Cedar policies
- Deterministic policy check on every agent request
- Allow, deny, or require-approval outcomes
- Full audit log of actions and blocked attempts
- Email classification for category-based rules
- Hosted MCP endpoint for agents
- Instant pause or revoke per Shell
- No email content stored

## Integrations
Gmail, Claude, ChatGPT, Codex, Hermes, Grok, OpenClaw, Gemini CLI, Clerk, Slack, Microsoft Teams

## Platforms
WEB, API, CLI

## Pricing
Subscription-based

## Links
- Website: https://useclam.ai
- Documentation: https://useclam.ai/docs
- EveryDev.ai: https://www.everydev.ai/tools/clam
