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.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 camel-itsuki 0.1.0
File Size Uploaded
camel_itsuki-0.1.0.tar.gz 15.1 kB Details

Built distribution (wheel)

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

Total release size: 32.9 kB

Release files / camel_itsuki-0.1.0.tar.gz

Download URL camel_itsuki-0.1.0.tar.gz
Size 15.1 kB
Tags Source
SHA-256 checksum
How to use checksums
96434eaafd0e7c365c062213e9d733be78e12d5af5748b50928ae5262232bcad
BLAKE2b-256 checksum
How to use checksums
a9e081ee8aea18208578f0f51503d0949f356dbd8c7052c84b9dbac32fb4d1eb
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.0-py3-none-any.whl

Download URL camel_itsuki-0.1.0-py3-none-any.whl
Size 17.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c0f14f58777ca96e8b485b9a9d2d31f19c4fe6a1675a02a5c22aa2d4c3d05d9d
BLAKE2b-256 checksum
How to use checksums
642ba73c76d9772cd193c719a158637a46b37a92f0435db3082f108331ac5100
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

0.1.1

2 release files

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