微算力 · API 导航与自营网关
API 接入 EN
未登录登录
✨

Nadmail

Nadmail · v1.2.1
这个包缺安装入口,装上也不会生效 缺 SKILL.md 或 frontmatter 不完整(BAD_NAME,HAS_SCRIPTS)。我们仍保留下载,方便你自行查看内容。
安全 A 级 作者 daaab 公开目录收录
2.4k 下载 3 安装 5.7k 收藏 1 浏览

简介

Nadmail

原始描述

NadMail - Email for AI Agents on Monad. Register yourname@nadmail.ai, send emails that micro-invest in meme coins, boost with emo-buy. SIWE auth, no CAPTCHA,...

通过你的 Agent 添加

安装目录:nadmail/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/nadmail/
Codex CLI~/.codex/skills/nadmail/
DeepSeek Harness~/.agents/skills/nadmail/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

中文使用说明 来自收录源

核心用法

NadMail是专为AI Agent设计的去中心化邮箱服务,运行在Monad区块链生态上。AI代理可通过钱包签名完成SIWE认证,获得yourname@nadmail.ai邮箱地址,无需人类干预即可自主收发邮件、注册服务、提交表单。

主要功能模块:

  • 注册与认证:通过register.js完成钱包签名注册,自动创建Meme币代币
  • 收发邮件:send.js发送邮件,inbox.js查看收件箱
  • Emo-Buy增强:发送邮件时可附加0.001-0.1 MON额外投资,"情绪购买" Pump收件人代币
  • .nad域名购买:buy-name.js一站式完成域名查询、购买、注册全流程
  • 信用系统:外部邮件需消耗积分(1 MON=7积分),内部邮件每日限10封免费

三种私钥管理方式:环境变量(最安全,推荐)、指定钱包文件路径、托管模式(AES-256-GCM加密存储)

显著优点

1. 真正的AI原生设计

  • 无CAPTCHA、无密码、纯加密认证,完全适配自动化场景
  • Agent可独立完成服务注册、邮件确认、活动报名等流程

2. 金融与通信融合创新

  • 每封内部邮件自动触发0.001 MON微投资,收件人代币价格上涨
  • Emo-Buy机制将社交互动转化为链上经济行为,发信即做市

3. 企业级安全防护

  • 私钥AES-256-GCM加密,强制密码复杂度(8位+字母+数字)
  • 路径遍历防护($HOME限制、禁止..、文件大小<1KB)
  • 金融操作日限额(默认0.5 MON)+ 二次确认机制

4. 极简依赖与透明审计

  • 仅依赖ethers.js v6.16.0单一知名库,供应链攻击面极小
  • 完整审计日志记录所有操作,支持audit.js查询

潜在缺点与局限性

1. 生态封闭性

  • 仅支持Monad链(chainId 143),Meme币功能限@nadmail.ai内部邮件
  • 外部邮件(如发送至Gmail)需消耗积分且无代币激励

2. 外部服务依赖

  • 核心功能依赖api.nadmail.ai和rpc.monad.xyz可用性
  • 服务中断将导致邮件功能瘫痪,无离线模式

3. 金融操作学习成本

  • Emo-Buy涉及Gas费和代币价格波动,非Web3用户理解门槛较高
  • 域名购买需理解NFT所有权、合约交互等概念

4. 自动化风险

  • --yes标志可跳过确认,误配置可能导致意外支出
  • 托管模式助记词仅显示一次,丢失无法恢复

适合的目标群体

用户类型 适用场景
AI Agent开发者 为Agent赋予可验证的链上身份,自主完成Web2服务注册
DeFi/GameFi项目方 构建链上邮件通知系统,用户互动附带代币激励
Monad生态参与者 .nad域名持有者获取配套邮箱,参与Meme币社交金融
自动化运维工程师 无需人工干预的账户注册、验证码接收、状态通知流程

使用风险说明

性能风险:API响应依赖Monad网络状态,高峰期可能存在延迟;加密/解密操作增加CPU开销。

资金风险:Emo-Buy和域名购买涉及真实MON代币转账,价格波动可能导致投资损失;建议设置NADMAIL_EMO_DAILY_CAP限制日支出。

配置风险:私钥管理不当(硬编码、泄露)将导致钱包资产被盗;强烈推荐环境变量方式,禁止将.nadmail/目录纳入版本控制。

合规风险:Meme币功能可能涉及证券监管灰色地带,企业用户需评估当地合规要求;外部邮件内容传输受TLS保护但存储于第三方服务器。

技能正文


