Skip to main content

axonio

Official Python client for Axonio: persistent memory for AI agents, with sync and async APIs.

Formerly clawdb. pip install axonio now installs this package, and import clawdb still works; AXONIO_* environment variables take precedence over CLAWDB_*. Pure Python over HTTPS: no gRPC toolchain or generated code to install.

Install

pip install axonio

Quick Start

Hosted (Axonio cloud)

Create an API key in the dashboard. With only AXONIO_API_KEY set, the client connects to the hosted gateway (https://api.axonio.xyz/api/v1/gateway).

from axonio import Axonio

with Axonio(api_key="ck_live_...", endpoint="https://api.axonio.xyz/api/v1/gateway") as db:
    memory_id = db.memory.remember("Customer prefers weekly updates", tags=["customer"])
    hits = db.memory.search("how often should we update the customer?", top_k=5)
    branch = db.branches.fork("customer-experiment")
    print(memory_id, [h.content for h in hits], branch.branch_id)

Self-hosted

Point endpoint at your clawdb-server. A bare address on the gRPC port (http://localhost:50050, the default) is mapped to the server's HTTP port (8080); any other URL is used as the HTTP API.

db = Axonio(endpoint="http://localhost:8080", agent_id="py-agent")

Async

from axonio import AsyncAxonio

async with AsyncAxonio(api_key="ck_live_...", endpoint="https://api.axonio.xyz/api/v1/gateway") as db:
    await db.memory.remember("Ship the changelog on Friday", memory_type="task")
    hits = await db.memory.search("release plan")

Behaviour

  • Sessions are opened on connect, last an hour, are renewed before they expire, and are renewed automatically if the server rejects one.
  • Network errors and 502/503/504 are retried with backoff; 429 honours Retry-After.
  • Errors are typed: ClawDBAuthError, ClawDBAccessDeniedError, ClawDBNotFoundError, ClawDBValidationError, ClawDBRateLimitError, ClawDBUnavailableError, ClawDBTimeoutError.
  • Agent ids that aren't UUIDs map to a stable UUID, the same one the TypeScript SDK derives, so an agent name means one agent in both SDKs.

Client Variants

  • Axonio for synchronous code (also exported as ClawDB)
  • AsyncAxonio for asyncio applications (also AsyncClawDB)
  • axonio() helper for environment-aware client creation

API Surface

  • db.health(), db.session (validate, refresh, revoke, active count)
  • db.memory: remember, remember_typed, search, recall, update, delete, forget, list
  • db.branches: fork, list, get, get_by_name, get_trunk, diff, merge, discard, archive (target accepts a branch id, a name, or trunk)
  • db.sync: sync, push, pull, reconcile, status
  • db.reflect: trigger, get_job, list_jobs, get_facts, get_preferences, get_contradictions, resolve_contradiction
  • db.tx: begin, remember, remember_typed, commit, rollback

Metadata

Release files for axonio 0.2.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 axonio 0.2.1
File Size Uploaded Provenance Actions
axonio-0.2.1.tar.gz 24.3 kB Without provenance Details for axonio-0.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for axonio 0.2.1
File Interpreter ABI Platform Actions
axonio-0.2.1-py3-none-any.whl Python 3 none any Details for axonio-0.2.1-py3-none-any.whl

Total release size: 52.2 kB

Release files / axonio-0.2.1.tar.gz

Download URL axonio-0.2.1.tar.gz
Size 24.3 kB
Tags Source
SHA-256 checksum
How to use checksums
d1afa6826c07cd1e9ad39815099d0db4aea76c4a9086106fca4542f5e5166406
BLAKE2b-256 checksum
How to use checksums
889f32b75ac76227d5cab9fc3e6891a35f672c38d974622c480b8775ade476f9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.18

Release files / axonio-0.2.1-py3-none-any.whl

Download URL axonio-0.2.1-py3-none-any.whl
Size 27.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2bb63bd5afac213a563ec17e33658193b9ea772097ab71daec4fe8583bca578b
BLAKE2b-256 checksum
How to use checksums
118fcf49037577d8549d661c2d8c51156df1d641c1c9d94b44aca6e3b50e92a7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.18

Security for axonio 0.2.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.2.1 This release

2 release files No 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