A three-tier persistent memory architecture (short-term, SQLite-backed entity, and vector-based episodic memory) that persists knowledge across all your AI agent projects.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install agent-long-term-memory
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install agent-long-term-memory using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
Agent Long-Term Memory is a comprehensive memory subsystem designed for AI agents, providing a robust solution for persisting state and user profiles. Written to work globally across multiple projects via ~/.codex/agent_memory/, it introduces a hierarchical cognitive architecture comprising three distinct tiers: a short-term sliding conversation window, structured SQLite-backed entity storage, and an episodic vector database powered by ChromaDB. This structured approach allows AI agents utilizing Openclaw Skills to maintain highly contextualized, persona-driven, and historically aware interactions over time.
By unifying transient short-term dialogue buffers with rich semantic historical lookups and rigid key-value facts, developers can stop writing custom boilerplate database code for every new bot. The skill features smart context construction, enabling agents to automatically inject relevant background facts directly into system prompts or query vector stores dynamically to extract historical conversations when needed.
get_profile) and appends it to the system instructions.Ensure you have the required Python dependencies installed globally or within your agent environment:
pip install "chromadb>=0.4.0" "openai>=1.0.0"
(Note: OpenAI is optional. If no API key is set, the system falls back to regex-based entity extraction.)
Clone the repository into your Openclaw Skills directory structure:
git clone https://github.com/exp007/agent-long-term-memory.git ~/.codex/skills/agent-memory
All state files are stored dynamically inside the global directory path ~/.codex/agent_memory/ ensuring cross-project persistency.
All structured facts and database states are maintained globally:
~/.codex/agent_memory/: The root directory for the agent's cognitive footprint.SQLite DB: Manages Tier 2 entity cards containing structured facts with confidence weights.ChromaDB vector store: Houses Tier 3 episodic conversation logs with corresponding embedding metadata.| Property | Type | Description |
|---|---|---|
key |
String | Unique descriptor for the fact (e.g., favorite_color) |
value |
Any | Stored data associated with the key |
evidence |
String | Supporting conversational context or origin quote |
confidence |
Float | Fact reliability score (0.0 to 1.0) |
tags |
Array of Strings | Meta-tags for categorizing or partitioning the entity card |
MemoryContext models to seamlessly inject structured knowledge and vector memory directly into LLM prompts.Loading
An all-in-one AI agent skill that instantly structures detailed timelines, budgets, and action plans for corporate, social, and personal events.

An AI-powered philosophical guide bringing Edward Abbey's classic environmental and solitude wisdom directly into your conversational workflows.

An automated cross-platform monitoring assistant that tracks AI platform availability, response times, competitor updates, and latest announcements with smart notifications.

An expert AI coding agent skill designed to review, plan, and QA Arabic-first mobile and family applications, ensuring proper RTL layout, bilingual consistency, and private onboarding workflows.

An advanced strategic planning agent skill that programmatically audits, refines, and synchronizes annual business plan (BP) goals using structured JSON contracts.

An AI-powered emergency preparedness and systemic crisis analysis skill based on the definitive account of the 2018 Camp Fire.








































