/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
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install agnic-agent-email - After installation, invoke the skill by name or use
/agnic-agent-email - Provide required inputs per the skill's parameter spec and get structured output
What is 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.... It is an AI Agent Skill for Claude Code / OpenClaw, with 76 downloads so far.
How do I install Agnic Agent Email?
Run "/install agnic-agent-email" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Agnic Agent Email free?
Yes, Agnic Agent Email is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Agnic Agent Email support?
Agnic Agent Email is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Agnic Agent Email?
It is built and maintained by Agnic.AI (@agnicpay-prog); the current version is v2.0.2.