Skip to main content

camel-itsuki

Itsuki memory for CAMEL: a lossless local history that also mirrors durable memory to Itsuki.

pip install camel-itsuki
from camel.memories import ChatHistoryMemory
from camel_itsuki import ItsukiStorage

memory = ChatHistoryMemory(
    context_creator,
    storage=ItsukiStorage(user_id="user_42", agent_id="researcher"),
)

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

Two jobs, kept apart

BaseKeyValueStorage promises to store records "without any loss of information", and ChatHistoryMemory expects to read back exactly what it wrote. So:

  • save/load/clear are a lossless local mirror. Byte-for-byte what went in comes out. Nothing is reconstructed from extracted memories, because an agent whose history quietly rewrites itself between turns is a genuinely hard bug to find.
  • Durable semantic memory is mirrored to Itsuki in the same save call and read back through ItsukiContextBlock, which is the host's own abstraction for context from elsewhere.
from camel_itsuki import ItsukiContextBlock

block = ItsukiContextBlock(user_id="user_42", client=storage.client)
context = block.retrieve("what is this project about?")

Local-first writes

The mirror file is written with an atomic replace before the network is touched, so an Itsuki outage costs durable memory but never the agent's own history. The file is bounded (max_records, default 5000) and a truncated file is discarded rather than served as fact.

Multi-agent societies

Give each agent its own ItsukiStorage with its own agent_id. Each gets its own mirror file and its own attribution, which is what keeps two agents from reading each other's history.

Deletion

clear() clears the local history only. Server-side memory is untouched unless you construct with allow_remote_clear=True — an agent restarting its chat history is not a user asking to be forgotten, and conflating the two is how an integration deletes somebody's memory by accident.

License

Apache-2.0

Metadata

Release files for camel-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 camel-itsuki 0.1.1
File Size Uploaded
camel_itsuki-0.1.1.tar.gz 15.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for camel-itsuki 0.1.1
File Interpreter ABI Platform
camel_itsuki-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 33.6 kB

Release files / camel_itsuki-0.1.1.tar.gz

Download URL camel_itsuki-0.1.1.tar.gz
Size 15.4 kB
Tags Source
SHA-256 checksum
How to use checksums
4abe2476c8f49a4d8cb497a9cd5c9cee2ecee13c203337a0a9e7f7a36d81fddd
BLAKE2b-256 checksum
How to use checksums
058701a6438a721779e299076d950c4e74327ff13b039bb5958a4f298bc4caf5
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 / camel_itsuki-0.1.1-py3-none-any.whl

Download URL camel_itsuki-0.1.1-py3-none-any.whl
Size 18.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f4b633b42df3c01846db21da719f020ce94874607d641726ebd748854edfcf12
BLAKE2b-256 checksum
How to use checksums
800ac38c9ec6ff7355cc422eb799eeb2112b347000e0199235abd6c1fde05b58
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 history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

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