In short.
The Mem0 plugin (@mem0/pi-agent-plugin) adds long-term memory to Pi Agent, an AI agent harness, so the agent can recall facts from earlier conversations in later sessions; it is for Pi Agent users and stores captured knowledge in Mem0’s cloud memory service. The page documents @mem0/pi-agent-plugin version 0.3.0, automatic fact capture, semantic recall, six commands and an agent-callable memory tool. Automatic capture and recall always use project scope, even when the configured default scope changes. Session memories do not expire automatically. Pricing, licence terms, recall quality and redaction effectiveness are unknown, and no software was executed.
Researched and written by an AI model and checked by a second AI model. How it works
Covers the complete selected page at [https://docs.mem0.ai/integrations/pi-agent], including installation, optional configuration, tool actions, commands, scoping restrictions, confirmation dialogs, the example, troubleshooting and the Sidekick availability notice. Linked pages, dashboards, repository contents and package files are excluded. Documented behavior was not executed or tested; pricing, licensing, cloud data guarantees and runtime quality remain unknown.
The overview
identity
Mem0’s Pi Agent integration is the installable package @mem0/pi-agent-plugin. Pi Agent is an AI agent harness linked at [https://pi.dev], and Mem0 Platform is Mem0’s hosted cloud memory service, which requires an account and an API key. It connects Pi Agent to Mem0 Platform so information extracted from conversations can persist between sessions. The selected documentation identifies package version 0.3.0 [https://docs.mem0.ai/integrations/pi-agent].
assessment
Its clearest use is recurring project work where a Pi Agent user repeatedly explains architecture, configuration decisions or working preferences. The documented combination of automatic recall and manual memory controls could reduce that repetition.
Fit depends on accepting cloud storage and project-wide automatic memory. The page provides concrete setup and configuration details, but does not establish capture accuracy, retrieval quality, latency or operational reliability.
users
The plugin serves existing Pi Agent users. Beginners need enough shell familiarity to configure an environment variable and install a package. Experienced developers get explicit memory operations, identity settings and scope controls.
Developers working across a monorepo should understand that its subdirectories share one project memory pool. Local-only storage and automatic session-only capture have no documented setup route on this page.
capabilities
The documentation describes automatic extraction of durable facts from user and assistant messages, automatic searches for relevant project memories before each agent turn, and six bundled skills that guide memory use.
The mem0_memory tool supports search with query, add with content, get_all, delete with memory_id, and delete_all. Actions accept a scope argument, subject to the documented restrictions on global access.
The six slash commands are /mem0-remember for verbatim storage without inference, /mem0-forget for searching and deleting, /mem0-search for semantic retrieval, /mem0-tour for browsing by category, /mem0-scope for changing the session’s default scope, and /mem0-status for connection health, identity and memory count. Sidekick is available only in the Claude Code plugin.
Using it
requirements
Setup requires Pi Agent, a Mem0 Platform account and an API key beginning with m0-. The documented route uses MEM0_API_KEY in the shell environment. Pi Agent is linked at [https://pi.dev], and Mem0 account access is linked at [https://app.mem0.ai].
The page does not specify minimum Pi or runtime versions, supported operating systems, hardware requirements, service quotas or offline behavior.
mechanism
According to the documentation, capture extracts and stores facts on each agent_end event, recall searches project memories before each agent turn, and memory guidance is appended to every turn. Captured knowledge is stored in Mem0’s cloud memory layer.
Project scope filters by user_id and app_id. The app_id comes from the git repository root, falling back to the working directory name outside git. Session scope adds run_id, derived from Pi’s session file path. Global scope filters by user_id alone and spans projects.
Automatic recall and capture always use project scope regardless of defaultScope; automatic writes omit run_id. Global tool operations require /mem0-scope global or defaultScope set to global in configuration. A model-supplied scope argument cannot enable global access alone. The page also states that empty or wildcard identities are rejected.
setup
The documented installation sequence is to make MEM0_API_KEY available in the shell, run pi install npm:@mem0/pi-agent-plugin, and start a new Pi session. The extension is described as loading automatically. Running /mem0-status is the suggested connection check; expected fields include user identity, detected project and memory count.
Optional configuration lives at ~/.pi/agent/mem0-config.json. Settings include apiKey, userId, autoCapture, defaultScope and searchThreshold. MEM0_API_KEY takes precedence over the configured key. The user identity defaults to MEM0_USER_ID or the string default; autoCapture defaults to true and defaultScope to project.
The default searchThreshold is 0.3 on a zero-to-one similarity scale. The page explicitly applies it to /mem0-search and /mem0-forget. Its effect on automatic recall is not established.
For a “No API key found” error, the page suggests running echo $MEM0_API_KEY and adding the key to the shell profile if the output is empty. If the extension does not load, check Pi startup output for errors. For a source checkout, the documented fallback is to run pnpm build, then pi -e ./dist/entry.js from the plugin directory.
example
The documentation illustrates a user stating a preference for dark mode and concise answers, then asking about those preferences in a later session. It describes automatic capture followed by later retrieval. Under default settings, automatic recall can find the memory only when the later session uses the same user ID and detected project. An explicit search after /mem0-scope global could also find it across projects because global scope filters by user_id alone.
For deliberate storage, /mem0-remember I prefer concise answers would use the documented verbatim-storage command. /mem0-search concise answers would request a semantic search. These are illustrative uses; no capture or retrieval result was observed.
Assessment & evidence
limitations
Selecting session as the default scope does not make automatic capture session-specific. Session-scoped memories have no automatic expiration. Monorepo subdirectories share project memory, so directory boundaries do not provide separate automatic memory pools.
Tool output is truncated to 200 lines or 50KB, which can limit how much retrieved information reaches the agent. The page specifically documents confirmation for /mem0-forget; confirmation behavior for every agent-callable mutation is not established.
The page says captured user and assistant text is redacted without a per-message character cutoff. It does not describe the redaction rules or demonstrate their effectiveness. Cloud retention, storage regions, outage handling and measured performance are unknown.
reasoning
Project scope makes shared repository knowledge available across sessions and monorepo subdirectories. The same design requires users to distinguish enduring project knowledge from temporary session context.
An inferred risk follows from capturing assistant messages: an incorrect assistant statement could become stored context. The page provides browsing and deletion controls, but no evidence that extracted facts are independently checked. Verbatim storage through /mem0-remember offers control over wording without establishing factual correctness.
alternatives
The page points to Mem0 integrations for Claude Code [https://docs.mem0.ai/integrations/claude-code] and OpenClaw [https://docs.mem0.ai/integrations/openclaw]. It explicitly places Sidekick in the Claude Code plugin. These are pointers for users of those environments; their linked documentation, pricing and comparative behavior are outside the selected evidence.
No local-storage alternative for this Pi Agent plugin is documented on the selected page.
evidence
The source is the complete Mem0 Pi Agent documentation page at [https://docs.mem0.ai/integrations/pi-agent]. Its captured HTML has SHA-256 abe2bd611e192408b0ecc65d1d0d79fd95517d8b4145101a807c265078bdec93.
The page supplies installation instructions, configuration defaults and descriptions of intended behavior. Its embedded copy of the same documentation provides no independent corroboration. Package implementation, independent measurements and runtime test results are absent. No software was installed or executed.
Access & freshness
costs
The page gives no plugin price, Mem0 subscription price, free allowance, billing units or usage limits. Requiring an account and API key does not establish whether a particular plan is free or paid. Setup cost, ongoing service cost and any additional model or API charges are unknown.
rights
The selected page does not state a licence for @mem0/pi-agent-plugin or provide reuse and redistribution terms for the package or documentation. Commercial-use and redistribution rights are unknown.
It also does not establish ownership terms for stored memories, service data-use terms, export rights or contractual deletion guarantees.
freshness
The page metadata reports modification on 2026-09-10, and the supplied capture is dated 2026-11-14 at 19:55:06.590 UTC. Version 0.3.0 is the package version stated by that page; the latest available release is unknown.
The documented installation command contains no version suffix, so it does not pin installation to 0.3.0. Compatibility with other releases is not assessed.
actions
Before adoption, confirm current pricing, package licence and cloud data terms. Choose a deliberate userId or MEM0_USER_ID, then use /mem0-status to inspect the identity and detected project. Use /mem0-tour project to inspect stored project knowledge.
Check cross-session recall with harmless information under the same project identity before depending on it. Set autoCapture to false if information should only be saved deliberately. Use explicit session-scoped operations for session-specific memories, remembering that they do not expire automatically and that changing defaultScope does not change automatic recall or capture.
