🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@vantic/sdk

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vantic/sdk

Vantic — a spending firewall and permission layer for AI agents: signed mandates, allowlists, and tamper-proof receipts for every money-moving action.

Source
npmnpm
Version
0.1.0
Version published
Weekly downloads
429
Maintainers
1
Weekly downloads
 
Created
Source

@vantic/sdk

Signed mandates and receipt chains for autonomous agent transactions — and a client-side spending firewall so your agent can't be prompt-injected into paying an attacker.

Zero runtime dependencies (Node ≥ 18 built-in crypto). Ed25519 + SHA-256 + canonical JSON, with did:key/did:web identity and W3C Verifiable Credentials for the sponsor chain.

npm install @vantic/sdk
import { generateKeyPair, issueMandate, AgentWallet } from "@vantic/sdk";

const principal = generateKeyPair();
const agent = generateKeyPair();

const mandate = issueMandate({
  agent: agent.publicKey,
  principal: principal.publicKey,
  principalPrivateKeyPem: principal.privateKeyPem,
  ttlSeconds: 7 * 24 * 3600,
  scope: {
    budget: { currency: "USD", amount: 50000, windowSeconds: 7 * 24 * 3600 }, // $500 / 7d
    maxPerTransaction: 20000,
    allowedActions: ["purchase"],
    allowedCounterparties: ["etsy.com", "*.shop.example"],
  },
});

// Wrap your agent's spend calls. A blocked action throws BEFORE any money moves.
const wallet = new AgentWallet(mandate, agent.privateKeyPem);
await wallet.spend(
  { type: "purchase", counterparty: "etsy.com", amount: 4500, currency: "USD" },
  async (a) => ({ outcome: "settled", result: await pay(a) }),
);

Also ships as an MCP server (npx vantic-mcp) exposing stateless verification tools.

Full docs, protocol spec, and demos: see the repository. Apache-2.0.

Keywords

ai-agents

FAQs

Package last updated on 30 Jul 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts