Give OpenClaw Its Own Email Address with AgentPatch

Your OpenClaw bot has a name. It has a personality and a set of capabilities. What it doesn’t have — by default — is an email address. AgentPatch lets you claim a dedicated @mail.agentpatch.ai address for your agent, which it can use to send and receive emails as itself.

Why This Matters

There’s a difference between an agent that sends emails on your behalf and an agent that has its own email identity. When OpenClaw has its own address, it can send messages as openclaw@mail.agentpatch.ai, receive replies, and check its inbox. This opens up workflows that involve external parties communicating back to the agent directly.

Useful for: automated outreach where replies should go to the agent, setting up a contact point for people to reach your bot, or any workflow where the agent needs to be a participant in an email thread rather than just a sender.

Setup

The AgentPatch CLI is designed for AI agents to use via shell access. Install it, and your agent can discover and invoke any tool on the marketplace.

Install (zero dependencies, Python 3.10+):

pip install agentpatch

Set your API key:

export AGENTPATCH_API_KEY=your_api_key

Example commands your agent will use:

ap search "web search"
ap run google-search --input '{"query": "test"}'

Get your API key from the AgentPatch dashboard.

Install the AgentPatch skill from ClawHub — it teaches OpenClaw when to use AgentPatch and how to use the CLI:

clawhub install agentpatch

MCP Server (Alternative)

If you prefer raw MCP tool access instead of the skill, add AgentPatch to ~/.openclaw/openclaw.json:

{
  "mcp": {
    "servers": {
      "agentpatch": {
        "transport": "streamable-http",
        "url": "https://agentpatch.ai/mcp",
        "headers": {
          "Authorization": "Bearer YOUR_API_KEY"
        }
      }
    }
  }
}

Replace YOUR_API_KEY with your actual key from the AgentPatch dashboard. Restart OpenClaw and it discovers all AgentPatch tools automatically.

Example

From your Telegram chat with OpenClaw, start by claiming an address:

“Claim an email address for yourself — something like openclaw-assistant.”

OpenClaw calls the Claim Email Address tool and reserves openclaw-assistant@mail.agentpatch.ai. It reports back with the address in your chat.

Now it can send outreach with its own identity:

“Send an introduction email to contact@somecompany.com from your own address. Explain what you do and offer to help with their research workflows.”

OpenClaw sends the email from openclaw-assistant@mail.agentpatch.ai. If the recipient replies, those messages land in the agent’s inbox.

Later, you can ask:

“Check your inbox and tell me if anyone responded to the outreach emails.”

OpenClaw calls the Check Inbox tool through AgentPatch and reports back on any replies — all from your Telegram chat.

This is useful for any workflow where you want the agent to maintain a persistent email identity separate from your personal address.

Wrapping Up

Claiming an email address is part of the broader AgentPatch email toolkit. The same connection gives OpenClaw access to YouTube transcripts, web search, image generation, and more. Visit agentpatch.ai to get your API key.