persistent memory system for AI agents — single SQLite file, no external server, no API keys. free and opensource - BrainCTL

Reddit r/artificial / 4/11/2026

💬 OpinionDeveloper Stack & InfrastructureSignals & Early TrendsTools & Practical Usage

Key Points

  • BrainCTL is a free, open-source persistent memory system for AI agents that stores long-term context in a single local SQLite database file.
  • It provides features such as FTS5 full-text search, a knowledge graph, session handoffs, and a write gate to reject redundant memory entries.
  • The project is designed to run without an external server, without API keys, and without making LLM calls during memory operations.
  • It includes an MCP server with many tools (for Claude Desktop/VS Code) plus adapters for popular agent frameworks like LangChain and CrewAI.
  • Users can install it via pip and initialize it with a simple Brain(agent_id=...) workflow to resume context from prior sessions.

Every agent I build forgets everything between sessions. I got tired of it and built brainctl.

pip install brainctl, then:

from agentmemory import Brain

brain = Brain(agent_id="my-agent")

context = brain.orient() # picks up where last session left off

One SQLite file. FTS5 search. Knowledge graph. Session handoffs. Write gate that rejects redundant memories. MCP

server with 192 tools for Claude Desktop/VS Code. LangChain and CrewAI adapters included.

No outbound server, no API keys, no LLM calls for any memory operation. MIT licensed.

Best part is I dont want any of your money.

GitHub: https://github.com/TSchonleber/brainctl

PyPI: https://pypi.org/project/brainctl/

Happy to answer questions about the architecture.

submitted by /u/Despairil
[link] [comments]