AgentMail provides an official skill that can be installed on AI coding assistants and agents that support the AgentSkills format. This includes OpenClaw, Claude Code, Cursor, Codex, and other compatible tools.
The skill is available at skills.sh/agentmail-to/agentmail-skills/agentmail.
Install the skill using the skills CLI. This works with Claude Code, Cursor, OpenClaw, Codex, and other compatible agents:
To skip interactive prompts, specify the skill and agent directly:
OpenClaw users can also install via ClawHub:
You can also manually clone the skill repository:
After installation, configure your AgentMail API key. The method varies by platform:
Set the AGENTMAIL_API_KEY environment variable:
Add the API key to ~/.openclaw/openclaw.json:
Get your API key from the AgentMail Console.
The official AgentMail skill provides comprehensive email functionality:
Create scalable inboxes on-demand. Each inbox has a unique email address that your AI agent can use to send and receive emails.
Send emails with both plain text and HTML content for best deliverability. The skill handles proper formatting and headers automatically.
Threads group related messages in a conversation, making it easy to follow email chains and maintain context across multiple exchanges.
Send and receive attachments with Base64 encoding. The skill can retrieve attachments from messages or threads.
Create drafts for human-in-the-loop approval before sending. This is useful when you want to review emails before they go out.
Multi-tenant isolation for SaaS platforms. Each customer gets isolated inboxes, perfect for building email-enabled applications.
Use idempotency keys for safe retries on create operations. This prevents duplicate emails when network errors occur.
The skill supports both WebSockets (persistent connection, no public URL needed) and webhooks (HTTP-based notifications) for real-time email notifications.
Once installed, you can ask your AI assistant to perform email tasks: