Skip to main content

madb-anthropic

Drop-in Anthropic client with automatic MADB causal memory. One import, every turn persisted.

# Before
# from anthropic import Anthropic

# After
from madb_anthropic import Anthropic

client = Anthropic(tenant_id="my-agent")
# Every client.messages.create() call now:
#   1. Recalls relevant prior memories (composite-scored),
#   2. Prepends them to the system prompt,
#   3. Calls Anthropic as usual,
#   4. Persists the turn with caused_by set to the strongest recalled memory.

No other code changes. See the monorepo's examples/basic_usage.py for a runnable demo.

Install

pip install madb-anthropic

Depends on:

  • anthropic>=0.40
  • meta-agents-db>=0.2 (the MADB engine wheel)

Both are pulled in automatically by pip.

Environment variables

Variable Default Purpose
MADB_TENANT_ID "default" Tenant isolation key. Use one tenant per long-running agent identity, not per session.
MADB_DATA_DIR ~/.madb/data Local engine storage directory.
MADB_API_ENDPOINT (unset) Reserved. When the hosted MADB API launches, set to route writes/reads to the managed tier. Currently emits a one-shot warning and falls back to local mode.
MADB_API_KEY (unset) Reserved. Paired with MADB_API_ENDPOINT above.

License

Meta-Agents.AI Proprietary License v1.0.

  • You may install and run this client in your own infrastructure for your own users.
  • You may not redistribute, reverse-engineer, or offer it as a hosted service to third parties.
  • Source code is not public. The wheel ships compiled binaries only.
  • For source access, OEM / embed rights, or hosted-service rights: 01@meta-agents.ai.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

madb_anthropic-0.2.12-cp313-cp313-win_amd64.whl (85.5 kB view details)

Uploaded CPython 3.13Windows x86-64

