Skip to main content

Arkhon Memory SDK

Clean, LOCAL (!!!), long-term memory for autonomous LLM agents and agentic systems.
A foundational component built to support persistence, learning, and context recall — without database bloat or framework lock-in.


PyPI version Python versions License


📦 Install

pip install arkhon-memory

Supports Python 3.8+ and pydantic 2.x.


🚀 What is Arkhon Memory?

Most agent “memory” is brittle: chat logs, hacky context, or heavyweight vector DBs.

Who is this for: Indie hackers, researchers, agent devs, and tinkerers, ANYONE tired of vector DBs or lock-in memory “solutions”.

Builders who want cognitive-like, composable memory — not chat history hacks - AND all of it is happening/stored locally not in anyone elses cloud.

Arkhon is a lightweight, composable memory layer:

  • JSON-native, structured, and easy to reason about
  • Tracks relevance over time (with time decay + reuse boosting)
  • Designed for event-driven, session-aware agent workflows
  • No dependencies except Python & pydantic

Arkhon is the “active memory” foundation of a much larger system we call Cathedral.
This SDK is for builders who want real persistence — and want to keep their stack simple.


✨ Features

  • Plug-and-play: add persistent memory to any LLM agent in minutes
  • Time decay & reuse: fresher and more-used facts stay relevant
  • Tagging & snapshots: organize, search, and summarize memory easily
  • Session lifecycle hooks: manage memory at start/end of sessions
  • No bloat: no vector DBs, no LangChain, no black-box magic

📄 License

MIT — free to use, modify, or integrate.


🤝 Contributing & Feedback

We welcome feedback, issues, and pull requests!
If you find a bug or have ideas for improvement, please open an issue or submit a PR on GitHub.

For questions, feature requests, or direct contact:
Email: kissg@me.com

Star the repo if you find Arkhon useful or want to follow updates!


🛠️ Quick Start (included in examples folder)

from arkhon_memory.memory_hub import MemoryHub
from arkhon_memory.schemas import MemoryItem
from arkhon_memory.lifecycle import on_session_start, on_session_exit
from datetime import datetime

hub = on_session_start("demo_memory.json")
item = MemoryItem(
    content="Tokyo has the world's largest metro population.",
    tags=["geography", "asia"],
    timestamp=datetime.utcnow(),
)
hub.append(item)

results = hub.query("tokyo")
for r in results:
    print("Found:", r.content, r.tags)

on_session_exit(
    hub,
    tags=["demo", "test"],
    summary="Demo session saving basic fact about Tokyo.",
    title="Tokyo Fact Demo"
)

Metadata

Release files for arkhon-memory 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for arkhon-memory 0.1.0
File Size Uploaded
arkhon_memory-0.1.0.tar.gz 5.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for arkhon-memory 0.1.0
File Interpreter ABI Platform
arkhon_memory-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 11.3 kB

Release files / arkhon_memory-0.1.0.tar.gz

Download URL arkhon_memory-0.1.0.tar.gz
Size 5.1 kB
Tags Source
SHA-256 checksum
How to use checksums
23a8b810808a4bfd759f18cdaa7311dc31a595cacbe40343ea7058613810bc89
BLAKE2b-256 checksum
How to use checksums
fb905e70cd676ff62c95ef0b1ca84fd947f245d9c1e0a7bff4f440bb9a1907f9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.13

Release files / arkhon_memory-0.1.0-py3-none-any.whl

Download URL arkhon_memory-0.1.0-py3-none-any.whl
Size 6.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
37af75703937889eed360e49290118c18543f6d9d720722c9a092279238b32d2
BLAKE2b-256 checksum
How to use checksums
c6f220132e75adc3a128ef14019cdf77f3c21ec3a44ca0b468e5ea2e68d3654b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.13

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page