@ai-passport-core/sdk
v0.3.1
Published
Lightweight SDK for AI Passport — user-owned identity and permissioned memory for AI apps (no CLI/MCP deps)
Maintainers
Readme
@ai-passport-core/sdk
Lightweight Node.js SDK for AI Passport — identity, grants, and memory-enriched export. No CLI or MCP dependencies.
Version: aligned with @ai-passport-core/cli (currently 0.3.1).
Install
npm install @ai-passport-core/sdkQuick start
import { Passport } from '@ai-passport-core/sdk';
const passport = await Passport.load();
const context = await passport.export('my-app');
// When grant includes memory namespaces, context.memory is populated (RFC 0007).Requires an existing passport (ai-passport init via the CLI, or Passport.create()).
vs @ai-passport-core/cli/sdk
| Package | Use when |
|---------|----------|
| @ai-passport-core/sdk | Embedding in apps — lighter deps |
| @ai-passport-core/cli/sdk | Same API; you already depend on the CLI |
Full API: SDK.md
MIT · Open source
