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.0.tar.gz (26.8 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.0-py3-none-any.whl (18.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: llm_kosh-2.0.0.tar.gz
  • Upload date:
  • Size: 26.8 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.0.tar.gz
Algorithm Hash digest
SHA256 9b3ae4deeedce3e8a65f939fae43adf28c21f9e5b9a53e675f45c2af83a3342f
MD5 485ced7fc2c216e7f523350fe4098c7d
BLAKE2b-256 f19c5583dfdafc60fcf377fc7c987c45d6b4bd14e026a3b8ea3ea371077af74c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: llm_kosh-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 18.7 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 953cf33d667715b432f680b232666f330bf59c3b171c0f0a0f85d199f7a3bbe4
MD5 b8bf8a10b14960d2ec5caff9a4894963
BLAKE2b-256 079b1ff2bbb856c3ae55f87d2692cca8c5f2cd8d55fdc7f822d68fd556b3f52d

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