Skip to main content

Local-first AI memory cartridge: persistent, cross-session memory for Claude and any LLM via MCP

Project description

llm-kosh

Give your local LLMs a permanent, air-gapped memory cartridge.

llm-kosh is a lightning-fast, SQLite-backed memory system that gives AI assistants (like Claude and Cursor) permanent recall across sessions. Stop copy-pasting the same 15 architectural decisions and database schemas into every new chat.

By running completely locally, it guarantees zero cloud syncing, zero API costs, and absolute privacy for your proprietary codebase.

🚀 The Killer Feature: Native MCP Server

llm-kosh natively supports the Model Context Protocol (MCP). This means tools like Claude Desktop and Cursor can automatically search and read your memory cartridge without you doing anything.

Claude Desktop Setup

Simply add this to your claude_desktop_config.json:

{
  "mcpServers": {
    "llm-kosh": {
      "command": "uvx",
      "args": ["llm-kosh", "mcp", "--root", "C:/path/to/your/cartridge", "--allow-write"]
    }
  }
}

Now, when you ask Claude "What database are we using for auth?", it automatically searches your llm-kosh cartridge and knows the answer.

✨ Features

  • 🧠 Lightning Fast Local Memory: Powered by an embedded SQLite FTS5 database. Sub-50ms search times across thousands of context files.
  • Global Quick Capture: Press Ctrl+Shift+Space anywhere on your OS to instantly dump a thought, decision, or code snippet into your cartridge.
  • 🛡️ Air-Gapped & Secure: Built-in safety Airlock prevents destructive writes. No data ever leaves your machine unless you explicitly pack it.
  • 🖥️ Beautiful Desktop UI: Comes with a glassmorphism Electron/React desktop app to manage your memory, monitor the MCP daemon, and configure hotkeys.

📦 Quickstart

Get from zero to a running memory cartridge in under 2 minutes.

1. Install the core system

pip install llm-kosh

2. Initialize a new cartridge

# Creates a new .llm-kosh root in your current directory
llm-kosh init --owner "Your Name"

3. Launch the Desktop App & Daemon

# Starts the UI, the background watcher, and the MCP bridge
llm-kosh desktop

📚 Deep Dives:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

llm_kosh-2.0.1.tar.gz (31.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

llm_kosh-2.0.1-py3-none-any.whl (23.3 kB view details)

Uploaded Python 3

File details

Details for the file llm_kosh-2.0.1.tar.gz.

File metadata

  • Download URL: llm_kosh-2.0.1.tar.gz
  • Upload date:
  • Size: 31.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for llm_kosh-2.0.1.tar.gz
Algorithm Hash digest
SHA256 6d67aae0ce1504c419518ff98f8420eecc084ef6169a20054a4ba6da48731b47
MD5 3d57d34ceda7a23b23cf27845d49a024
BLAKE2b-256 8fc97d6353a49a6479e6bb308f5d3d9080f44ba61016e813291c8794ccb84f24

See more details on using hashes here.

File details

Details for the file llm_kosh-2.0.1-py3-none-any.whl.

File metadata

  • Download URL: llm_kosh-2.0.1-py3-none-any.whl
  • Upload date:
  • Size: 23.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for llm_kosh-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6940ebecc15f1b4242644c526000462aa4be7a2802a42a2d3220583f86268d8f
MD5 76958d66f7dcccc37d397044ac6810a7
BLAKE2b-256 776530c02f2d5a4ca2866a1ce51b7a69f45c55fa22eb8176b0dc61f668ae668b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page