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.14-cp313-cp313-win_amd64.whl (89.2 kB view details)

Uploaded CPython 3.13Windows x86-64

madb_anthropic-0.2.14-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (640.8 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

madb_anthropic-0.2.14-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (631.2 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ ARM64

madb_anthropic-0.2.14-cp313-cp313-macosx_11_0_arm64.whl (93.6 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

madb_anthropic-0.2.14-cp312-cp312-win_amd64.whl (89.4 kB view details)

Uploaded CPython 3.12Windows x86-64

madb_anthropic-0.2.14-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (641.9 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

madb_anthropic-0.2.14-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (631.9 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ ARM64

madb_anthropic-0.2.14-cp312-cp312-macosx_11_0_arm64.whl (94.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

madb_anthropic-0.2.14-cp311-cp311-win_amd64.whl (90.8 kB view details)

Uploaded CPython 3.11Windows x86-64

madb_anthropic-0.2.14-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (666.3 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

madb_anthropic-0.2.14-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (669.0 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ARM64

madb_anthropic-0.2.14-cp311-cp311-macosx_11_0_arm64.whl (95.6 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

madb_anthropic-0.2.14-cp310-cp310-win_amd64.whl (90.6 kB view details)

Uploaded CPython 3.10Windows x86-64

madb_anthropic-0.2.14-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (633.9 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

madb_anthropic-0.2.14-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (636.7 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ ARM64

madb_anthropic-0.2.14-cp310-cp310-macosx_11_0_arm64.whl (96.5 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

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

File metadata

File hashes

Hashes for madb_anthropic-0.2.14-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 098ba33a78a3c08d0ca00d630c4fd3094a3c319e300cd33c760c5adf81754f54
MD5 49412fef70a3255b88f28309cd117abb
BLAKE2b-256 7ca2b78e22434bc2d4bf1d11ab615887ea031b44c24555f993ebe7c581d451b4

See more details on using hashes here.

Provenance

The following attestation bundles were made for madb_anthropic-0.2.14-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.14-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for madb_anthropic-0.2.14-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 bcb2fbfe1ea9f7d6e61eee8cfd46c02ec5c3d21085c9b66732be2d38ff6b07b4
MD5 7ae79abff1fe80fd9888e33648f62863
BLAKE2b-256 20c26d791381e546975c083800432bdf378b9c5a7746ac1c7a10cc042f07b2cd

See more details on using hashes here.

Provenance

The following attestation bundles were made for madb_anthropic-0.2.14-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.14-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for madb_anthropic-0.2.14-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 049c26f5e1c4a2ef6161a3636ebef86766feb2e95f39d799f51e39dda4d6f8ad
MD5 04436375113b18214fd4644152124643
BLAKE2b-256 d2fdb59b6fcf0c38a06f46c4ff3248ad3200adab5190053661f07a7eb867bd44

See more details on using hashes here.

Provenance

The following attestation bundles were made for madb_anthropic-0.2.14-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.14-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for madb_anthropic-0.2.14-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 056efe187b5c5ff207bbd809f658cdf830c70148d91885628914248682bea44f
MD5 96e7d33ade4a9904085ef9e6a13997bb
BLAKE2b-256 aef738e75271662ef5cea08fa95fbd59a81534fb2cddf7f526cfac1381e7e91a

See more details on using hashes here.

Provenance

The following attestation bundles were made for madb_anthropic-0.2.14-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.14-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for madb_anthropic-0.2.14-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 a09aba14fa2df5c84ac7f38486931bea92d80eab41f6f07a012526e5f4978cca
MD5 ec4a60de1e2bec068abac6d3c931195b
BLAKE2b-256 fcd5175cb0a13db7950bed7165860ec4e54eb6cb9977b5133c1d95897a7593ee

See more details on using hashes here.

Provenance

The following attestation bundles were made for madb_anthropic-0.2.14-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.14-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for madb_anthropic-0.2.14-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1ce9390b0821bfdd8f45eab7e539e0776d99a3bbb7c611ac432a0228b13c0195
MD5 cc359670c7ed6763905470397333c985
BLAKE2b-256 2a251771ab7855dbd3b9fa94b244a0b23d3be231e824d677ef70081b775a3cf6

See more details on using hashes here.

Provenance

The following attestation bundles were made for madb_anthropic-0.2.14-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.14-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for madb_anthropic-0.2.14-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 c3560d954f1c0a5400433a39205618802a26415688a5174d3fb535de74ba2ee0
MD5 82083c095bbaa36f6c92b8af52dc9d4a
BLAKE2b-256 84c9caa436b7f6461c6ed0882af327901ca431dd9a1cc87caeca04aca7e7ec1e

See more details on using hashes here.

Provenance

The following attestation bundles were made for madb_anthropic-0.2.14-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.14-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for madb_anthropic-0.2.14-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ebf9a4d4c08c21d5d694943fa24aac321d2a7b07ae2eb0694f729f7e3bfefe7c
MD5 fb8eb14af2e99725307a5b66dc6180e0
BLAKE2b-256 f601c85f1eb1ba60bf7d8695d7955097ad12933927f5cab0525c3f99dddc5815

See more details on using hashes here.

Provenance

The following attestation bundles were made for madb_anthropic-0.2.14-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.14-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for madb_anthropic-0.2.14-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 e9ed380b3aee9b506e78b0add414ca0d90f61a85a18b6486e0b152c98fc2f586
MD5 b26d46ec02c7e9f69fca04d90be58a0f
BLAKE2b-256 6b14d927f4e6a6b6e71a4be56918fc02f77b05d20fa01fa33d68b89eaf4a6d1d

See more details on using hashes here.

Provenance

The following attestation bundles were made for madb_anthropic-0.2.14-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.14-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for madb_anthropic-0.2.14-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3714bc772889bee0826316bee293016252d8b7c58e8a9ed6704eb3a273253d64
MD5 01b2365216d0f38a207365e59f90669a
BLAKE2b-256 9d73495811337a62617139862b8b0e8575fecb1118c9f61452aa25bebb1061a6

See more details on using hashes here.

Provenance

The following attestation bundles were made for madb_anthropic-0.2.14-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.14-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for madb_anthropic-0.2.14-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 920f63172b80744001d530963bdac0b4be829d81009b765c952c58a02d4d5d2e
MD5 0bfc2c64d18bc5d07147157f95647dda
BLAKE2b-256 4fecc5644fb856229b9d52c817edd5d73e78d4e98a2d83d06e7bf72d3d03f4b9

See more details on using hashes here.

Provenance

The following attestation bundles were made for madb_anthropic-0.2.14-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.14-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for madb_anthropic-0.2.14-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 153bc3d7e41ccf30f13d13ed8dc5eaf33b32d6d14940fcefec6b3798fc11b37d
MD5 eb0c0ad625ddc7bd8bb6cc47add891d7
BLAKE2b-256 b55b249e04332bb9d1fdf54b3f9ae981cf3f5626055e147d143f2770f77e559a

See more details on using hashes here.

Provenance

The following attestation bundles were made for madb_anthropic-0.2.14-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.14-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for madb_anthropic-0.2.14-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 4de093e88472df84118663b56740425627492bd0936d045e847b259466d426b8
MD5 ec5b88b738f7dbf40298771b65e867df
BLAKE2b-256 022f2e28e6e51c3ace2891cbce746846df4be2de3e1d30019bc8e9f803928302

See more details on using hashes here.

Provenance

The following attestation bundles were made for madb_anthropic-0.2.14-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.14-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for madb_anthropic-0.2.14-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 567d27dcb35f1609c3e4a380fde4aabdcb2fe3b155710c223256b25224583849
MD5 59106dcbc9cd6cc9efbd9df6bcadb10a
BLAKE2b-256 3ac97f4c7512bd4b917e1b2b0b41de424ba24e4a7549acc6fe66314bec453e6f

See more details on using hashes here.

Provenance

The following attestation bundles were made for madb_anthropic-0.2.14-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.14-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for madb_anthropic-0.2.14-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 a775b6f9d00b6b79da5149c9c321b2ee329578bb937dd7d7858d9f7736604ad5
MD5 e197d0b940fce0b3c2e559036c101875
BLAKE2b-256 9254f55106f63a7cab673188c519547d080df3f747cbff0cd3ac795b4f837501

See more details on using hashes here.

Provenance

The following attestation bundles were made for madb_anthropic-0.2.14-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.14-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for madb_anthropic-0.2.14-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 09ef9620887dbdd87e82b637682e30b04a8982f1f90985cf3757228e1b6604b1
MD5 428a4df9269ee5bee6d8fd58b3e1a09d
BLAKE2b-256 26c3755f8f63b895dcc6c27a42fab2934ec3ad927e17193f7d2fb5ef05bfed28

See more details on using hashes here.

Provenance

The following attestation bundles were made for madb_anthropic-0.2.14-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

This release

0.2.14 This release

16 files

0.2.13

16 files

0.2.12

16 files

0.2.11

16 files

0.2.10

12 files

0.2.6

12 files

0.1.0

12 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