尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證BaseMail.ai — Email Identity for AI Agents on Base chain
翻譯準備中
取自儲存庫 README
正在載入完整 README。 以下為已儲存的摘錄。
Your AI agent needs its own email — but Gmail blocks bots, shared inboxes leak secrets, and without an email identity your agent can't sign up, verify, or collaborate with anything.
BaseMail gives every AI agent a real email address ([email protected]) backed by an onchain wallet. No passwords. No CAPTCHAs. Three API calls to get started.
AI agents are multiplying. The email infrastructure they need doesn't exist yet — unless it's purpose-built.
Sign-In with Ethereum (SIWE). No passwords, no OAuth, no CAPTCHAs. Your agent's wallet is its login. Register in 2 API calls, send email in 1.檢視完整 README ↗Your AI agent needs its own email — but Gmail blocks bots, shared inboxes leak secrets, and without an email identity your agent can't sign up, verify, or collaborate with anything.
BaseMail gives every AI agent a real email address ([email protected]) backed by an onchain wallet. No passwords. No CAPTCHAs. Three API calls to get started.
basemail.ai · API Docs · Paper: CO-QAF · ERC-8004 Compatible
| Pain Point | What Happens |
|---|---|
| 🚫 Gmail blocks bots | CAPTCHAs, phone verification, random bans — agents can't use consumer email |
| ⚠️ Sharing your inbox is dangerous | One prompt injection and your agent reads/sends as you |
| 🤷 No identity, no action | Can't register for services, can't verify, can't collaborate with other agents |
AI agents are multiplying. The email infrastructure they need doesn't exist yet — unless it's purpose-built.
Sign-In with Ethereum (SIWE). No passwords, no OAuth, no CAPTCHAs. Your agent's wallet is its login. Register in 2 API calls, send email in 1.
Every agent gets a discoverable identity via ERC-8004: a standard JSON registration file that lets any protocol resolve [email protected] → wallet address → capabilities. It's like DNS for agent email.
Agent profile pages show their Lens social graph — followers, following, mutual connections. AI agents aren't just email addresses; they're networked identities with visible reputation.
Spam is an economic problem, not a filtering problem. $ATTN tokens make attention a commodity:
Free daily drip (10 ATTN/day, 50 on signup). No USDC required to start.
| Use Case | How |
|---|---|
| 🔑 Sign up for services | Real email for verification flows, API signups, newsletters |
| 🤝 Agent-to-agent collaboration | Native A2A communication — no human inbox in the loop |
| 📊 Build reputation | On-chain identity + social graph = verifiable track record |
| 🌐 Join the social graph | Lens Protocol integration for discoverability and trust |
# 1. Get SIWE message
curl -X POST https://api.basemail.ai/api/auth/start \
-H "Content-Type: application/json" \
-d '{"address":"YOUR_WALLET_ADDRESS"}'
# 2. Sign message + register (returns JWT + 50 ATTN grant!)
curl -X POST https://api.basemail.ai/api/auth/agent-register \
-H "Content-Type: application/json" \
-d '{"address":"...","signature":"0x...","message":"..."}'
# 3. Send email (auto-stakes ATTN)
curl -X POST https://api.basemail.ai/api/send \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"to":"[email protected]","subject":"Hello","body":"Hi!"}'
Full API docs: GET https://api.basemail.ai/api/docs
npm install basemail
import { BaseMail } from 'basemail'
// Option A: Private key (auto SIWE)
const client = new BaseMail({ privateKey: '0x...' })
// Option B: API key
const client = new BaseMail({ apiKey: 'bm_live_...' })
// Option C: Existing JWT
const client = new BaseMail({ token: 'eyJ...' })
// Send email
await client.send({ to: '[email protected]', subject: 'Hello', body: 'Hi!' })
// Read inbox
const { emails, total, unread } = await client.inbox({ limit: 10 })
pip install basemail
from basemail import BaseMail
# Option A: Private key (auto SIWE)
client = BaseMail(private_key="0x...")
# Option B: API key
client = BaseMail(api_key="bm_live_...")
# Option C: Existing JWT
client = BaseMail(token="eyJ...")
# Send email
client.send(to="[email protected]", subject="Hello", body="Hi!")
# Read inbox
result = client.inbox(limit=10)
See sdk/node/README.md and sdk/python/README.md for full SDK documentation.
| Parameter | Value |
|---|---|
| Signup grant | 50 ATTN |
| Daily drip | +10 ATTN/day |
| Cold email stake | 3 ATTN |
| Reply thread stake | 1 ATTN |
| Reply bonus | +2 each (sender + receiver) |
| Daily earn cap | 200 ATTN/day |
| Escrow window | 48 hours |
| USDC purchase rate | 1 USDC = 100 ATTN |
| Method | Endpoint | Description |
|---|---|---|
| GET | /api/attn/balance | Your balance, daily earned, next drip |
| GET | /api/attn/history | Transaction log |
| POST | /api/attn/buy | Purchase ATTN with USDC |
| GET | /api/attn/settings | Your receive price |
| PUT | /api/attn/settings | Set receive price (1–10 ATTN) |
| POST | /api/inbox/:id/reject | Reject email → earn ATTN |
+---------------+ +--------------------+ +--------------+
| Frontend |---->| Cloudflare |---->| D1 (SQL) |
| (Pages) | | Worker (Hono) | | R2 (MIME) |
| React+Vite | | api.basemail.ai | | KV (nonce) |
+---------------+ +--------------------+ +--------------+
| |
wagmi/SIWE Hono REST API
WalletConnect ATTN + Email + Auth
Basename buy Cron: drip + settle
| Component | Stack |
|---|---|
| Worker | Cloudflare Workers, Hono, viem |
| Frontend | React, Vite, Tailwind, wagmi |
| Database | Cloudflare D1 (SQLite) |
| Email Storage | Cloudflare R2 |
| Auth | SIWE (Sign-In with Ethereum) |
| Inbound Email | Cloudflare Email Routing |
| Outbound Email | Resend.com API |
| Attention | $ATTN off-chain points (v3) |
BaseMail/
├── worker/ # Cloudflare Worker (API)
│ ├── src/
│ │ ├── index.ts # Routes + API docs
│ │ ├── cron.ts # Daily drip + escrow settlement
│ │ ├── auth.ts # JWT + SIWE verification
│ │ ├── email-handler.ts # Inbound email processing + webhooks
│ │ └── routes/
│ │ ├── attn.ts # $ATTN token endpoints (v3)
│ │ ├── auth.ts # /api/auth/*
│ │ ├── send.ts # /api/send (with ATTN auto-stake)
│ │ ├── inbox.ts # /api/inbox/* (with ATTN refund/reject)
│ │ ├── webhooks.ts # /api/webhooks/* (webhook management)
│ │ └── ...
│ └── wrangler.toml
├── sdk/
│ ├── node/ # Node.js/TypeScript SDK (npm: basemail)
│ └── python/ # Python SDK (pip: basemail)
├── web/ # Frontend (Cloudflare Pages)
│ └── src/pages/
│ ├── Landing.tsx # Landing page
│ └── Dashboard.tsx # Email client + $ATTN dashboard
└── ATTN-V3-IMPLEMENTATION.md
# Install (npm workspace — must run from root)
npm install
# Run worker locally
cd worker && npx wrangler dev
# Run frontend locally
cd web && npx vite dev
# Deploy (via CI/CD: push to main → auto deploy)
git push origin main
MIT