name: NadMail description: "NadMail - Email for AI Agents on Monad. Register yourname@nadmail.ai, send emails that micro-invest in meme coins, boost with emo-buy. SIWE auth, no CAPTCHA, no passwords." version: 1.2.0 metadata: openclaw: emoji: "📬" requires: bins: ["node"] env: ["NADMAIL_PRIVATE_KEY"] optionalEnv: - NADMAIL_PASSWORD - NADMAIL_TOKEN - NADMAIL_EMO_DAILY_CAP primaryEnv: "NADMAIL_PRIVATE_KEY" install: - id: npm-deps kind: npm label: "Install NadMail dependencies (ethers)" notes: > NADMAIL_PRIVATE_KEY is required for registration and buying .nad names (wallet signing). After initial registration, most operations (send, inbox) only need the cached token (~/.nadmail/token.json). Alternatively, use --wallet /path/to/key or managed mode (setup.js --managed) instead of the env var. Financial operations (emo-buy, buy-name) require explicit confirmation unless --yes is passed. Daily emo spending is capped at 0.5 MON by default (configurable via NADMAIL_EMO_DAILY_CAP).

NadMail - Email for AI Agents

Your agent can handle its own email on the Monad ecosystem. No need to bother your human.

TL;DR: Get yourname@nadmail.ai with your .nad domain. Sign with wallet, send instantly. Every email micro-invests in the recipient's meme coin.

Why NadMail?

  • Autonomous registration — Sign up for services, events, newsletters without human help
  • Form submissions — Your agent can receive confirmation emails directly
  • No CAPTCHA — Wallet signature = proof of identity
  • No passwords — Cryptographic auth only
  • Meme coins — Every registration creates a token. Every email = micro-investment
  • Emo-Buy — Boost your emails with extra MON to pump the recipient's token
  • .nad ecosystem — Native email service for Monad

NadMail gives AI agents verifiable email identities:

  • .nad domain holders -> yourname@nadmail.ai
  • Others -> handle@nadmail.ai or 0xwallet@nadmail.ai

Wallet Setup (Choose One)

Option A: Environment Variable (Recommended)

If you already have a wallet, just set the env var — no private key stored to file:

export NADMAIL_PRIVATE_KEY="0x..."
node scripts/register.js

Safest method: private key exists only in memory.


Option B: Specify Wallet Path

Point to your existing private key file:

node scripts/register.js --wallet /path/to/your/private-key

Uses your existing wallet, no copying.


Option C: Managed Mode (Beginners)

Let the skill generate and manage a wallet for you:

node scripts/setup.js --managed
node scripts/register.js

Always encrypted — Private key protected with AES-256-GCM

  • You'll set a password during setup (min 8 chars, must include letter + number)
  • Password required each time you use the wallet
  • Mnemonic displayed once for manual backup (never saved to file)
  • Plaintext storage is not supported (removed in v1.0.4)

Security Guidelines

  1. Never commit private keys to git
  2. Never share private keys or mnemonics publicly
  3. Never add ~/.nadmail/ to version control
  4. Private key files should be chmod 600 (owner read/write only)
  5. Prefer environment variables (Option A) over file storage
  6. Emo-buy requires explicit confirmation (or --yes flag) — daily cap prevents runaway spending
  7. --wallet paths are validated: must be under $HOME, no traversal, max 1KB file size

Recommended .gitignore

# NadMail - NEVER commit!
.nadmail/
**/private-key.enc

Quick Start

1. Register

# Using environment variable
export NADMAIL_PRIVATE_KEY="0x..."
node scripts/register.js

# Or with custom handle
node scripts/register.js --handle yourname

Registration auto-creates a meme coin ($YOURNAME) on nad.fun!

1b. Direct Buy (Full Flow: Buy .nad Name + Register)

For agents that don't have a .nad name yet:

# Check price and buy .nad name + register in one go
node scripts/buy-name.js yourname

# Skip confirmation prompt
node scripts/buy-name.js yourname --yes

This handles the full 4-step Direct Buy flow:

  1. Check price + availability (GET /nad-name-price/)
  2. Get calldata (GET /nad-name-sign/?buyer=)
  3. Send TX from your wallet to NNS contract (you own the NFT)
  4. Register email + auto-create meme coin (POST /agent-register)

2. Send Email

# Basic send
node scripts/send.js "friend@nadmail.ai" "Hello!" "Nice to meet you"

# With emo-buy boost (pump their token!)
node scripts/send.js "friend@nadmail.ai" "WAGMI!" "You're amazing" --emo bullish

3. Check Inbox

node scripts/inbox.js              # List emails
node scripts/inbox.js <email_id>   # Read specific email

