Metadata-Version: 2.4
Name: recallix
Version: 0.2.6
Summary: Python client and MCP server for Recallix, an LLM-free memory layer for AI agents
License: Apache-2.0
Project-URL: Homepage, https://github.com/AyishikD/Recallix
Project-URL: Source, https://github.com/AyishikD/Recallix
Keywords: memory,ai-agents,llm,mcp,rag
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: requests>=2.33.0
Dynamic: license-file

# recallix (Python)

Client and MCP server for [Recallix](https://github.com/AyishikD/Recallix): an LLM-free memory
layer for AI agents. Recallix runs on your own machine, needs no LLM calls, and declines
instead of guessing.

```bash
pip install recallix
```

You need a running Recallix server. The quickest way is
`docker compose up -d` in the [repository](https://github.com/AyishikD/Recallix); see the quickstart there.

```python
from recallix import Memory

mem = Memory(api_key="rx_...")              # base_url defaults to http://localhost:8000
mem.store("I moved to Pune last month for a job at Infosys.")
out = mem.recall("Where do I live?")
print(out["status"], [m["content"] for m in out["memories"]])   # CONSISTENT ['I moved to Pune ...']
print(mem.recall("What is my brother's name?")["status"])        # ABSTAINED: nothing answers it
mem.used(out)                               # one line of feedback: Recallix learns from it on its own
```

How readily recall answers is one option (server 0.2.5 or newer; default `"balanced"`):

```python
mem.recall("Which came first, the Goa trip or the Pune workshop?", mode="helpful")   # fewer refusals, computed_answer
mem.recall("What dose did the doctor prescribe?", mode="cautious")                     # checks every answer twice
```

Storing a whole conversation at once (server 0.2.6 or newer; an older server gets one store per message):

```python
mem.store_many(["I moved to Pune in March.", {"content": "Mira got married.", "timestamp": 1717200000}])
```

## Changes

* **0.2.6**: `store_many(items)` stores many messages in one request per 100 (`POST /memory/store_batch`).
* **0.2.5**: `recall(..., mode="cautious" | "balanced" | "helpful")`; `store(..., timestamp=...)` keeps when a message was originally said.
* **0.2.4**: `requests>=2.33.0`.

## MCP (Claude Desktop, Cursor, any MCP client)

```json
"mcpServers": {
  "recallix": {
    "command": "recallix-mcp",
    "env": {"RECALLIX_API_KEY": "rx_...", "RECALLIX_AGENT_ID": "claude-desktop"}
  }
}
```

Environment: `RECALLIX_API_KEY` (required), `RECALLIX_URL` (default `http://localhost:8000`),
`RECALLIX_AGENT_ID` (default `mcp`).

License: Apache-2.0.
