agentleFS
dAAAbdAAAb/agent-skills/skills/basemail/SKILL.md

BaseMail

Skill2 starsChanged 9 months agoMITView on GitHub

πŸ“¬ BaseMail - Email for AI Agents. Give your agent a real email (yourname@basemail.ai). Register for services, submit forms, receive confirmations β€” without bothering your human. No CAPTCHA, no passwords, just wallet signature.

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.

  • β‰ˆ0

    Common Β· estimate

    Many files like this have a rule of this kind.

  • β‰ˆ3

    Distinctive Β· estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

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

    line 29
  2. Distinctive:

    Never: commit private keys to git

    line 78
  3. Very specific:

    Never: add ~/.basemail/ to version control

    line 80
  4. Distinctive:

    Prefer environment variables (Option A) over file storage

    line 82

β‰ˆ β€œCommon” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. β€œVery specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

πŸ“¬ BaseMail - Email for AI Agents

Your agent can handle its own email. No need to bother your human.

TL;DR: Get yourname@basemail.ai with your Basename. Sign with wallet, send instantly.

Why BaseMail?

  • 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

BaseMail gives AI agents verifiable email identities on Base chain:

  • ✨ Basename holders β†’ yourname@basemail.ai
  • πŸ”— Others β†’ 0xwallet@basemail.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 BASEMAIL_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

βœ… Default: Encrypted β€” Private key protected with AES-256-GCM

  • You'll set a password during setup
  • Password required each time you use the wallet
  • Mnemonic displayed once for manual backup (not auto-saved)

Unencrypted Storage (⚠️ Less Secure)

node scripts/setup.js --managed --no-encrypt

⚠️ Only use in trusted environments where you control machine access.


⚠️ Security Guidelines

  1. Never commit private keys to git
  2. Never share private keys or mnemonics publicly
  3. Never add ~/.basemail/ to version control
  4. Private key files should be chmod 600 (owner read/write only)
  5. Prefer environment variables (Option A) over file storage

Recommended .gitignore

# BaseMail - NEVER commit!
.basemail/
**/private-key
**/private-key.enc
*.mnemonic
*.mnemonic.backup

πŸš€ Quick Start

1️⃣ Register

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

# Or with Basename
node scripts/register.js --basename yourname.base.eth

2️⃣ Send Email

node scripts/send.js "friend@basemail.ai" "Hello!" "Nice to meet you 🦞"

3️⃣ Check Inbox

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

πŸ“¦ Scripts

ScriptPurposeNeeds Private Key
setup.jsShow help❌
setup.js --managedGenerate wallet (encrypted by default)❌
setup.js --managed --no-encryptGenerate wallet (plaintext)❌
register.jsRegister email addressβœ…
send.jsSend email❌ (uses token)
inbox.jsCheck inbox❌ (uses token)

πŸ“ File Locations

~/.basemail/
β”œβ”€β”€ private-key.enc   # Encrypted private key (default, chmod 600)
β”œβ”€β”€ private-key       # Plaintext key (--no-encrypt only, chmod 600)
β”œβ”€β”€ wallet.json       # Wallet info (public address only)
β”œβ”€β”€ token.json        # Auth token (chmod 600)
β”œβ”€β”€ mnemonic.backup   # Only if user chooses to save (chmod 400)
└── audit.log         # Operation log (no sensitive data)

🎨 Get a Pretty Email

Want yourname@basemail.ai instead of 0x...@basemail.ai?

  1. Get a Basename at https://www.base.org/names
  2. Run: node scripts/register.js --basename yourname.base.eth

πŸ”§ API Reference

EndpointMethodPurpose
/api/auth/startPOSTStart SIWE auth
/api/auth/verifyPOSTVerify wallet signature
/api/registerPOSTRegister email
/api/register/upgradePUTUpgrade to Basename
/api/sendPOSTSend email
/api/inboxGETList inbox
/api/inbox/:idGETRead email content

Full docs: https://api.basemail.ai/api/docs


🌐 Links


πŸ“ Changelog

v1.4.0 (2026-02-08)

  • ✨ Better branding and descriptions
  • πŸ“ Full English documentation

v1.1.0 (2026-02-08)

  • πŸ” Security: opt-in private key storage
  • ✨ Support env var, path, auto-detect
  • πŸ”’ Encrypted storage option (--encrypt)
  • πŸ“Š Audit logging

v1.6.0 (Security Update)

  • πŸ” Breaking: --managed now encrypts by default (use --no-encrypt for plaintext)
  • πŸ” Removed auto-detection of external wallet paths (security improvement)
  • πŸ” Mnemonic no longer auto-saved; displayed once for manual backup
  • πŸ“ Updated documentation for clarity

v1.0.0

  • πŸŽ‰ Initial release

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.