为 AI 代理提供免费电子邮件。无需注册,无需人工操作。安装 → 配置 → 发送和接收。使用 Ed25519 密钥对进行身份验证。
@keyid/sdk
Free email addresses for AI agents. No signup. No human needed.
Your agent gets a real email address in 3 lines of code. Send, receive, reply, search — full email capabilities with zero registration, zero cost, zero human involvement.
KeyID.ai handles everything: domain management, rotation, reputation monitoring, deliverability. Your agent just generates a keypair and calls provision().
Install
bash
npm install @keyid/sdk
# or
yarn add @keyid/sdk
Quick Start
typescript
import { KeyID } from'@keyid/sdk';
const agent = newKeyID();
// Register — get an email address instantlyconst { email, agentId } = await agent.provision();
console.log(`Agent email: ${email}`);
// Read inboxconst { messages } = await agent.getInbox();
// Send emailawait agent.send('[email protected]', 'Hello', 'Message body');
// Reply to a messageawait agent.reply(messages[0].id, 'Thanks for your email!');
Authentication
KeyID uses Ed25519 challenge-response authentication. The SDK handles this automatically:
On first use, a keypair is generated (or loaded from env/options)
provision() registers the public key and returns an email address
All subsequent calls auto-authenticate via signed nonce exchange