how to give claude agent memory across sessions
Set it up in 3 steps
- Install with npx claude-mem install command
- Sign in to provision a memory key
- Pick your provider like Anthropic or Gemini
Key points
- Automatically captures tool usage and observations
- Generates AI-compressed semantic summaries
- Reduces token costs by up to 10x with filtered search
- Supports Claude Code, Gemini, Copilot, and more
- Provides a 3-layer workflow for efficient memory retrieval
Sources
FAQ
What agents does Claude-Mem work with?
It works with Claude Code, Gemini, Copilot, OpenCode, and several other agent frameworks.
Does it save money on tokens?
Yes, it can save up to 10x on tokens by filtering context before fetching full details.
Video transcript (Hinglish)
AI agents ki sabse badi problem ab solve ho gayi hai. Har naye session mein Claude Code pichhla context bhool jaata hai. Isiliye GitHub par Claude-Mem aaya, jiske ab ek lakh se zyada stars hain. Ye aapke agent ka har kaam capture karta hai, aur AI se uski summary banata hai. Phir agle session mein wahi context khud inject kar deta hai. Samjho jaise aapke agent ki apni diary ho. Setup bas ek command hai, N P X Claude Mem install. Ye Claude Code, Codex, Gemini, Copilot aur OpenCode ke saath kaam karta hai. Aur search karte waqt lagbhag das guna kam tokens use karta hai. Comment karo MEMORY, main link DM kar dunga.