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.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 axonio 0.2.0
File Size Uploaded Provenance Actions
axonio-0.2.0.tar.gz 23.7 kB Without provenance Details for axonio-0.2.0.tar.gz

Built distribution (wheel)

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

Total release size: 51.3 kB

Release files / axonio-0.2.0.tar.gz

Download URL axonio-0.2.0.tar.gz
Size 23.7 kB
Tags Source
SHA-256 checksum
How to use checksums
21dcc69c8e1c199b9099b71945d150b50c088a170e9896034993a0b69c3be482
BLAKE2b-256 checksum
How to use checksums
a2a6481ebc2f7752fa87e3f60f48e35dacfc0513bc06104eb0faa9029bf5669b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

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

Download URL axonio-0.2.0-py3-none-any.whl
Size 27.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d08fc4d22cb2d352330b345494805a84a6f0f4d02d42d623c11ebb0ad5af8de5
BLAKE2b-256 checksum
How to use checksums
4ac7f0747c13fa875f0decc44ad19c629668c07f426f9e5b848715d40e4e13de
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for axonio 0.2.0

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.0 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