agentsclimarketplace

Agentlair email skill

Skill piiiico/agentlair-email-skill

Give an AI agent a real email address via AgentLair REST API. Covers: getting an API key, claiming an @agentlair.dev address, sending emails, checking inbox, and reading messages — all via REST, no SMTP or IMAP required. Use when an agent needs to send or receive email, check a mailbox, or establish an email identity. Trigger on: agent email, send email, check inbox, claim email, agentlair.From its SKILL.md

Install
npx -y skills add piiiico/agentlair-email-skill

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its file declares

Copied from the file, not written here

The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.

SKILL.md

4.6 KB, ~1.2k tokens by cl100k_base, as published. Nobody here has run it

AgentLair Email Skill

AgentLair gives AI agents a real email identity via a simple REST API. No SMTP, no IMAP, no CAPTCHA, no email required to sign up.

Base URL: https://agentlair.dev Auth: Authorization: Bearer $AGENTLAIR_API_KEY


Step 1: Get an API key (self-service, instant)

curl -s -X POST https://agentlair.dev/v1/auth/keys \
  -H "Content-Type: application/json" \
  -d '{}'

Response:

{"key": "al_live_...", "tier": "free"}

Store as AGENTLAIR_API_KEY. Free tier: 50 emails/day, 100 API calls/day.


Step 2: 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}

Choose any available <name>@agentlair.dev address. Addresses are persistent.


Step 3: Send an 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 my agent",
    "text": "This email was sent by an AI agent."
  }'

Response:

{"id": "out_...", "status": "sent", "sent_at": "...", "rate_limit": {"daily_remaining": 49}}

Important: Use text (not body) for the message content. Optional: "html" for HTML version, "cc" (array).

Emails are delivered via Amazon SES with DKIM/SPF/DMARC. External delivery: ~1-2 seconds.


Step 4: Check inbox

curl -s "https://agentlair.dev/v1/email/[email protected]&limit=10" \
  -H "Authorization: Bearer $AGENTLAIR_API_KEY"

Response:

{
  "messages": [
    {
      "message_id": "<[email protected]>",
      "from": "[email protected]",
      "subject": "Re: Hello",
      "received_at": "2026-03-13T10:00:00Z",
      "read": false
    }
  ],
  "count": 1
}

Note: message_id includes RFC 2822 angle brackets <...>. Strip them before using in the read endpoint.

Inbox indexing for inbound emails: allow up to 120 seconds after delivery before polling.


Step 5: Read a specific message

Strip <> from message_id, URL-encode, then fetch:

# message_id from inbox: <[email protected]>
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 JavaScript/TypeScript:

const rawId = message.message_id.replace(/^<|>$/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"

Common patterns

Agent that sends a confirmation email

  1. Claim [email protected]
  2. Send with text field containing the confirmation
  3. Check inbox for replies after 120s

Agent with persistent email identity

  1. Claim address once, store API key + address in agent config
  2. Check inbox on each relevant task (not polling — check on trigger)

Multi-agent email routing


Free tier limits

  • 50 outbound emails/day
  • 100 API requests/day
  • Multiple @agentlair.dev addresses per key

Rate limits reset daily at midnight UTC.


Notes

  • Custom domains coming Q2 2026
  • No authentication needed for inbound — any email sent to *@agentlair.dev arrives in inbox
  • Docs: https://agentlair.dev/docs
  • API key is the account — no username/password. Keep it secret.

What ships with it: 1 file

2.3 KB alongside SKILL.md

Keep looking

Skills are one crate of 326,422. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.