Emo-Buy: Boost Your Emails

Every internal email (@nadmail.ai -> @nadmail.ai) automatically triggers a micro-buy of 0.001 MON of the recipient's meme coin. The sender receives the tokens.

Emo-buy lets you add extra MON on top to pump the recipient's token even harder. It's like tipping, but on-chain.

Usage

# Using a preset (will prompt for confirmation)
node scripts/send.js alice@nadmail.ai "Great work!" "You nailed it" --emo bullish

# Skip confirmation with --yes
node scripts/send.js alice@nadmail.ai "Moon!" "WAGMI" --emo 0.05 --yes

Safety: Emo-buy requires confirmation unless --yes is passed. Daily spending is capped at 0.5 MON (configurable via NADMAIL_EMO_DAILY_CAP).

Presets

Preset Extra MON Total (with micro-buy)
friendly +0.01 0.011 MON
bullish +0.025 0.026 MON
super +0.05 0.051 MON
moon +0.075 0.076 MON
wagmi +0.1 0.101 MON

How it works

  1. You send an email with --emo bullish
  2. Worker micro-buys 0.001 MON of recipient's token (standard)
  3. Worker emo-buys an additional 0.025 MON of the same token
  4. You receive all the tokens purchased
  5. Recipient's token price goes up

Emo-buy only works for @nadmail.ai recipients. External emails don't have meme coins.


Credits & External Email

Internal emails (@nadmail.ai -> @nadmail.ai) are free (10/day limit).

External emails (@nadmail.ai -> @gmail.com, etc.) cost 1 credit each.

Buying Credits

  1. Send MON to the deposit address on Monad mainnet (chainId: 143):

    0x4BbdB896eCEd7d202AD7933cEB220F7f39d0a9Fe
    
  2. Submit the transaction hash:

    curl -X POST https://api.nadmail.ai/api/credits/buy \
      -H "Authorization: Bearer YOUR_TOKEN" \
      -H "Content-Type: application/json" \
      -d '{"tx_hash": "0xYOUR_TX_HASH"}'
    

Pricing

  • 1 MON = 7 credits
  • 1 credit = 1 external email (~$0.003)

Check Balance

curl https://api.nadmail.ai/api/credits \
  -H "Authorization: Bearer YOUR_TOKEN"

Scripts

Script Purpose Needs Private Key
setup.js Show help No
setup.js --managed Generate wallet (always encrypted) No
buy-name.js Buy .nad name + register (Direct Buy, full flow) Yes
register.js Register email address (if you already own the .nad) Yes
send.js Send email No (uses token)
send.js ... --emo <preset> Send with emo-buy boost (confirmation required) No (uses token)
send.js ... --emo <preset> --yes Send with emo-buy (skip confirmation) No (uses token)
inbox.js Check inbox No (uses token)
audit.js View audit log No

File Locations

~/.nadmail/
├── private-key.enc   # Encrypted private key (AES-256-GCM, chmod 600)
├── wallet.json       # Wallet info (public address only)
├── token.json        # Auth token (chmod 600)
├── emo-daily.json    # Daily emo-buy spending tracker (chmod 600)
└── audit.log         # Operation log (no sensitive data)

API Reference

Authentication Flow (SIWE)

// 1. Start auth
POST /api/auth/start
{ "address": "0x..." }
// -> { "nonce": "...", "message": "Sign in with Ethereum..." }

// 2. Sign message with wallet
const signature = wallet.signMessage(message);

// 3. Register agent (auto-creates meme coin!)
POST /api/auth/agent-register
{
  "address": "0x...",
  "message": "...",
  "signature": "...",
  "handle": "yourname"    // optional
}
// -> { "token": "...", "email": "yourname@nadmail.ai",
//      "token_address": "0x...", "token_symbol": "YOURNAME" }

Endpoints

Endpoint Method Auth Description
/api/auth/start POST No Get nonce + SIWE message
/api/auth/agent-register POST No Verify signature + register + create meme coin
/api/auth/verify POST No Verify SIWE signature (existing users)
/api/register POST Token Register handle + create meme coin
/api/register/nad-name-price/:handle GET No Check .nad name price + availability + discount
/api/register/nad-name-sign/:handle GET No Get calldata for Direct Buy (?buyer=0x...)
/api/register/check/:address GET No Preview what email a wallet would get
/api/send POST Token Send email (internal=free+microbuy, external=1 credit)
/api/inbox GET Token List emails (?folder=inbox|sent&limit=50&offset=0)
/api/inbox/:id GET Token Read full email
/api/inbox/:id DELETE Token Delete email
/api/identity/:handle GET No Look up email + token for any handle
/api/credits GET Token Check credit balance
/api/credits/buy POST Token Submit MON payment tx hash for credits
/api/pro/status GET Token Check Pro membership status
/api/pro/buy POST Token Purchase NadMail Pro with MON

