About siwa
SIWA SDK helps developers authenticate AI agents to services using ERC-8004 onchain identities. It includes signing and verification utilities, nonce stores, and middleware for several server frameworks.
Key features
- 01Authentication with ERC-8004 identities
- 02Sign and verify SIWA messages
- 03Create and store nonces
- 04Middleware for multiple server frameworks
Use cases
- 01Let agents sign in with onchain identities
- 02Verify requests in Next.js or Express
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ bankrbot/ skills --skill siwaAfter installing, type/siwain Claude Code to confirm it loaded.
Bundled files
References and scripts installed along with SKILL.md.
catalog.jsonreferences/bankr-signer.mdserver-side.mdDetails
From the project READMESIWA SDK
Sign-In With Agent (SIWA) lets AI agents authenticate with services using their ERC-8004 onchain identity.
Install
npm install @buildersgarden/siwa
Skills
Agent-Side (Signing)
Choose based on your wallet provider:
- Bankr — Bankr Agent API wallets
Server-Side (Verification)
- Server-Side Verification — 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
Comments
Markdown supported