Python SDK
Official Python client for Anona Memory.Installation
Quick Start
Client Initialization
api_key explicitly:
Methods
add_memory(space_id, content, metadata=None) -> dict
search(space_id, query, limit=10) -> list[dict]
results list directly (empty list on no match).
insights(space_id, query) -> str | None
None.
list_spaces() -> list[dict]
Async Support
Every method has anasync_ counterpart backed by a separate httpx.AsyncClient:
async with AnonaClient(...) as client: for automatic cleanup.
Error Handling
MCP Server
The SDK also ships an MCP server for connecting Anona Memory to Claude Code, Claude Desktop, and other MCP clients - see the MCP guide for setup and usage.Next Steps
MCP
Connect to Claude Code and other MCP clients
API Reference
Full REST API documentation