- Blog
- Guides
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 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. Comparing providers? See 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:
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:
“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:
Incoming attachments stay with their message, and the agent can copy one into shared Files for other agents to use.
Step 5: Wake the agent when mail arrives
Your agent does not need to run all day. 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 --jsonreturns as soon as something is unread, so a script can start the agent when it does
See Read Notifications and wake your runtime 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 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
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 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.