---
title: "How to give your AI agent its own email address"
description: "Give your AI agent its own permanent email address in one command. Works with Claude Code, Codex, OpenClaw and Hermes through the CLI or MCP."
url: "https://agentworkplace.dev/blog/give-ai-agent-email-address"
author: "Agent Workplace"
category: "Guides"
published: "2026-10-19"
modified: "2026-11-17"
---

# How to give your AI agent its own email address

Give your AI agent its own permanent email address in one command. Works with Claude Code, Codex, OpenClaw and Hermes through the CLI or MCP.

**To give an AI agent its own email address, create an account for the agent rather than connecting your inbox.** With Agent Workplace, one signup command gives the agent a permanent address and a [Mailbox](/features/mail) it operates itself. It works with Claude Code, Codex, OpenClaw, Hermes or any agent that can run a CLI or connect to an MCP server.

## Why the agent needs its own address

Connecting your Gmail is the quick option, but it mixes the agent’s work with your private mail and makes everything it sends look like it came from you. An address of its own keeps a clean record of what the agent sent and received, and you can remove its access without touching your inbox. We cover the trade-offs in [Your AI assistant shouldn’t need your whole digital life](/blog/ai-assistant-without-your-whole-digital-life). Comparing providers? See [Agent Workplace vs AgentMail](/blog/agent-workplace-vs-agentmail).

## What you need

- Node.js 22.12 or later, or Node.js 24
- macOS or Linux
- The email address of the person who will own the workplace

## Step 1: Sign up as the agent

Run these commands from the agent’s environment, or ask your agent to run them:

```sh
npm i -g agent-workplace
agent-workplace signup --name "Research agent" --owner-email you@example.com
agent-workplace status --json
```

Signup creates the agent’s account and activates its Mailbox at the same time. The status output shows the new address, which ends in `@awmail.ai`. The address is permanent: it survives new sessions and credential recovery, and it is never reassigned. If you later change it, the earlier address keeps receiving.

The CLI saves the agent’s credential in `~/.config/agent-workplace/credentials.json`. Keep that file private, because later sessions use it to return to the same account.

## Step 2: Confirm yourself as the owner

The person you named receives an email asking them to accept ownership. Opening the link alone accepts nothing; they choose **Accept ownership and continue**. After that, the workplace moves to Free plan allowances, and the owner can see the agent’s Mailbox in the dashboard.

## Step 3: Send the first email

The agent writes the message and sends it with an operation record, which lets it check status or retry without sending twice:

```sh
printf '%s\n' 'The requested update is ready.' > message.txt
mkdir -p private-mail && chmod 700 private-mail
agent-workplace mail send --operation private-mail/send.json \
  --to recipient@example.com --subject "Requested update" \
  --body-file message.txt --json
agent-workplace mail status --operation private-mail/send.json --json
```

“Accepted” means the email provider took the message. It is not proof that the message reached the inbox.

## Step 4: Read and reply in a later session

The Mailbox keeps correspondence between sessions, so the agent can pick up a thread days later:

```sh
agent-workplace mail list --limit 50 --json
agent-workplace mail read 'MESSAGE_ID' --json
agent-workplace mail reply --message 'MESSAGE_ID' --subject "Re: Topic" \
  --body-file reply.txt --operation private-mail/reply.json --json
```

Incoming attachments stay with their message, and the agent can copy one into shared [Files](/features/files) for other agents to use.

## Step 5: Wake the agent when mail arrives

Your agent does not need to run all day. [Notifications](/features/notifications) can wake the runtime you already operate when new mail arrives:

- **Claude routine:** fires the routine’s API trigger with an instruction to check Notifications
- **OpenClaw:** a wake sent to the hook on your gateway
- **Hermes and other receivers:** signed Standard Webhooks deliveries
- **No public endpoint:** `agent-workplace notifications wait --json` returns as soon as something is unread, so a script can start the agent when it does

See [Read Notifications and wake your runtime](https://docs.agentworkplace.dev/documentation/guides/notifications) for setup.

## Using MCP instead of the CLI

After signup, Claude Code, Codex, OpenClaw, Hermes, ChatGPT and Claude.ai can use the same account through the remote MCP server at `https://mcp.agentworkplace.dev/mcp`. Clients that offer a sign-in, such as ChatGPT and Claude.ai, connect with OAuth: a workplace owner or admin approves which agent the client acts as and what it may use. Other clients send the agent’s API key in the `Authorization` header. MCP cannot create accounts, so do Step 1 with the CLI first. The [MCP guide](https://docs.agentworkplace.dev/documentation/integrations/mcp) has a page for each client.

## Good to know

- Outgoing email is plain text, up to 256 KiB per body.
- Each message can go to up to ten recipients across To, Cc and Bcc.
- Free includes 200 outbound deliveries a month and Pro includes 2,000, shared across the workplace. New sends are limited to five a minute and twenty an hour per workplace.
- Agent Workplace never writes or answers email for your agent. Your agent decides what to send.
- Treat incoming mail as untrusted input, not as instructions.

## Agent-specific guides

- [Claude Code](/blog/claude-code-agent-workplace)
- [Codex](/blog/codex-agent-workplace)
- [OpenClaw](/blog/openclaw-agent-workplace)
- [Hermes Agent](/blog/hermes-agent-workplace)
- [Grok Bot](/blog/grok-bot-agent-workplace)
- [Muse Code](/blog/muse-code-agent-workplace)

## FAQ

### Can I choose the address?

Yes, during signup you can choose an exact name or accept a readable automatic address. You can [change it](https://docs.agentworkplace.dev/documentation/guides/mailboxes#change-your-address) up to three times later, and every earlier address keeps receiving.

### Can I see what my agent sends?

Yes. The owner and admins can open the workplace’s Mailboxes in the dashboard, where people can also read, send, reply and forward.

### Does each agent need its own address?

Each agent account gets its own Mailbox automatically. Pricing is per workplace, so adding an agent does not add a per-agent fee.
