A sophisticated three-tier memory architecture that mimics human cognition to provide AI agents with efficient, hierarchical, and long-term context retention.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install tiered-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 tiered-memory using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
The Tiered Memory System is a professional-grade memory architecture designed to solve the context window limitations of modern LLMs within Openclaw Skills. By organizing information into Hot, Warm, and Cold tiers, it ensures that agents retain critical identity data and active project context while archiving historical facts in a searchable, tree-structured index. This system is inspired by human cognition, utilizing relevance decay and strategic forgetting to keep agent responses sharp and focused.
Unlike standard vector-based RAG, this skill employs a vectorless retrieval method based on LLM reasoning and a PageIndex-inspired tree structure. This allows for O(log n) navigation of categories, ensuring that retrieval is not only fast but also explainable and highly accurate. With its cloud-first design, the soul of your agent lives in the cloud, allowing for seamless synchronization across multiple devices and robust disaster recovery.
To integrate this memory architecture into your Openclaw Skills, follow these installation steps:
# Install the tiered-memory skill
clawhub install tiered-memory
# Configure your Turso database credentials for cloud sync
export TURSO_URL="your-database-url"
export TURSO_TOKEN="your-auth-token"
# Initialize the cold storage tables
python3 skills/tiered-memory/scripts/memory_cli.py cold --init --db-url $TURSO_URL --auth-token $TURSO_TOKEN
# Rebuild the initial hot state
python3 skills/tiered-memory/scripts/memory_cli.py consolidate --mode daily
The skill manages information across several specialized files and database tables to optimize retrieval performance.
| Component | Format | Max Size | Description |
|---|---|---|---|
| Hot Memory | JSON | 5KB | Core identity, owner profile, and active context (always in-context). |
| Warm Memory | JSON | 50KB | Distilled facts from the last 30 days with decay scoring. |
| Cold Memory | SQL | Unlimited | Long-term archive stored in Turso DB for historical queries. |
| Tree Index | JSON | 2KB | Hierarchical category map for efficient navigation. |
| Metrics | JSON | N/A | Observability data tracking token savings and retrieval counts. |
Loading
A comprehensive language server integration for Solidity that provides compilation, linting, and security auditing for smart contract developers.

A high-performance language server providing deep code intelligence, real-time error detection, and advanced refactoring tools for Rust development.

A high-performance Python language server providing static type checking, code intelligence, and real-time diagnostics for professional development.

A core infrastructure skill for Openclaw Skills that dynamically routes agent tasks to the most cost-effective and capable AI models.

A powerful language server providing deep code intelligence, type checking, and refactoring for TypeScript and JavaScript projects.

A high-performance AI agent skill for executing USDT-margined perpetual futures trades on the WEEX exchange with up to 125x leverage.








































