Siwa Server

Use this skill to implement server-side SIWA verification. For backends and APIs that need to authenticate ERC-8004 agents without signing capabilities.

43 stars 12 forksAI, LLMs & Agents

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add builders-garden/siwa --skill siwa-server
Manual install
git clone --depth 1 https://github.com/builders-garden/siwa.git /tmp/siwa
mkdir -p ~/.claude/skills
cp -r /tmp/siwa/packages/siwa-skill/server-side ~/.claude/skills/siwa-server

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# SIWA Server-Side Verification

This guide covers **server-side SIWA verification** for backends and APIs that need to authenticate agents. No wallet or signing required — only verification.

For full API reference and advanced options, see [https://siwa.id/docs](https://siwa.id/docs).

---

## Quick Start

### 1. Install

```bash
npm install @buildersgarden/siwa viem
```

### 2. Set Environment Variables

```typescript
import { parseSIWAMessage, verifySIWA, createClientResolver, parseChainId } from "@buildersgarden/siwa";

// Dynamic client resolver — supports all chains, no hardcoding needed
const resolver = createClientResolver();

async function verifyAgent(message: string, signature: string) {
  const fields = parseSIWAMessage(message);
  const chainId = parseChainId(fields.agentRegistry);
  const client = resolver.getClient(chainId!);

  const result = await verifySIWA(
    message,
    signature,
    "api.example.com",
    (nonce) => validateAndConsumeNonce(nonce),
    client,
  );

  if (!result.valid) {
    throw new Error(result.error);
  }

  return {
    address: result.address,
    agentId: result.agentId,
    verified: result.verified,  // "onchain" | "offline"
  };
}
```

---

## Framework Middleware

The SDK provides pre-built middleware that handles SIWA sign-in (nonce + verify), ERC-8128 request verification, receipts, and CORS — all in a few lines.

---

## Complete Server Implementation

### Express.js
Read the full skill on GitHub

Details

Skill name
siwa-server
Path
packages/siwa-skill/server-side/SKILL.md
License
MIT
Repo updated
29 April 2026

FAQ

What does the Siwa Server skill do?

Use this skill to implement server-side SIWA verification. For backends and APIs that need to authenticate ERC-8004 agents without signing capabilities.

How do I install the Siwa Server skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add builders-garden/siwa --skill siwa-server. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Siwa Server popular?

It lives in builders-garden/siwa, which has 43 GitHub stars and 12 forks.

Related skills

Siwa

43

builders-garden/siwa

SIWA (Sign-In With Agent) authentication for ERC-8004 registered agents.

AI, LLMs & Agents12

Siwa Circle

43

builders-garden/siwa

Circle developer-controlled wallet integration for SIWA authentication.

Software Development12

Siwa Keyring Proxy

43

builders-garden/siwa

Self-hosted keyring proxy signer with optional 2FA for secure key isolation.

Other12

Btpanel

43

aaPanel/btpanel-skills

宝塔面板 Skill,让 AI Agent 调用宝塔面板能力,管理网站、文件、数据库、Docker、计划任务及服务器环境,完成状态查询、故障排查和安全检查等日常运维操作;支持自动部署宝塔面板与 MCP 服务,并接入 Claude Code、Codex、Cursor、WorkBuddy 等 AI Agent。当用户需要通过 AI 管理服务器、安装宝塔面板或配置宝塔 MCP 服务时使用。

AI, LLMs & Agents

Claude Agent SDK

35

liangdabiao/claudesdk-skill

Claude Agent SDK framework guide for building AI-powered applications. Provides comprehensive API knowledge, architecture patterns, and code examples for both TypeScript and Python. Use when: (1) building projects with @anthropic-ai/claude-agent-sdk, (2) creating AI agents with tool use, hooks, subagents, or MCP servers, (3) implementing multi-turn conversations, streaming responses, or session management, (4) configuring permission modes, custom tools, or agent orchestration, (5) debugging or extending existing Claude Agent SDK code, (6) user mentions "agent sdk", "claude agent", "claude-agen

AI, LLMs & Agents

Remembering Conversations

43

obra/clank

Search previous Claude Code conversations for facts, patterns, decisions, and context using semantic or text search

AI, LLMs & Agents26

Browse the most popular Claude skills, all ai, llms & agents skills, or write your own with the skills generator.