pip install harny-ai==0.1.2 Copy PIP instructions
Harny gives each person your app's AI serves a private memory that keeps up when facts change. This package is the Python client: ingest timestamped text, check its status, delete it when required, and recall current facts with evidence.
#1 on BEAM at 128K tokens, the public benchmark for long-term memory in agents. Results and methodology
Documentation: Quickstart · Memory API overview
Sign up at console.harny.ai and create an app key, or run harny init in your project folder and the key is saved to .env. The client reads it from HARNY_API_KEY.
from harny import SyncHarnyClient with SyncHarnyClient() as harny: # reads HARNY_API_KEY harny.provision_user("demo-user", "demo@example.com") # add each person once; repeating it is safe receipt = harny.ingest_data_point( "Budget for the Acme pilot moved to 40k.", timestamp="2026-07-28T16:00:00Z", user="demo-user", ) harny.wait_for_ingestion(receipt.ingestionId, user="demo-user") page = harny.recall("What is the Acme pilot budget?", user="demo-user") print(page.results[0].content) user names the person; each recall returns that person's memory and nothing from anyone else's. HarnyClient is the async client: async with HarnyClient() as harny: and await each call.
The same calls from the command line: harny ingest " " --user and harny query " " --user .
For agents, the client also has provision_user, assemble_context, record_action and list_actions. See the agent harness overview.
from harny import HarnyAPIError, HarnyConnectionError try: page = harny.recall("What is the Acme pilot budget?", user="demo-user") except HarnyConnectionError: ... # nothing reached Harny; retry except HarnyAPIError as e: print(e.status_code, e.error_code, e.recovery_hint, e.retry_after_s) Where next Quickstart in cURL, Python and TypeScript Memory API overview MCP server for Claude, Cursor, VS Code and other MCP clients support@harny.ai License Apache-2.0.
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
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.
None of the files in this release were uploaded with provenance metadata.
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.




