Local Memory
Description
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.
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
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
Agency Agents
A complete AI agency at your fingertips - From frontend wizards to Reddit community ninjas, from whimsy inject
AI Firecrawl
🔥 The API to search, scrape, and interact with the web for AI
AI Artifacts Builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web tech
AI CrewAI
Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewA
AI TrendRadar
⭐AI-driven public opinion & trend monitor with multi-platform aggregation, RSS, and smart alerts.🎯 告别信息过载,你的
AI mem0
| Universal memory layer for AI Agents | 51341 | 221 | 1 |
AI