/install agentlair-email
AgentLair Email — REST Email for Agents
Give any agent a working email address in 30 seconds. No SMTP setup, no IMAP polling, no credentials to rotate. Just REST.
Base URL: https://agentlair.dev
Auth: Authorization: Bearer \x3CYOUR_API_KEY>
Setup: Get an API Key
Self-service, no email required:
curl -s -X POST https://agentlair.dev/v1/auth/keys \
-H "Content-Type: application/json" \
-d '{}'
Response:
{"key": "al_live_...", "tier": "free"}
Store the key as AGENTLAIR_API_KEY in your environment. All subsequent calls need it in the Authorization header.
When to Use This Skill
Use this skill when:
- An agent needs to send or receive email
- You need to claim a dedicated email identity for an agent
- You want to check an agent's inbox programmatically
- The user asks about agent email, email identity, or sending email as an agent
Claim an Email Address
curl -s -X POST https://agentlair.dev/v1/email/claim \
-H "Authorization: Bearer $AGENTLAIR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"address": "[email protected]"}'
Response:
{"address": "[email protected]", "claimed": true, "already_owned": false, "account_id": "..."}
You can claim multiple addresses per API key.
Send an Email
Important: Use the text field for the message body (not body — that returns a missing_fields error).
curl -s -X POST https://agentlair.dev/v1/email/send \
-H "Authorization: Bearer $AGENTLAIR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"from": "[email protected]",
"to": ["[email protected]"],
"subject": "Hello from my agent",
"text": "Plain text message body."
}'
Response:
{"id": "out_...", "status": "sent", "sent_at": "...", "rate_limit": {"daily_remaining": 49}}
Optional fields:
"html"— HTML version of the message"cc"— array of CC recipients
Check Inbox
curl -s "https://agentlair.dev/v1/email/[email protected]&limit=10" \
-H "Authorization: Bearer $AGENTLAIR_API_KEY"
Response:
{
"messages": [
{
"message_id": "\x3Cabc123@host>",
"from": "[email protected]",
"subject": "Re: Hello",
"received_at": "2026-03-15T...",
"read": false
}
],
"count": 1
}
Note: message_id values include RFC 2822 angle brackets \x3C...>. Strip them before using in the read endpoint.
Read a Specific Message
Strip \x3C> from message_id, then URL-encode the @:
# message_id from inbox: \[email protected]>
# Strip angle brackets, URL-encode @
MSG_ID="abc123%40eu-west-1.amazonses.com"
curl -s "https://agentlair.dev/v1/email/messages/[email protected]" \
-H "Authorization: Bearer $AGENTLAIR_API_KEY"
In code:
const rawId = message.message_id.replace(/^\x3C|>$/g, "");
const encodedId = encodeURIComponent(rawId);
const url = `https://agentlair.dev/v1/email/messages/${encodedId}?address=${encodeURIComponent(address)}`;
Check Sent Outbox
curl -s "https://agentlair.dev/v1/email/outbox?limit=5" \
-H "Authorization: Bearer $AGENTLAIR_API_KEY"
Free Tier Limits
| Limit | Value |
|---|---|
| Emails per day | 50 |
| API requests per day | 100 |
| Addresses per key | Unlimited |
| Rate limit reset | Midnight UTC |
Delivery Timing
- External recipients: ~1-2 seconds via Amazon SES
- Intra-domain (agentlair.dev to agentlair.dev): inbox indexing can take 30-120 seconds after SES receipt
- When polling inbox for a just-sent email, use a 120-second timeout minimum
Example Session
User: "Send an email to [email protected] introducing yourself"
Agent actions:
- Check if you have an API key. If not, get one:
curl -s -X POST https://agentlair.dev/v1/auth/keys -H "Content-Type: application/json" -d '{}'
- Claim an address:
curl -s -X POST https://agentlair.dev/v1/email/claim \
-H "Authorization: Bearer $AGENTLAIR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"address": "[email protected]"}'
- Send the email:
curl -s -X POST https://agentlair.dev/v1/email/send \
-H "Authorization: Bearer $AGENTLAIR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"from": "[email protected]",
"to": ["[email protected]"],
"subject": "Hello from your AI assistant",
"text": "Hi Bob, I am an AI assistant reaching out to introduce myself. Let me know if you need anything!"
}'
- Confirm to user: "Email sent to [email protected] from [email protected]"
Notes
- Emails delivered via Amazon SES (eu-west-1) with DKIM, SPF, and DMARC authentication
- Custom domain support coming Q2 2026
- No data stored beyond delivery — privacy-first design
- Built by AgentLair — infrastructure for autonomous agents
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install agentlair-email - After installation, invoke the skill by name or use
/agentlair-email - Provide required inputs per the skill's parameter spec and get structured output
What is Agentlair Email?
Give your agent a real email address via REST API. Claim @agentlair.dev addresses, send and receive email — no SMTP, no IMAP, no credentials to configure. Fr... It is an AI Agent Skill for Claude Code / OpenClaw, with 131 downloads so far.
How do I install Agentlair Email?
Run "/install agentlair-email" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Agentlair Email free?
Yes, Agentlair Email is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Agentlair Email support?
Agentlair Email is cross-platform and runs anywhere OpenClaw / Claude Code is available (linux, macos, windows).
Who created Agentlair Email?
It is built and maintained by hawkaa (@hawkaa); the current version is v1.0.0.