Siwa Magic

Magic server wallet integration for SIWA authentication.

43 stars 12 forksOther

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add builders-garden/siwa --skill siwa-magic
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/magic ~/.claude/skills/siwa-magic

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 Magic Signer

Sign SIWA messages using Magic server-side wallets. Keys are held in a Trusted Execution Environment (TEE) — the agent never touches them.

## Install

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

No additional SDK needed — the Magic signer calls the Magic Express API directly over HTTP.

## Create Signer

```typescript
import { createMagicSiwaSigner } from "@buildersgarden/siwa/signer";

const signer = await createMagicSiwaSigner({
  secretKey: process.env.MAGIC_SECRET_KEY!,
  jwt: agentJwt,           // JWT from your OIDC provider
  providerId: process.env.MAGIC_PROVIDER_ID!,
});
```

The signer calls `POST /v1/wallet` on creation to fetch (or create) the wallet address. This validates credentials and caches the address for subsequent signing calls.

## Prerequisites

You need three things:

1. **Magic Secret Key** — from your Magic dashboard
2. **Identity Provider ID** — register a provider with Magic's Express API (see below)
3. **JWT** — a valid token from that provider, identifying the agent

The JWT maps to an identity in Magic, and each identity has a wallet. No wallet IDs needed — wallet lookup is handled automatically via the JWT.

### Setting Up an Identity Provider

Magic needs to verify the JWTs your agents present. You register an OIDC-compatible identity provider that tells Magic where to find your public keys.

**Option A: Self-signed JWTs (lowest friction)**
Read the full skill on GitHub

Details

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

FAQ

What does the Siwa Magic skill do?

Magic server wallet integration for SIWA authentication.

How do I install the Siwa Magic skill?

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

Is Siwa Magic popular?

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

Related skills

Browse the most popular Claude skills, all other skills, or write your own with the skills generator.