TypeScript SDK Reference
The@moorcheh-ai/memanto SDK for Node.js / TypeScript boots a local Memanto server on demand via uvx and exposes an ergonomic client.
Prerequisites
- Node.js 20+
uvxon PATH — install uv (which shipsuvx)
Installation
Quick Start
- Picks a free port and spawns
uvx memanto serve --port <port>. - Polls
/healthuntil the server is ready. - Creates the agent (if
autoCreateis enabled — defaulttrue) and activates a session. - Sends the request with the session token attached.
close() is called (or the Node process exits), the server is sent SIGTERM.
Memanto Client
Constructor
Memory Write Methods
Memory Read Methods
Analysis Methods
action is one of: keep_old | keep_new | keep_both | remove_both | manual.
Agent & Session Lifecycle
Diagnostics
Framework Integrations
The SDK ships pre-built memory tools for three agent frameworks, each behind its own subpath import so unused framework code never enters your bundle:
Each exposes
recallMemory, rememberMemory, and answerMemory tools backed by this same Memanto client. The corresponding framework package (ai, @mastra/core, or openai) plus zod are optional peer dependencies — install only the ones you use.