madb_anthropic-0.2.12-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (629.7 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

madb_anthropic-0.2.12-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (618.9 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ ARM64

madb_anthropic-0.2.12-cp313-cp313-macosx_11_0_arm64.whl (89.9 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

madb_anthropic-0.2.12-cp312-cp312-win_amd64.whl (85.4 kB view details)

Uploaded CPython 3.12Windows x86-64

madb_anthropic-0.2.12-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (627.2 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

madb_anthropic-0.2.12-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (617.4 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ ARM64

madb_anthropic-0.2.12-cp312-cp312-macosx_11_0_arm64.whl (91.2 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

madb_anthropic-0.2.12-cp311-cp311-win_amd64.whl (87.3 kB view details)

Uploaded CPython 3.11Windows x86-64

madb_anthropic-0.2.12-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (650.7 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

madb_anthropic-0.2.12-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (654.1 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ARM64

madb_anthropic-0.2.12-cp311-cp311-macosx_11_0_arm64.whl (92.6 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

madb_anthropic-0.2.12-cp310-cp310-win_amd64.whl (86.3 kB view details)

Uploaded CPython 3.10Windows x86-64

madb_anthropic-0.2.12-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (610.2 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

madb_anthropic-0.2.12-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (614.1 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ ARM64

madb_anthropic-0.2.12-cp310-cp310-macosx_11_0_arm64.whl (93.9 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

Details for the file madb_anthropic-0.2.12-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for madb_anthropic-0.2.12-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 b4ad5325e516b6e2f7717ad3c246eadee8abf59a9dea92f16af17e65db74558d
MD5 44b107c57ae73d16e268c454a1c63ee3
BLAKE2b-256 ac4764e153fd687dfae03c804c50f00541f379aa0e56b955087c0ddd79736783

See more details on using hashes here.

Provenance

The following attestation bundles were made for madb_anthropic-0.2.12-cp313-cp313-win_amd64.whl:

Publisher: release-anthropic-shim.yml on spshkar84/meta-agents-db-engine

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file madb_anthropic-0.2.12-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for madb_anthropic-0.2.12-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 07c42695225ea413f5b7bea6e463bf707a9c760314e5b1b12b30cff36ad506bf
MD5 e4825afa06efa929c0e66ad2cef5befa
BLAKE2b-256 cfa0c6ac14b410cc36724758deeabe4ecc6e8f915dede37fd046f5822493267d

See more details on using hashes here.

Provenance

The following attestation bundles were made for madb_anthropic-0.2.12-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: release-anthropic-shim.yml on spshkar84/meta-agents-db-engine

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file madb_anthropic-0.2.12-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for madb_anthropic-0.2.12-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 8fe9eb6b9aae0a61cbdf502ca9b6c3b77af4c5e255fcffb7f22caf5bb346933f
MD5 b32b1af8503e881b6d900c2ee3999ae6
BLAKE2b-256 2c2c69635993dbf6935a881ed5532b8767014e3cd269024547eaa4ac30edbfaf

See more details on using hashes here.

Provenance

The following attestation bundles were made for madb_anthropic-0.2.12-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: release-anthropic-shim.yml on spshkar84/meta-agents-db-engine

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file madb_anthropic-0.2.12-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for madb_anthropic-0.2.12-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3c05434225072e10e3d50f1e3ad73e018bd31762da97b4fba8547e5f5d97ee9f
MD5 c04f2d9590b2020c0bb9b029003484fc
BLAKE2b-256 a962b68d1fc23acb9e89acd1aaf017acf81075b1951bd86bcbfd511928587173

See more details on using hashes here.

Provenance

The following attestation bundles were made for madb_anthropic-0.2.12-cp313-cp313-macosx_11_0_arm64.whl:

Publisher: release-anthropic-shim.yml on spshkar84/meta-agents-db-engine

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file madb_anthropic-0.2.12-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for madb_anthropic-0.2.12-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 53801da215fd65e400874e1012d271340e02725195c83d12581043366af8ab5a
MD5 832734cd19dbd2b9735945426a0b9cfd
BLAKE2b-256 723d030a810fa9a128e9187b7031b1bcfc1e49e3ab41d6a782a6804ab8c4e7ae

See more details on using hashes here.

Provenance

The following attestation bundles were made for madb_anthropic-0.2.12-cp312-cp312-win_amd64.whl:

Publisher: release-anthropic-shim.yml on spshkar84/meta-agents-db-engine

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file madb_anthropic-0.2.12-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for madb_anthropic-0.2.12-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b203358143a04acadef2208a413ac3634135e39c76b2bf72e0b5cdd4a9044b9c
MD5 b0d490b47847b3d384a1ad16d9c6b99b
BLAKE2b-256 62c65b3c43edb6201117a6c6ffbf021b259875815ff4456127cadc7bdb49d161

See more details on using hashes here.

Provenance

The following attestation bundles were made for madb_anthropic-0.2.12-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: release-anthropic-shim.yml on spshkar84/meta-agents-db-engine

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file madb_anthropic-0.2.12-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for madb_anthropic-0.2.12-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 63a095439138bd5a56e2102d57f38c81bf9af6df7d305d42e6da9af7ad3964e7
MD5 8fde0418535fa4eb6ebbf0d52430a89a
BLAKE2b-256 2c6d4b885af8d8c06b981b19ab1c91730444d31052ba28797383d442ae5f1afe

See more details on using hashes here.

Provenance

The following attestation bundles were made for madb_anthropic-0.2.12-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: release-anthropic-shim.yml on spshkar84/meta-agents-db-engine

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file madb_anthropic-0.2.12-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for madb_anthropic-0.2.12-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8b44f3d2d9c2f405cae80c7789e9118ac48865d3afea76908e36ab137b47e137
MD5 5c3f78a40db35da89295cb0b0578abed
BLAKE2b-256 1791ed60ccc4aa692d65b02c67f94c1fb5d7114e5c54323746ef6d78502f0253

See more details on using hashes here.

Provenance

The following attestation bundles were made for madb_anthropic-0.2.12-cp312-cp312-macosx_11_0_arm64.whl:

Publisher: release-anthropic-shim.yml on spshkar84/meta-agents-db-engine

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file madb_anthropic-0.2.12-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for madb_anthropic-0.2.12-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 04b6284b92fe155271ba58b7e5900264626c1e502f786bb6bd69431df2d20d71
MD5 c6aa844e661738295c7ce5c081c12411
BLAKE2b-256 20b7d899b008269d4f4466ec27caa4beb1251ba8cc6b6980e88f349e9fa6116e

See more details on using hashes here.

Provenance

The following attestation bundles were made for madb_anthropic-0.2.12-cp311-cp311-win_amd64.whl:

Publisher: release-anthropic-shim.yml on spshkar84/meta-agents-db-engine

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file madb_anthropic-0.2.12-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for madb_anthropic-0.2.12-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 833876fa9247300ea09412e077dc936bbb476c4a549a2b525d7ed7eed2b0099f
MD5 02cd03dcc2e2731d580c5fd05fd2392f
BLAKE2b-256 3a79f72b3f472ff7a1e10d8cae40b2645561c43818fbc67646033e9171cddd93

See more details on using hashes here.

Provenance

The following attestation bundles were made for madb_anthropic-0.2.12-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: release-anthropic-shim.yml on spshkar84/meta-agents-db-engine

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file madb_anthropic-0.2.12-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for madb_anthropic-0.2.12-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 bf24b94e4e8f2761eb9d9008395a0ca5a66e645a917fed68ecc253cab4689a6d
MD5 5ebd8598e7b5a72210abf5459ce287c5
BLAKE2b-256 76eaba717399f3f155005c44e3e513fd2b1cfecd07495de3edf4b7c4f344b9eb

See more details on using hashes here.

Provenance

The following attestation bundles were made for madb_anthropic-0.2.12-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: release-anthropic-shim.yml on spshkar84/meta-agents-db-engine

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file madb_anthropic-0.2.12-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for madb_anthropic-0.2.12-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ddc59605358c9deeb8b693fc339de90b6a779f76b93e13398c81cf9f4b5cf84b
MD5 390436add10a5c738f25f0133fe7aa24
BLAKE2b-256 c7afc101e3bb80c39e1b2e2c7fd19d910051a874cb2ed2624379f1134c730584

See more details on using hashes here.

Provenance

The following attestation bundles were made for madb_anthropic-0.2.12-cp311-cp311-macosx_11_0_arm64.whl:

Publisher: release-anthropic-shim.yml on spshkar84/meta-agents-db-engine

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file madb_anthropic-0.2.12-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for madb_anthropic-0.2.12-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 af9989b86f44a2e669389166610e2eed01f3912a236821d2810bac3237202823
MD5 c303f2509debe61b9ad01c1cdf918bc0
BLAKE2b-256 aacb1258169b1002b6f6de1a4c426489c29a362f2caef2a76ad46a633597a249

See more details on using hashes here.

Provenance

The following attestation bundles were made for madb_anthropic-0.2.12-cp310-cp310-win_amd64.whl:

Publisher: release-anthropic-shim.yml on spshkar84/meta-agents-db-engine

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file madb_anthropic-0.2.12-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for madb_anthropic-0.2.12-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a726e4ad05f3b2e360444233fd348fd082477b1fc3ca6c890f3087d998bc8341
MD5 964d09514a5d4c338c6a09d70024f215
BLAKE2b-256 86f25b267d775ec111fca47556efd960af00ae5d5048776e6495d5d6c7ff7ab9

See more details on using hashes here.

Provenance

The following attestation bundles were made for madb_anthropic-0.2.12-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: release-anthropic-shim.yml on spshkar84/meta-agents-db-engine

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file madb_anthropic-0.2.12-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for madb_anthropic-0.2.12-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 b5f340c1a4fc85568f90d288a5694be2e1f8714db35f9eea930a76c2dfc7f701
MD5 28893929397900106063fd3cdef669f1
BLAKE2b-256 1cdf967fa2d3f37016386d265c99a999b83386a01e0491f56fbf37e8e519355d

See more details on using hashes here.

Provenance

The following attestation bundles were made for madb_anthropic-0.2.12-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: release-anthropic-shim.yml on spshkar84/meta-agents-db-engine

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file madb_anthropic-0.2.12-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for madb_anthropic-0.2.12-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b34a106781b8b01a80e884f12a630b951b7b72d5bcfd6521336b5df67d86e901
MD5 f6b42bc68d91b49beeb49f457faac45f
BLAKE2b-256 b0cbc4bc41e0173ad820cfceb4ce5bb59ee378eddd662a8c183d8c05ced7558e

See more details on using hashes here.

Provenance

The following attestation bundles were made for madb_anthropic-0.2.12-cp310-cp310-macosx_11_0_arm64.whl:

Publisher: release-anthropic-shim.yml on spshkar84/meta-agents-db-engine

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.2.13

16 files

This release

0.2.12 This release

16 files

0.2.11

16 files

0.2.10

12 files

0.2.6

12 files

0.1.0

12 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page