Memori is agent-native memory infrastructure. A LLM-agnostic layer that turns agent execution and conversation into structured, persistent state for production systems. Built for enterprise, Memori works with the data infrastructure you already run, no rip-and-replace, and deploys across managed cloud, single-tenant cloud, VPC, and on-premises.
$ npx -y skills add MemoriLabs/Memori --agent claude-code
Run the curl in your terminal, the rest in Claude Code.
Repo: MemoriLabs/Memori
What's inside
npm install @memorilabs/memori
pip install memori
Sign up at app.memorilabs.ai, get a Memori API key, and start building. Full docs: memorilabs.ai/docs/memori-cloud/.
Set MEMORI_API_KEY and your LLM API key (e.g. OPENAI_API_KEY), then:
import { OpenAI } from 'openai';
import { Memori } from '@memorilabs/memori';
// Requires MEMORI_API_KEY and OPENAI_API_KEY in your environment
const client = new OpenAI();
const mem = new Memori().llm
.register(client)
.attribution('user_123', 'support_agent');
async function main() {
await client.chat.completions.create({
model: 'gpt-4o-mini',
messages: [{ role: 'user', content: 'My favorite color is blue.' }],
});
// Conversations are persisted and recalled automatically in the background.
const response = await client.chat.completions.create({
model: 'gpt-4o-mini',
messages: [{ role: 'user', content: "What's my favorite color?" }],
});
// Memori recalls that your favorite color is blue.
}
from memori import Memori
from openai import OpenAI
# Requires MEMORI_API_KEY and OPENAI_API_KEY in your environment
client = OpenAI()
mem = Memori().llm.register(client)
mem.attribution(entity_id="user_123", process_id="support_agent")
response = client.chat.completions.create(
model="gpt-4o-mini",
messages=[{"role": "user", "content": "My favorite color is blue."}]
)
# Conversations are persisted and recalled automatically.
response = client.chat.completions.create(
model="gpt-4o-mini",
messages=[{"role": "user", "content": "What's my favorite color?"}]
)
# Memori recalls that your favorite color is blue.
Use the Dashboard โ Memories, Analytics, Playground, and API Keys.
[!TIP] Want to use your own database? Check out docs for Memori BYODB here: https://memorilabs.ai/docs/memori-byodb/. For disposable BYODB development databases, see the TiDB Zero provisioning guide: docs/memori-byodb/databases/tidb.mdx.
Memori was evaluated on the LoCoMo benchmark for long-conversation memory and achieved 87% overall accuracy while using an average of 721 tokens per query. That is just 2.8% of the full-context footprint, showing that structured memory can preserve reasoning quality without forcing large prompts into every request.
Compared with other retrieval-based memory systems, Memori outperformed Zep, LangMem, and Mem0 while reducing prompt size by roughly 67% vs. Zep and lowering context cost by more than 36x vs. full-context prompting.
Read the benchmark overview, see the results, or download the paper.

