mcpField
S
siwa

siwa

github.com/bankrbotSecurity1.2k98 installsUpdated 5d ago
Repository

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

  1. 01Authentication with ERC-8004 identities
  2. 02Sign and verify SIWA messages
  3. 03Create and store nonces
  4. 04Middleware for multiple server frameworks

Use cases

  1. 01Let agents sign in with onchain identities
  2. 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 siwa

After installing, type/siwain Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

catalog.json
references/
bankr-signer.md
server-side.md

Details

From the project README

SIWA 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)

SDK Modules

ImportDescription
@buildersgarden/siwaCore: signSIWAMessage, verifySIWA, createSIWANonce
@buildersgarden/siwa/signerSigner factories
@buildersgarden/siwa/erc8128ERC-8128 HTTP signing/verification
@buildersgarden/siwa/receiptHMAC receipt helpers
@buildersgarden/siwa/nonce-storeNonce stores (Memory, Redis, KV)
@buildersgarden/siwa/nextNext.js middleware
@buildersgarden/siwa/expressExpress middleware
@buildersgarden/siwa/honoHono middleware
@buildersgarden/siwa/fastifyFastify middleware

Links

Comments

Markdown supported