← 返回 Skills 市场
hawkaa

Agentlair Email

作者 hawkaa · GitHub ↗ · v1.0.0 · MIT-0
linuxmacoswindows ✓ 安全检测通过
131
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install 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...
使用说明 (SKILL.md)

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:

  1. 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 '{}'
  1. 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]"}'
  1. 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!"
  }'
  1. 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
安全使用建议
This skill appears to do exactly what it says: call agentlair.dev to create keys, claim addresses, send and read mail. Before installing, decide whether you trust the agent to operate email autonomously (it can create an API key and send messages). If you permit that, consider: (1) create/restrict a dedicated AgentLair API key for the agent and keep the key’s scope and quota limited; (2) monitor outbox usage and rate limits to detect misuse; (3) avoid letting the agent send sensitive PII without review; (4) have a revocation plan (how to delete/revoke the API key); and (5) confirm privacy/compliance expectations with agentlair.dev (the SKILL.md claims privacy-first delivery and SES usage). If you want tighter control, require manual approval for sending emails or do not allow the agent to auto-create the AGENTLAIR_API_KEY.
功能分析
Type: OpenClaw Skill Name: agentlair-email Version: 1.0.0 The agentlair-email skill provides a legitimate REST API interface for AI agents to send and receive emails via the agentlair.dev service. The SKILL.md file contains standard curl commands for API key generation, address claiming, and message handling, all of which align with the stated purpose of providing email infrastructure for autonomous agents. No evidence of data exfiltration, malicious execution, or harmful prompt injection was found.
能力评估
Purpose & Capability
Name/description match the required pieces: curl and an AgentLair API key; all declared requirements are directly related to claiming addresses, sending, and receiving email via agentlair.dev.
Instruction Scope
SKILL.md contains only API calls to agentlair.dev (auth key creation, claim, send, inbox, read, outbox). It does not instruct the agent to read local/system files or other credentials. Note: the instructions include an automated flow to create an API key and then use it — this is expected for the service but means an agent with invocation rights can autonomously create keys and send mail.
Install Mechanism
Instruction-only skill with no install spec and only a dependency on curl; nothing is downloaded or written to disk by the skill itself.
Credentials
Only a single service credential (AGENTLAIR_API_KEY) is declared as required, which is proportionate to the described functionality. No unrelated secrets or config paths are requested.
Persistence & Privilege
always:false (not force-included). Model invocation is allowed (default) which permits autonomous use of the API; this is expected for a communication/agent-identity skill but is a behavioral consideration for the user (see guidance).
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install agentlair-email
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /agentlair-email 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release: REST email for agents — claim @agentlair.dev addresses, send, receive, no SMTP/IMAP
元数据
Slug agentlair-email
版本 1.0.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 1
常见问题

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... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 131 次。

如何安装 Agentlair Email?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install agentlair-email」即可一键安装,无需额外配置。

Agentlair Email 是免费的吗?

是的,Agentlair Email 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Agentlair Email 支持哪些平台?

Agentlair Email 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(linux, macos, windows)。

谁开发了 Agentlair Email?

由 hawkaa(@hawkaa)开发并维护,当前版本 v1.0.0。

💬 留言讨论