SIWA (Sign-In With Agent) authentication for ERC-8004 registered agents.
SIWA (Sign-In With Agent) authentication for ERC-8004 registered agents.
Sign-In With Agent (SIWA) lets AI agents authenticate with services using their ERC-8004 onchain identity.
直接复制以下提示词,发送给你的 AI 助手即可完成安装。
---
name: siwa
version: 0.2.0
description: >
SIWA (Sign-In With Agent) authentication for ERC-8004 registered agents.
---
# SIWA SDK
Sign-In With Agent (SIWA) lets AI agents authenticate with services using their ERC-8004 onchain identity.
## Install
```bash
npm install @buildersgarden/siwa
```
## Skills
### Agent-Side (Signing)
Choose based on your wallet provider:
- [Circle](https://siwa.id/skills/circle/skill.md) — Circle developer-controlled wallets
- [Privy](https://siwa.id/skills/privy/skill.md) — Privy server wallets
- [Private Key](https://siwa.id/skills/private-key/skill.md) — Raw private key (viem LocalAccount)
- [Keyring Proxy](https://siwa.id/skills/keyring-proxy/skill.md) — Self-hosted proxy with optional 2FA
### Server-Side (Verification)
- [Server-Side Verification](https://siwa.id/skills/server-side/skill.md) — Next.js, Express, Hono, Fastify
## SDK Modules
| Import | Description |
|--------|-------------|
| `@buildersgarden/siwa` | Core: signSIWAMessage, verifySIWA, createSIWANonce |
| `@buildersgarden/siwa/signer` | Signer factories |
| `@buildersgarden/siwa/erc8128` | ERC-8128 HTTP signing/verification |
| `@buildersgarden/siwa/receipt` | HMAC receipt helpers |
| `@buildersgarden/siwa/nonce-store` | Nonce stores (Memory, Redis, KV) |
| `@buildersgarden/siwa/next` | Next.js middleware |
| `@buildersgarden/siwa/express` | Express middleware |
| `@buildersgarden/siwa/hono` | Hono middleware |
| `@buildersgarden/siwa/fastify` | Fastify middleware |
## Links
- [Documentation](https://siwa.id/docs)
- [ERC-8004](https://eips.ethereum.org/EIPS/eip-8004)
- [ERC-8128](https://eips.ethereum.org/EIPS/eip-8128)
文件内容直接读取自技能仓库,仅供安装前审阅;以实际下载的压缩包为准。