/install agnic-agent-email
Agent Email
Each agent gets a unique email address in the format agent-\x3Cid>@agnic.ai. Use npx agnic@latest email commands to manage it.
Authentication
Run npx agnic@latest status --json to verify. If not authenticated:
- Headless (CI/server/agent): Set
AGNIC_TOKENenv var or pass--token \x3Ctoken> - Interactive (has browser): Run
npx agnic@latest auth login
See the authenticate-wallet skill for details.
Commands
Set up email alias
npx agnic@latest email setup --display-name "My Agent" --json
Check email address
npx agnic@latest email address --json
Check inbox
npx agnic@latest email inbox --limit 10 --json
Send email
npx agnic@latest email send --to \x3Caddress> --subject "\x3Csubject>" --body "\x3Cbody>"
Reply to a message
npx agnic@latest email reply --message-id \x3Cid> --body "\x3Creply text>"
Input Validation
Before constructing commands, validate user-provided values:
- --to: Must be a valid email address. Reject if it contains spaces, semicolons, pipes, or backticks.
- --subject: Single-quote the value. Escape internal single quotes.
- --body: Single-quote the value. Escape internal single quotes.
- --message-id: Must be alphanumeric or UUID format.
Do not pass unvalidated user input into the command.
Important Notes
- Emails are stored with 30-day retention
- Display name can be set once during setup
- Inbox returns most recent messages first
Prerequisites
- Must be authenticated (
npx agnic@latest statusto check) - Agent identity must exist (created automatically during sign-up)
Error Handling
Common errors:
- "Not authenticated" -- Run
npx agnic@latest auth loginor setAGNIC_TOKEN - "No email alias found" -- Run
npx agnic@latest email setupfirst - "Agent not found" -- The user may not have an agent registered; sign up at app.agnic.ai
- "Message not found" -- Check the message ID with
email inboxfirst
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install agnic-agent-email - 安装完成后,直接呼叫该 Skill 的名称或使用
/agnic-agent-email触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Agnic Agent Email 是什么?
Send and receive email as your AI agent. Use when the user wants to check inbox, send email, reply to messages, set up an email alias, or manage agent email.... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 76 次。
如何安装 Agnic Agent Email?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install agnic-agent-email」即可一键安装,无需额外配置。
Agnic Agent Email 是免费的吗?
是的,Agnic Agent Email 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Agnic Agent Email 支持哪些平台?
Agnic Agent Email 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Agnic Agent Email?
由 Agnic.AI(@agnicpay-prog)开发并维护,当前版本 v2.0.2。