Skip to main content

llama-index-memory-itsuki

Itsuki long-term memory for LlamaIndex, as a memory block inside the host's own Memory class.

pip install llama-index-memory-itsuki
from llama_index.memory.itsuki import itsuki_memory

memory = itsuki_memory(user_id="user_42", session_id="thread_9")
response = await agent.run("What am I working on?", memory=memory)

Set ITSUKI_API_KEY in your environment. Create one at itsuki.app under API Keys.

A block, not a replacement

LlamaIndex has deprecated the BaseMemory generation that older third-party integrations target — ChatMemoryBuffer, SimpleComposableMemory and friends are on the way out. The current architecture is the Memory class composing BaseMemoryBlock subclasses, so that is what this ships.

Short-term chat history keeps working exactly as the host intends. Itsuki becomes the long-term half: _aget supplies durable memory for the turn, and _aput stages messages as they flush out of short-term memory.

Compose it yourself if you want a different arrangement:

from llama_index.core.memory import Memory
from llama_index.memory.itsuki import itsuki_memory_block

memory = Memory.from_defaults(
    session_id="thread_9",
    memory_blocks=[itsuki_memory_block("user_42", session_id="thread_9")],
)

Async, on purpose

BaseMemoryBlock is async-first, so this uses the Itsuki SDK's AsyncMemoryClient. A synchronous client here would block the event loop the agent runs on, once per step, for the length of an HTTP round trip.

Scoping

Argument Meaning
user_id the memory space — required, no default
session_id the conversation, and the de-duplication anchor
agent_id, run_id attribution only
project_id attribution, and enables project-scoped recall

search_msg_limit (default 5) controls how many recent turns inform the recall query.

Behaviour under failure

_aget returns an empty string and _aput returns quietly. A memory outage costs the agent context, never the answer. The API key is a private attribute, so it never appears in model_dump(), an export, or serialized agent state.

License

Apache-2.0

Metadata

Release files for llama-index-memory-itsuki 0.1.1

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

Source distribution (sdist)

Source distribution for llama-index-memory-itsuki 0.1.1
File Size Uploaded Provenance
llama_index_memory_itsuki-0.1.1.tar.gz 14.4 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for llama-index-memory-itsuki 0.1.1
File Interpreter ABI Platform
llama_index_memory_itsuki-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 31.3 kB

Release files / llama_index_memory_itsuki-0.1.1.tar.gz

Download URL llama_index_memory_itsuki-0.1.1.tar.gz
Size 14.4 kB
Tags Source
SHA-256 checksum
How to use checksums
c4cb0e44858efeccc678c70fb8f6b765ab9137438b6bb5e2fd017bbf5947fce7
BLAKE2b-256 checksum
How to use checksums
2236bca5a1ec7bac2c7526e8f86cc26a011fd490a95e94431c73fd1d75eea2a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 15, 2026.

Transparency log

Release files / llama_index_memory_itsuki-0.1.1-py3-none-any.whl

Download URL llama_index_memory_itsuki-0.1.1-py3-none-any.whl
Size 17.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6dc76f874be1b500deaf9fe59f3389d3fd042f927ca7b8a729a5d991d68658e8
BLAKE2b-256 checksum
How to use checksums
cfc22803e6bc10a20d1424661461be324cc7fe1d54ec306c7da3b29eedc6811c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 15, 2026.

Transparency log

Security for llama-index-memory-itsuki 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for llama_index_memory_itsuki-0.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 15, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files Full provenance

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