cd /news/large-language-models/chatstore-persistent-chat-history-se… · home topics large-language-models article
[ARTICLE · art-33679] src=dev.to ↗ pub= topic=large-language-models verified=true sentiment=↑ positive

chatstore – persistent chat history service for LLM apps, zero infrastructure

A developer open-sourced chatstore, a lightweight, framework-agnostic persistent chat library for LLM applications. The library requires zero infrastructure, uses SQLite for storage, supports sliding window context, and offers optional semantic search with local embeddings. It works with any LLM and can be installed via pip with minimal code.

read1 min views1 publishedJun 19, 2026

🚀 I just open-sourced chatstore — a lightweight, framework-agnostic persistent chat library for LLM applications.

If you've ever built an AI assistant or agent, you know the pain: → Where do I store conversation history?

→ How do I feed a sliding window to the LLM without blowing the context limit?

→ How do I retrieve relevant past context without spinning up a server?

Most solutions either lock you into a framework (LangChain), require Docker + a running server (Zep), or need an LLM call just to store a memory (Mem0).

chatstore does none of that.

✅ One class. Zero infrastructure.

✅ Works with any LLM — OpenAI, Gemini, Anthropic, Ollama, anything

✅ Persistent history backed by SQLite (swappable to Postgres)

✅ Sliding window context — configurable, token-aware

✅ Optional semantic search with local embeddings (no API key needed)

𝗩𝗲𝗿𝘀𝗶𝗼𝗻 𝟭 — drop in and go:

pip install chatstore

𝗩𝗲𝗿𝘀𝗶𝗼𝗻 𝟮 — add vector memory with one flag:

pip install chatstore[semantic] Start using it in 3 lines:

from chatstore import ChatService

chat = ChatService(project_id="my_app")

chat.save_message("user", "Hello!")

That's it. No config files. No environment setup. No servers.

🔗 GitHub → [https://github.com/namankr/chatstore](https://github.com/namankr/chatstore)

If this saves you even an hour of boilerplate work, drop a ⭐ on the repo — it genuinely helps more developers discover it.

And if you're building something with LLMs, I'd love to hear what you're working on. Drop a comment or DM me 👇

── more in #large-language-models 4 stories · sorted by recency
── more on @chatstore 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/chatstore-persistent…] indexed:0 read:1min 2026-06-19 ·