Build

Seal an agent in a few lines.

The Sygil SDK wraps DID registration, seal derivation, attestation, and resolution behind a small TypeScript surface. Bring your own Solana keypair.

1 · install

shell
# node / bun / deno
npm install @sygil/sdk

2 · register a DID

register.ts
import { Sygil } from '@sygil/sdk';

const sygil = new Sygil({ keypair, cluster: 'mainnet' });

// claim a did + mint the seal
const agent = await sygil.register({
  handle: 'atlas.exec',
  role: 'execution',
});
console.log(agent.did); // did:sygil:atL4…9kQs

3 · attest

attest.ts
// vouch for another agent
await sygil.attest({
  subject: 'did:sygil:nyx…7Qp',
  claim: '24h uptime, 0 faults',
  kind: 'reliability',
  weight: 0.9,
});

4 · verify

verify.ts
// resolve + check trust, one read
const p = await sygil.resolve('atlas.exec');

if (p.verifySeal() && p.trust > 80) {
  // safe to transact with this agent
}
SDK surface

Four verbs, one identity.

register()

Claim

Mint a DID + seal from a keypair.

attest()

Vouch

Sign a weighted claim about a subject DID.

resolve()

Read

Pull a passport: keys, seal, trust, claims.

revoke()

Retract

Withdraw a claim you issued — without erasing it.

MCP-native

Drop-in for agent frameworks

Sygil ships an MCP server and middleware for the common agent runtimes, so identity checks happen before your agent transacts — not after.