Local Memory — AI skill for Claude Code
100% local, OpenAI-compatible memory layer for AI agents.
How to install Local Memory
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open swarmclawai/local-memory and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Local Memory does
100% local, OpenAI-compatible memory layer for AI agents. On-device embeddings via Ollama + SQLite (sqlite-vec) vector search. Zero cloud round-trips. Built for agents.
Alternatives in AI
README
local-memory
100% local, OpenAI-compatible memory layer for AI agents. On-device embeddings via Ollama, SQLite + `sqlite-vec` for vector search, zero cloud round-trips. Drop-in for any code that already speaks `/v1/embeddings`.
[](https://www.npmjs.com/package/@swarmclawai/local-memory) [](./LICENSE) [](https://github.com/swarmclawai/local-memory/actions/workflows/ci.yml)
Why this exists
Every AI-agent memory repo today — Supermemory, claude-mem, mem0, Graphiti — assumes you'll call OpenAI for embeddings and often a hosted vector DB on top. That means three things for a solo dev or privacy-conscious user:
- Every agent interaction has a network round-trip.
- A paid API bill scales with your agent's usage.
- Your memory lives off-device, off-machine, in someone else's cloud.
`local-memory` is the opposite: a single Node process, one SQLite file on disk, embeddings via a local Ollama instance running on your own laptop. It exposes an **OpenAI-compatible `/v1/embeddings`** endpoint so any existing client that accepts a `baseURL` override just works — no SDK swap, no code rewrite. It also exposes a small first-class memory API (`POST /memory`, `/memory/search`, namespaces, export, import) for when you want more than just embeddings.
30-second demo
# Prereq: Ollama running with an embedding model pulled
ollama pull nomic-embed-text
ollama serve & # listens on 127.0.0.1:11434
# Start the memory server
npx -y @swarmclawai/local-memory start
# Point your OpenAI client at it
export OPENAI_BASE_URL=http://localhost:3456/v1
export OPENAI_API_KEY=not-used
# From another shell, store and search memories
npx -y @swarmclawai/local-memory add "User prefers kebab-case for slugs"
npx -y @swarmclawai/local-memory search "casing co
Related Skills
Anyindex MCP
Local MCP server for semantic code search. AST-aware chunking with tree-sitter, offline ONNX embeddings, hybri
Brain CLI
Persistent memory for AI agents and personal knowledge management. Single-file Python CLI: hybrid semantic + k
Ovo Local LLM
A private Claude-Code-style coding agent for Apple Silicon — run chat, code, and local model workflows on-devi
MeMex Zero RAG
The Karpathy LLM Wiki, production-ready. Zero-RAG personal knowledge base with MCP server, multi-agent support
Local Memory MCP
Persistent local memory for Claude, Cursor & Codex. 21 MCP tools, hybrid retrieval (BM25 + vector RRF), bi-tem
Sourcelens
Harness-based Agentic RAG: search, understand, and answer questions over documents and code using an AI coding
Related Agents
Fable5 Apfel Engineer
Heavy-lifting Fable-5 engineer for the apfel project (Apple on-device FoundationModels CLI + OpenAI-compatible
Grok Agent 01
ONLY job: find free or freemium AI token/API plans (OpenAI-compatible, Anthropic, Google, open routers, studen
Python RAG Backend Engineer
Production-grade Python RAG backend engineer specializing in ChromaDB vector storage, sentence-transformers em