By default, OpenClaw agents forget everything between sessions. The Memori plugin fixes that. It automatically captures structured memory from conversation and agent execution after each turn โ including tool calls, decisions, and outcomes โ and makes it available for agents to recall on demand.
No changes to your agent code or prompts are required. The plugin hooks into OpenClaw's lifecycle, so you get structured memory, agent-controlled recall, and Advanced Augmentation with a drop-in plugin.
openclaw plugins install @memorilabs/openclaw-memori
openclaw plugins enable openclaw-memori
openclaw memori init \
--api-key "YOUR_MEMORI_API_KEY" \
--entity-id "your-app-user-id" \
--project-id "my-project"
openclaw gateway restart
For setup and configuration, see the OpenClaw Quickstart. For architecture and lifecycle details, see the OpenClaw Overview.
Memori also ships as a Hermes Agent memory provider. It captures completed conversations in the background and gives Hermes explicit memori_recall and memori_recall_summary tools for agent-controlled recall.
pip install hermes-memori
hermes-memori install
hermes config set memory.provider memori
HERMES_HOME="${HERMES_HOME:-$HOME/.hermes}"
mkdir -p "$HERMES_HOME"
echo "MEMORI_API_KEY=YOUR_MEMORI_API_KEY" >> "$HERMES_HOME/.env"
echo "MEMORI_ENTITY_ID=your-app-user-id" >> "$HERMES_HOME/.env"
MEMORI_PROJECT_ID is optional; when omitted, the provider uses Hermes' active project context for scoping.
For setup and configuration, see the Hermes Quickstart. For architecture and lifecycle details, see the Hermes Overview.
Your agent forgets everything between sessions. Memori fixes that. It remembers your stack, your conventions, and how you like things done so you stop repeating yourself.
Works for solo developers and teams. Your agent learns coding patterns, reviewer preferences, and project conventions over time. For teams, that means shared context that new engineers pick up on day one instead of absorbing tribal knowledge over months.
If you use Claude Code, Cursor, Codex, Warp, or Antigravity, you can connect Memori with no SDK integration needed:
claude mcp add --transport http memori https://api.memorilabs.ai/mcp/ \
--header "X-Memori-API-Key: ${MEMORI_API_KEY}" \
--header "X-Memori-Entity-Id: your_username" \
--header "X-Memori-Process-Id: claude-code"
For Cursor, Codex, Warp, and other clients, see the MCP client setup guide.
To get the most out of Memori, you want to attribute your LLM interactions to an entity (think person, place or thing; like a user) and a process (think your agent, LLM interaction or program).
If you do not provide any attribution, Memori cannot make memories for you.
mem.attribution("12345", "my-ai-bot");
mem.attribution(entity_id="12345", process_id="my-ai-bot")
Memori uses sessions to group your LLM interactions together. For example, if you have an agent that executes multiple steps you want those to be recorded in a single session.
By default, Memori handles setting the session for you but you can start a new session or override the session by executing the following:
mem.resetSession();
// or
mem.setSession(sessionId);
mem.new_session()
# or
mem.set_session(session_id)
(unstreamed, streamed, synchronous and asynchronous)
For more examples and demos, check out the Memori Cookbook.
Memories are tracked at several different levels:
Memori's Advanced Augmentation enhances memories at each of these levels with:
Memori knows who your user is, what tasks your agent handles and creates unparalleled context between the two. Augmentation occurs in the background incurring no latency.
By default, Memori Advanced Augmentation is available without an account but rate-limited. When you need increased limits, sign up for Memori Advanced Augmentation or use the Memori CLI:
# Install the CLI via pip to manage your account
python -m memori sign-up <email_address>
Memori Advanced Augmentation is always free for developers!
Once you've obtained an API key, set the following environment variable (used by both Python and TypeScript SDKs):
export MEMORI_API_KEY=[api_key]
The Memori CLI uses your exported environment first, then fills missing values from a .env file in the directory where you run the command.
At any time, you can check your quota using the Memori CLI (works for both SDKs):
python -m memori quota
Or by checking your account at https://app.memorilabs.ai/. If you have reached your IP address quota, sign up and get an API key for increased limits.
If your API key exceeds its quota limits, we will email you and let you know.
The Memori CLI is the unified tool for managing your account, keys, and quotas across all SDKs. To use it, execute the following from the command line:
# Requires Python installed
python -m memori
This will display a menu of the available options. For more information about what you can do with the Memori CLI, please reference Command Line Interface.
We welcome contributions from the community! Please see our Contributing Guidelines for details on:
Apache 2.0 - see LICENSE
.dockerignore
.env.example
.github/
ISSUE_TEMPLATE/
bug_report.yml
config.yml
feature_request.yml
question.yml
pull_request_template.md
workflows/
ci.yml
core-ci.yml
integration.yml
publish-hermes.yml
publish-npm.yml
publish-openclaw-plugin.yml
publish.yml
python-cloud-integration.yml
ts-ci.yml
ts-cloud-integration.yml
ts-openclaw-ci.yml
.gitignore
.pre-commit-config.yaml
benchmarks/
.env.example
01_load_indexes.ipynb
02_run_benchmark.ipynb
pyproject.toml
README.md
CHANGELOG.md
conftest.py
CONTRIBUTING.md
core/
.cargo/
config.toml
.gitignore
bindings/
node/
build.js
build.rs
Cargo.toml
package-lock.json
package.json
src/
bridge.rs
engine.rs
lib.rs
types.rs
python/
Cargo.toml
src/
lib.rs
Cargo.lock
Cargo.toml
clippy.toml
docs/
architecture.md
Makefile
README.md
rust-toolchain.toml
src/
augmentation/
mod.rs
models.rs
pipeline.rs
embeddings/
api.rs
chunking.rs
mod.rs
models.rs
utils.rs
error.rs
lib.rs
models.rs
network/
client.rs
error.rs
mod.rs
retrieval/
mod.rs
models.rs
pipeline.rs
runtime/
config.rs
errors.rs
mod.rs
state.rs
worker.rs
search/
api.rs
lexical.rs
mod.rs
models.rs
similarity.rs
storage/
bridge.rs
builder.rs
connection.rs
dialect.rs
drivers/
mod.rs
mysql.rs
postgresql.rs
sqlite.rs
manager.rs
migrations/
mod.rs
mysql.rs
postgresql.rs
sqlite.rs
mod.rs
models.rs
tests/
orchestrator_contract.rs
retrieval_aa_contract.rs
storage_sqlite_integration.rs
worker_runtime_contract.rs
docker-compose.yml
Dockerfile
docs/
memori-byodb/
concepts/
advanced-augmentation.mdx
agent-trace-execution.mdx
architecture.mdx
async-patterns.mdx
cli-quickstart.mdx
how-memory-works.mdx
knowledge-graph.mdx
multi-user-support.mdx
contribute/
development-setup.mdx
overview.mdx
dashboard/
api-keys.mdx
databases/
cockroachdb.mdx
mongodb.mdx
mysql.mdx
oracle.mdx
overview.mdx
postgres.mdx
sqlite.mdx
tidb.mdx
typescript-orm.mdx
getting-started/
installation.mdx
python-quickstart.mdx
typescript-installation.mdx
typescript-quickstart.mdx
use-cases.mdx
index.mdx
llm/
agno.mdx
anthropic.mdx
aws-bedrock.mdx
deepseek.mdx
gemini.mdx
langchain.mdx
nebius.mdx
openai.mdx
overview.mdx
pydantic-ai.mdx
xai-grok.mdx
support/
faq.mdx
troubleshooting.mdx
memori-cloud/
benchmark/
benchmark.png
experiments.mdx
overview.mdx
results.mdx
claude-code/
agent-skills.md
overview.mdx
quickstart.mdx
concepts/
advanced-augmentation.mdx
agent-trace-execution.mdx
architecture.mdx
async-patterns.mdx
how-memory-works.mdx
knowledge-graph.mdx
multi-user-support.mdx
dashboard/
analytics.mdx
api-keys.mdx
memories.mdx
overview.mdx
playground.mdx
getting-started/
installation.mdx
python-quickstart.mdx
typescript-quickstart.mdx
use-cases.mdx
hermes/
agent-skills.md
overview.mdx
quickstart.mdx
index.mdx
llm/
agno.mdx
anthropic.mdx
aws-bedrock.mdx
deepseek.mdx
gemini.mdx
langchain.mdx
nebius.mdx
openai.mdx
overview.mdx
pydantic-ai.mdx
xai-grok.mdx
mcp/
agent-skills.mdx
client-setup.mdx
overview.mdx
skills/
memori-mcp/
SKILL.md
openclaw/
agent-skills.md
overview.mdx
quickstart.mdx
support/
faq.mdx
troubleshooting.mdx
examples/
agno/
.env.example
main.py
pyproject.toml
README.md
cockroachdb/
.env.example
main.py
pyproject.toml
README.md
digitalocean/
.env.example
main.py
pyproject.toml
README.md
mongodb/
.env.example
main.py
pyproject.toml
README.md
nebius/
.env.example
main.py
pyproject.toml
README.md
neon/
.env.example
main.py
pyproject.toml
README.md
oceanbase/
main.py
README.md
postgres/
.env.example
main.py
pyproject.toml
README.md
sqlite/
.env.example
main.py
pyproject.toml
README.md
rust_core_main.py
tidb/
main.py
pyproject.toml
README.md
images/
benchmark.png
quickstart.png
stats.png
integrations/
claude-code/
.env.example
index.ts
README.md
SKILL.md
hermes/
plugin.yaml
pyproject.toml
README.md
src/
memori_hermes/
__init__.py
_paths.py
client.py
install.py
plugin.yaml
tools.py
tests/
test_client.py
test_install.py
test_provider.py
openclaw/
.prettierrc.json
eslint.config.js
openclaw.plugin.json
package-lock.json
package.json
README.md
skills/
clawhub/
SKILL.md
memori/
SKILL.md
src/
cli/
commands.ts
config-file.ts
constants.ts
handlers/
augmentation.ts
index.ts
sanitizer.ts
tools/
index.ts
memori-compaction.ts
memori-feedback.ts
memori-quota.ts
memori-recall-summary.ts
memori-recall.ts
memori-signup.ts
types.ts
types.ts
utils/
context.ts
index.ts
logger.ts
memori-client.ts
skills-loader.ts
version.ts
tests/
cli/
config-file.test.ts
handlers/
augmentation.test.ts
index.test.ts
sanitizer.test.ts
tools/
memori-compaction.test.ts
memori-feedback.test.ts
memori-quota.test.ts
memori-recall-summary.test.ts
memori-recall.test.ts
memori-signup.test.ts
utils/
context.test.ts
logger.test.ts
memori-client.test.ts
skills-loader.test.ts
tsconfig.json
vitest.config.ts
LICENSE
Makefile
MANIFEST.in
memori/
memori-ts/
.gitignore
.npmignore
.prettierignore
.prettierrc.json
eslint.config.js
examples/
cloud/
main.ts
cockroachdb/
.env.example
main.ts
README.md
mysql/
.env.example
main.ts
README.md
orm/
README.md
postgres/
.env.example
main.ts
README.md
sqlite/
.env.example
main.ts
README.md
rust_core_main.ts
package-lock.json
package.json
README.md
scripts/
bump-versions.js
sync-native.js
src/
... 465 moreFAQ
memori is a Claude Code plugin with 2 hand-picked skills for data work, indexed on Flowy. Install it with the command on its page. It includes clawhub, memori. Its skills do not fire on their own yet. Request auto-invocation to have Flowy route them as you prompt. Free and open source.