Pensyve Documentation

Pensyve is a universal memory runtime for AI agents. Store, recall, and manage episodic, semantic, and procedural memories with 8-signal retrieval, FSRS-based decay, multimodal embeddings, and LLM-powered extraction.

Open source (Apache 2.0) with a managed cloud service. Most developers are up and running in under 5 minutes.

Quickstarts

Pick your integration and start remembering.

  • Python — PyO3 native module, fastest path
  • TypeScript — HTTP client SDK with retry and timeout
  • REST API — FastAPI server, language-agnostic
  • Go — HTTP client with context.Context
  • MCP — Stdio transport for Claude, Cursor, and other MCP hosts
  • Claude Code — Persistent memory plugin for Claude Code
  • OpenClaw — Tool adapter for OpenClaw/OpenHands agents
  • CLIpensyve recall, pensyve remember from your terminal

Key Concepts

Namespaces provide top-level isolation. Each namespace gets its own storage, embeddings, and graph — use them to separate projects, environments, or tenants.

Entities represent the actors in your system: agents, users, teams, or tools. Every memory belongs to an entity.

Episodes are bounded interaction sequences (like a conversation turn or tool call chain). Messages within an episode share context and have a configurable TTL.

Memories come in three types: episodic (what happened), semantic (subject-predicate-object knowledge triples with temporal validity), and procedural (Bayesian action-outcome reliability tracking).

Under the Hood

Pensyve Cloud

  • Overview — managed service, dashboard, API keys
  • Pricing — three-tier pay-as-you-go: $0.002/op standard, $0.005/op multimodal, $0.01/op extraction

Integrations

Pensyve plugs into the tools and frameworks you already use.

Agent Frameworks

IntegrationLanguageTypeSource
LangChainPythonTool adapterintegrations/langchain/
LangChain.jsTypeScriptTool adapterintegrations/langchain-ts/
CrewAIPythonTool adapterintegrations/crewai/
AutoGenPythonTool adapterintegrations/autogen/
OpenClaw / OpenHandsTypeScriptPluginintegrations/openclaw-plugin/

Coding Assistants

IntegrationProtocolSource
Claude CodePlugin (hooks, commands, skills, agents)integrations/claude-code/
CursorMCP (stdio)integrations/cursor/
ClineMCP (stdio)integrations/cline/
WindsurfMCP (stdio)integrations/windsurf/
OpenCodePluginintegrations/opencode-plugin/
VS CodeExtension (sidebar + commands)integrations/vscode/
VS Code CopilotChat participantintegrations/vscode-copilot/

SDKs & Protocol

SDKLanguageInstall
Python SDKPythonpip install pensyve
TypeScript SDKTypeScriptbun add pensyve
Go SDKGogo get github.com/major7apps/pensyve/pensyve-go
REST APIAnyHTTP — no SDK required
MCP ServerAny MCP clientcargo install pensyve-mcp
CLITerminalcargo install pensyve-cli
WASMBrowser / Edgepensyve-wasm crate

All integrations share a common client layer (integrations/shared/) and the same Pensyve API — swap one for another without changing your memory data.