Get started/Quickstart

Docs

ASKIF ALLOWED01 AGENT02 SHELL03 GMAIL

Your AI agent never gets your Gmail. It gets a Shell: rules you write, which Clam checks before every request. This page takes you from invite to a connected agent in about 10 minutes.

You need a Gmail account, the AI app you want to connect, and an invite. We're in early access, so [request one](https://console.useclam.ai/get-early-access?referrer_host=www.google.com&landing_path=%2Fdocs%2Fget-started%2Fquickstart) if you don't have it yet. The 14-day trial needs no credit card.

1. 01

## [Connect your inbox](/content/docs/get-started/quickstart/index.html#connect-your-inbox)

Sign in at [console.useclam.ai](https://console.useclam.ai/) with the Google account your invite went to, then click **Connect your inbox**. Clam uses this access to label your mail and to carry out what your rules allow. Your agent never sees it. [What Clam can see](/content/docs/trust/privacy-and-security/index.html)

2. 02

## [Check Clam's labels](/content/docs/get-started/quickstart/index.html#check-clams-labels)

Clam reads up to 100 of your latest emails and labels them: work, receipts, travel, banking and so on. Your rules point at these labels, so check a few emails you know. If they're right, click **Looks good**. If not, click **Customize** to fix them, now or later. The labels also show up in Gmail, under `clam/`.

DWDana WhitfieldQ4 planning notes for Thursdayclam/work

HAHotel AuroraYour stay on 12 December is confirmedclam/travelclam/receipts

YBYour bankYour November statement is readyclam/banking

CustomizeLooks good

Customize is also where you add labels of your own, up to ten, for what only you know about your mail: `kids-school`, `squash-club`. Say what counts, and your rules can use them like any other label.

3. 03

## [Create a Shell](/content/docs/get-started/quickstart/index.html#create-a-shell)

Pick the template closest to the job you have in mind, from **Inbox Janitor** to **Travel Concierge** to **Work Assistant**, or start from scratch. Change its rules in your own words.

Not sure where to start? Copy this one.

Starter policyCopy

```
Read and search my work email and receipts. Draft replies, but never send. Keep banking, medical, family and login codes off-limits.
```

Before saving, Clam shows you how it read your rules. Anything they don't allow is blocked. Then choose the Shell's **Transparency**, which sets what your agent learns about mail it can't open: nothing (Invisible), a count (Counted, the default), or the sender and time (Outlined). Try the Shell in the built-in chat before a real agent touches it.

AllowedRead and search email labelled work or receipts

AllowedCreate drafts

BlockedSend, reply or forward

BlockedAnything labelled banking, medical, family or auth

Anything not allowed is blocked.

Creating the Shell starts your trial, and Clam labels your newest 1,000 emails in the background. Want your agent to work only at certain times? Set **Office hours** on the Shell's Settings tab: outside them, its requests are refused and logged. For help with rules, read [Writing effective policies](/content/docs/policies/writing-effective-policies/index.html).

4. 04

## [Connect your agent](/content/docs/get-started/quickstart/index.html#connect-your-agent)

Pick yours and follow its page.

'%3e%3cpath%20id='Vector'%20d='M3.13933%2010.6367L6.286%208.872L6.33933%208.71867L6.286%208.63333H6.13333L5.60667%208.60133L3.808%208.55267L2.24867%208.488L0.738%208.40667L0.357333%208.326L0%207.856L0.0366667%207.62133L0.356667%207.40733L0.814%207.44733L1.82733%207.516L3.346%207.62133L4.44733%207.686L6.08%207.856H6.33933L6.376%207.75133L6.28667%207.686L6.218%207.62133L4.646%206.55733L2.94467%205.432L2.054%204.784L1.57133%204.45667L1.32867%204.14867L1.22333%203.47667L1.66067%202.99533L2.248%203.03533L2.398%203.076L2.99333%203.53333L4.26533%204.51733L5.926%205.73933L6.16933%205.942L6.266%205.87333L6.27867%205.82467L6.16933%205.642L5.266%204.01133L4.302%202.35133L3.87267%201.66333L3.75933%201.25067C3.71615%201.09217%203.69286%200.928916%203.69%200.764667L4.18867%200.0893333L4.464%200L5.128%200.0893333L5.408%200.332L5.82133%201.27467L6.48933%202.76067L7.526%204.78067L7.83%205.37933L7.992%205.934L8.05267%206.104H8.158V6.00667L8.24333%204.86933L8.40133%203.47267L8.55467%201.676L8.608%201.16933L8.85867%200.562667L9.35667%200.234667L9.746%200.421333L10.066%200.878L10.0213%201.174L9.83067%202.408L9.458%204.34333L9.21533%205.638H9.35667L9.51867%205.47667L10.1753%204.606L11.2767%203.23L11.7633%202.68333L12.33%202.08067L12.6947%201.79333H13.3833L13.89%202.546L13.6633%203.32333L12.954%204.22133L12.3667%204.98267L11.524%206.116L10.9973%207.02267L11.046%207.096L11.1713%207.08267L13.0753%206.67867L14.104%206.492L15.3313%206.282L15.8867%206.54067L15.9473%206.804L15.7287%207.342L14.416%207.666L12.8767%207.974L10.584%208.516L10.556%208.536L10.5887%208.57667L11.6213%208.674L12.0627%208.698H13.144L15.1573%208.848L15.684%209.196L16%209.62133L15.9473%209.94467L15.1373%2010.358L14.044%2010.0987L11.4913%209.492L10.6167%209.27267H10.4953V9.346L11.224%2010.058L12.5613%2011.2647L14.234%2012.818L14.3187%2013.2033L14.104%2013.5067L13.8773%2013.474L12.4073%2012.3693L11.84%2011.8713L10.556%2010.7913H10.4707V10.9047L10.7667%2011.3373L12.33%2013.6847L12.4113%2014.4047L12.298%2014.64L11.8927%2014.782L11.4473%2014.7007L10.5313%2013.4173L9.588%2011.9727L8.826%2010.6773L8.73267%2010.7307L8.28333%2015.5667L8.07267%2015.8133L7.58667%2016L7.182%2015.6927L6.96733%2015.1947L7.182%2014.2107L7.44133%2012.928L7.65133%2011.908L7.842%2010.6413L7.95533%2010.22L7.94733%2010.192L7.854%2010.204L6.898%2011.5153L5.44467%2013.4787L4.294%2014.7087L4.018%2014.818L3.54%2014.5713L3.58467%2014.13L3.852%2013.7373L5.444%2011.7133L6.404%2010.4587L7.024%209.73467L7.02%209.62933H6.98333L2.75467%2012.3733L2.00133%2012.4707L1.67667%2012.1667L1.71733%2011.6693L1.87133%2011.5073L3.14333%2010.6327L3.13933%2010.6367Z'%20fill='%23D97757'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_0_4'%3e%3crect%20width='16'%20height='16'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e)Claude](/content/docs/agents/claude/index.html) Claude Code](/content/docs/agents/claude-code/index.html) '%3e%3cpath%20id='Vector'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M6.13667%205.772V4.26533C6.13667%204.13867%206.18467%204.04333%206.29533%203.98L9.324%202.236C9.73667%201.998%2010.228%201.88733%2010.7353%201.88733C12.638%201.88733%2013.8433%203.362%2013.8433%204.93133C13.8433%205.04267%2013.8433%205.16933%2013.8273%205.296L10.6873%203.45667C10.6021%203.40238%2010.5031%203.37355%2010.402%203.37355C10.3009%203.37355%2010.2019%203.40238%2010.1167%203.45667L6.13667%205.772ZM13.2093%2011.6387V8.04C13.2093%207.818%2013.114%207.66%2012.9233%207.54867L8.94333%205.23333L10.2433%204.488C10.2904%204.457%2010.3456%204.44048%2010.402%204.44048C10.4584%204.44048%2010.5136%204.457%2010.5607%204.488L13.5893%206.23267C14.462%206.73933%2015.0487%207.818%2015.0487%208.86467C15.0487%2010.07%2014.3353%2011.18%2013.2087%2011.64L13.2093%2011.6387ZM5.20133%208.46867L3.90133%207.70733C3.79%207.644%203.742%207.54867%203.742%207.422V3.93267C3.742%202.236%205.042%200.951333%206.80267%200.951333C7.46933%200.951333%208.08733%201.17333%208.61067%201.57L5.48667%203.378C5.29667%203.48867%205.20133%203.64733%205.20133%203.86933V8.468V8.46867ZM8%2010.0853L6.13667%209.03867V6.81867L8%205.772L9.86333%206.81867V9.03867L8%2010.0853ZM9.19733%2014.9053C8.53067%2014.9053%207.91267%2014.684%207.38933%2014.2873L10.5133%2012.4793C10.7033%2012.3687%2010.7987%2012.21%2010.7987%2011.988V7.38933L12.1147%208.15067C12.226%208.214%2012.2733%208.30933%2012.2733%208.436V11.9247C12.2733%2013.6213%2010.9573%2014.9053%209.19733%2014.9053ZM5.43933%2011.37L2.41%209.62533C1.538%209.118%200.951333%208.04%200.951333%206.99333C0.949278%206.39862%201.12474%205.81681%201.45526%205.32239C1.78579%204.82798%202.25633%204.44344%202.80667%204.218V7.83333C2.80667%208.05533%202.902%208.214%203.092%208.32533L7.05667%2010.6247L5.75667%2011.37C5.70959%2011.4011%205.65441%2011.4176%205.598%2011.4176C5.54159%2011.4176%205.48641%2011.4011%205.43933%2011.37ZM5.26467%2013.97C3.47267%2013.97%202.15667%2012.6227%202.15667%2010.9573C2.15667%2010.8307%202.17267%2010.704%202.188%2010.5773L5.312%2012.384C5.50267%2012.4953%205.69267%2012.4953%205.88267%2012.384L9.86267%2010.0853V11.592C9.86267%2011.7187%209.816%2011.814%209.70467%2011.8773L6.676%2013.6213C6.26333%2013.8593%205.772%2013.97%205.26467%2013.97ZM9.19733%2015.8567C10.111%2015.8567%2010.9967%2015.5412%2011.7046%2014.9635C12.4124%2014.3857%2012.899%2013.5812%2013.082%2012.686C14.858%2012.226%2016%2010.56%2016%208.864C16%207.754%2015.5247%206.676%2014.668%205.89867C14.7473%205.56533%2014.7947%205.23267%2014.7947%204.9C14.7947%202.63267%2012.9553%200.935333%2010.8307%200.935333C10.4027%200.935333%209.99067%200.998667%209.57733%201.142C8.83733%200.413606%207.84167%200.0037124%206.80333%204.28277e-09C5.88953%20-4.2452e-05%205.00377%200.315577%204.2959%200.893462C3.58803%201.47135%203.10152%202.27602%202.91867%203.17133C1.142%203.63133%200%205.29667%200%206.99333C0%208.104%200.475333%209.182%201.332%209.95867C1.25267%2010.292%201.20533%2010.6253%201.20533%2010.958C1.20533%2013.2253%203.04467%2014.922%205.16933%2014.922C5.59733%2014.922%206.00933%2014.8587%206.42267%2014.716C7.16275%2015.4447%208.15874%2015.8546%209.19733%2015.858V15.8567Z'%20fill='black'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_0_4'%3e%3crect%20width='16'%20height='16'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e)ChatGPT](/content/docs/agents/chatgpt/index.html) '%3e%3ccircle%20cx='12'%20cy='12'%20r='7'/%3e%3ccircle%20cx='17.2'%20cy='12.0'%20r='4.6'/%3e%3ccircle%20cx='15.2'%20cy='16.6'%20r='4.4'/%3e%3ccircle%20cx='9.9'%20cy='16.5'%20r='4.8'/%3e%3ccircle%20cx='6.6'%20cy='12.5'%20r='4.5'/%3e%3ccircle%20cx='9.0'%20cy='7.7'%20r='4.7'/%3e%3ccircle%20cx='14.4'%20cy='6.9'%20r='4.4'/%3e%3c/g%3e%3cpath%20fill='none'%20stroke='%23fff'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='1.8'%20d='m8.6%209.6%202.4%202.4-2.4%202.4m4.2%200h3'/%3e%3c/svg%3e)Codex](/content/docs/agents/codex/index.html) Hermes](/content/docs/agents/hermes/index.html) Grok](/content/docs/agents/grok/index.html) OpenClaw](/content/docs/agents/openclaw/index.html) Gemini CLI](/content/docs/agents/gemini-cli/index.html) Custom MCP](/content/docs/agents/other-mcp-client/index.html)

If it asks which Shell to use, pick the one you just made. Then click **Check connection** to confirm it reached Clam.

5. 05

## [Tell your agent to use Clam](/content/docs/get-started/quickstart/index.html#tell-your-agent-to-use-clam)

Your agent may have other ways into your mail, so tell it which one to use. Paste this in:

InstructionCopy

```
From now on, use Clam for all email. Don't use any other connection to my email. If Clam refuses something, tell me instead of trying another way.
```

If your agent keeps standing instructions, put it there so it outlasts this chat.

An instruction isn't a lock, and Clam can only check what goes through Clam. If your agent has another way into your mail, such as a Gmail connector, remove it.

Every request your agent makes now shows up in your mailbox's **Audit log**, with Clam's decision on each.

## [Next steps](/content/docs/get-started/quickstart/index.html#next-steps)

[Write your own rulesChoose which emails your agent can access, what it can do, and what's off-limits.](/content/docs/policies/writing-effective-policies/index.html) [Have your agent ask before it actsRequire your approval before your agent sends, changes or takes certain actions.](/content/docs/trust/approvals/index.html) [Cut an agent offRemove an agent, pause a Shell or revoke Clam's access to your inbox whenever you need.](/content/docs/trust/remove-access/index.html)
