AgentMem
Local-first memory infrastructure for AI agents. AgentMem gives tools like Claude, Codex, Gemini, OpenClaw, Hermes, local coding agents and autonomous scripts a structured way to persist memory between runs.
Instead of losing context every session or scattering state across JSON files, temp folders, prompts, and shell history, AgentMem provides a clean shared memory layer.
Why AgentMem Exists
Most AI tools today are stateless.
That means they repeatedly need to rediscover:
- what project this is
- where files live
- coding conventions
- current task status
- prior fixes
- known bugs
- open decisions
- team notes
That wastes:
- tokens
- time
- API cost
- focus
- context window space
AgentMem fixes that.
Core Benefits
Persistent Memory
Store useful project context between sessions.
Local-First
Your memory stays on your machine.
Fast CLI
Simple commands that agents and humans can both use.
Structured Namespaces
Organize memory cleanly.
agent/claude/current_task
project/demo/stack
repo/build_command
bugs/auth/login
######################################
Installation + Setup
######################################
# install globally
# verify install
# go to your project
# initialize project memory and index codebase
# use re-index after changes to codebase
# store memory
# read memory
# list everything
######################################
Examples
######################################
cd my-nextjs-app
agentmem init agentmem set repo/stack "Next.js + Supabase" agentmem set project/current_goal "Launch payments" agentmem set agent/claude/current_task "Fix checkout bug" agentmem get project/current_goal