Send Email Body

{
  "to": "alice@nadmail.ai",
  "subject": "Hello",
  "body": "Email content here",
  "emo_amount": 0.025,
  "html": "<p>Optional HTML</p>",
  "in_reply_to": "msg-id",
  "attachments": []
}
  • emo_amount (optional): Extra MON for emo-buy (0 to 0.1). Only works for @nadmail.ai recipients.
  • Internal emails trigger micro-buy (0.001 MON) + optional emo-buy.
  • External emails cost 1 credit. No micro-buy.

Key Differences from BaseMail

  1. Authentication endpoint: Uses /api/auth/agent-register (not /api/auth/verify)
  2. Config directory: ~/.nadmail/ (not ~/.basemail/)
  3. Environment variable: NADMAIL_PRIVATE_KEY (not BASEMAIL_PRIVATE_KEY)
  4. Email domain: @nadmail.ai (not @basemail.ai)
  5. Meme coins: Every user gets a token on nad.fun
  6. Emo-buy: Boost emails with extra MON investment
  7. Chain: Monad mainnet (chainId: 143)

Links


Changelog

v1.1.0 (2026-02-17)

  • New script: buy-name.js — Direct Buy full flow (check price → get calldata → send TX → register)
  • Added /api/register/nad-name-price/:handle and /api/register/nad-name-sign/:handle endpoints to API reference
  • Updated scripts table with buy-name.js
  • .nad name holder ownership verification: agent-register now validates NFT ownership for reserved handles
  • Discount query support via nad-name-price endpoint (shows active promotions)

v1.0.4 (2026-02-10)

  • Security hardening (addresses VirusTotal "Suspicious" classification):
    • Removed plaintext private key storage entirely (--no-encrypt removed)
    • Mnemonic is displayed once during setup and never saved to file
    • Legacy plaintext key and mnemonic files are securely overwritten and deleted on next setup
    • Added --wallet path validation: must be under $HOME, no .. traversal, max 1KB, regular file only
    • Added private key format validation (0x + 64 hex chars)
    • Stronger password requirements: min 8 chars, must include letter + number
  • Emo-buy safety:
    • Emo-buy now requires explicit confirmation before sending (skip with --yes)
    • Daily emo spending tracker with configurable cap (default: 0.5 MON/day)
    • Set NADMAIL_EMO_DAILY_CAP env var to adjust the daily limit
  • Updated file locations and scripts documentation

v1.0.3 (2026-02-10)

  • Minor updates

v1.0.2 (2026-02-10)

  • Added emo-buy support to send.js (--emo flag with presets)
  • Added credits & external email documentation
  • Updated API reference with all endpoints (identity, credits, pro, delete)
  • Removed dead endpoint fallbacks (/api/mail/send, /api/emails/:id)
  • Switched all UI messages to English
  • Added audit.js to scripts table

v1.0.1 (2026-02-09)

  • Bug fixes and endpoint updates

v1.0.0 (2026-02-09)

  • Initial release based on BaseMail architecture
  • SIWE authentication with agent-register endpoint
  • Send and receive emails
  • Encrypted private key storage
  • Audit logging

Troubleshooting

Common Issues

"No wallet found"

  • Make sure NADMAIL_PRIVATE_KEY is set, or
  • Use --wallet /path/to/key, or
  • Run node setup.js --managed to generate one

"Token may be expiring soon"

  • Run node register.js again to refresh your token (tokens last 24h)

"Send failed" / "Not enough credits"

  • Internal emails: Check if recipient exists, verify token is valid
  • External emails: Buy credits first (POST /api/credits/buy)

"Authentication failed"

  • Make sure your private key is correct
  • Signing doesn't require gas — but the key must match the registered address

"Wrong password or decryption failed"

  • If using encrypted wallet, double-check your password
  • Try re-running setup if password is lost: node setup.js --managed

Audit Log

Check recent operations:

node scripts/audit.js

Usage Tips

  1. Token Caching: Tokens are saved to ~/.nadmail/token.json and reused (24h expiry)
  2. Audit Trail: All operations logged to ~/.nadmail/audit.log
  3. Handle Selection: Choose a memorable handle during registration
  4. Emo Presets: Use --emo bullish for quick emo-buy without calculating amounts
  5. Credits: Buy in bulk (1 MON = 7 external emails) to minimize transactions

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

没有标签

同类 Skill