# 0x1-memory — Local-First Cross-Agent AI Memory

> Connect Claude Code, Codex, Cursor, OpenCode, Antigravity, and any MCP client to a single local-first Rust memory engine with cross-agent session handoff and zero subscription drain.

0x1-memory — Local-First Cross-Agent AI Memory is a free AI agent skill on Agensi by Raihan Hidayatullah Djunaedi, in LLM Ops. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Raihan Hidayatullah Djunaedi](https://www.agensi.io/creators/raihan0x1)
- Category: [LLM Ops](https://www.agensi.io/skills/llm-ops)
- Version: 1.0
- Last updated: 2026-12-01
- Security: scan passed (2026-12-01); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/0x1-memory-local-first-cross-agent-ai-memory
- Tags: llm-ops, productivity, ai-agents, mcp-server, sqlite, context-management, rust, memory

## About this skill

A free companion skill that teaches your AI coding agent how to install, configure, and use **0x1-ai-memory** — an open-source (MIT), local-first cross-agent memory engine and MCP server running entirely on `http://127.0.0.1:10101`.

### Why 0x1-ai-memory?
- **Cross-Agent Handoff & Recall:** Switch from Claude Code to Codex, Cursor, OpenCode, or Antigravity mid-task and pick up recent project sessions, scrubbed prompts, and active memories anchored to local time.
- **Anti-Drain by Design:** Lifecycle hooks capture events locally at ~9 ms and **0 LLM tokens**. Choose Zero-LLM (`$0`), local Ollama, OpenRouter, Gemini, or any OpenAI-compatible endpoint with hard daily token/USD caps — never silently draining your coding subscription.
- **Single Rust Binary + Embedded Web UI:** Powered by SQLite WAL, FTS5, and `sqlite-vec` with deterministic secret and `<private>` scrubbing, per-project privacy controls (`Full` / `Local-only` / `Paused`), and an interactive memory graph at `http://127.0.0.1:10101`.
- **Progressive Disclosure MCP Surface:** Exposes 5 compact tools (`memory_search`, `memory_get`, `memory_timeline`, `memory_save`, `memory_update`) via Streamable HTTP (or `mcp-stdio` fallback).

### What's Included in This Skill
- `SKILL.md` — Guided setup, confirmation-gated install/config instructions, and cross-agent recall/save workflow.
- `templates/mcp-http.json` — Streamable HTTP config snippet for Cursor, Windsurf, Cline, GitHub Copilot, Zed, and Claude-compatible clients.
- `templates/mcp-stdio.json` — `mcp-stdio` fallback snippet for stdio-only clients.
- `templates/codex-config.toml` — Codex TOML MCP entry.
- `templates/opencode.jsonc` — OpenCode remote MCP entry.

### Open-Source Companion Binary
- **GitHub:** `raihan0x1/0x1-ai-memory` (MIT license, prebuilt binaries in Releases)
- **Quick Start (npm):** `npx 0x1-ai-memory`

> Note: Agensi does not host MCP servers. This free companion skill configures and guides your agent to connect to the open-source `0x1-ai-memory` binary running locally on your machine.

## Requires

- 0x1-ai-memory
- Node.js

## Known limitations

Requires local installation of the 0x1-ai-memory Rust binary. User must manually approve hook trust for Codex and confirm configuration file modifications.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the 0x1-memory — Local-First Cross-Agent AI Memory skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### What specific problem does this skill solve for developers using AI agents?

This skill provides a bridge between different coding sessions and tools by managing a local-first MCP memory server. It prevents context loss when switching between tools or starting new sessions by storing architectural decisions, bugfixes, and user preferences in a persistent database.

### What software or prerequisites are required to use this skill?

You must have the 0x1-ai-memory Rust binary installed and running locally on port 10101. The skill also requires an MCP-compatible coding client such as Claude Code, Cursor, or Codex to interface with the local SQLite database.

### What are the primary outputs and tools provided by this skill?

The skill manages five primary tools for searching, retrieving, and inspecting development history, as well as saving and updating memories. It produces high-signal facts, session summaries, and chronological timelines stored in a local SQLite database with hybrid vector search capabilities.

### Are there any known limitations or scenarios where this skill will not work?

The skill cannot function if the local memory daemon is not running or if the client lacks Streamable HTTP support without using a stdio fallback. It is designed for local development environments and requires manual confirmation before the agent modifies any local configuration files.

### How should I direct my AI agent to interact with this skill?

You can ask your agent to search for past architectural patterns, save a new root-cause bugfix to the database, or retrieve a session summary to hand off context from a previous session. It is particularly effective when you need the agent to remember project-specific invariants across different repositories.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
