About Agentkeeper
Agentkeeper is an MCP server published by Thinklanceai in the RAG category: own your AI memory — import ChatGPT, Claude and Gemini exports, see what each AI knows about you. Checkpoint/restore and cross-model continuity for agents. Conduid read 12 tools from its source: add_fact, checkpoint, compress, find_related, gdpr_export, health and 6 more. It is published to PyPI as agentkeeper-ai and runs with uvx.
The repository has 124 stars and 18 forks, is licensed MIT, and its last commit was on 9 Jun 2026. The latest release is v1.1.2 (20 May 2026): Performance release. No public API changes — drop-in upgrade from 1.1.x. Faster compression at scale Compression (consolidation + contradiction arbitration) is now vecto… The release before it was v1.1.0 (20 May 2026). It passes 4 of the 5 static checks Conduid ran on the repository; it does not pass Dependencies pinned. Its topics include agent-memory, ai-memory, cognitive-continuity, cross-model, embeddings and long-term-memory.
Install
uvx agentkeeper-aipip install agentkeeper-aigit clone https://github.com/Thinklanceai/agentkeeperTools (12)
add_factAdd a fact to the agent's memory.| Parameter | Type | Description |
|---|---|---|
| content * | string | The fact's textual content. |
| critical | boolean | If True, treats the fact as critical (importance>=0.95). |
| fact_type | string | One of 'decision', 'preference', 'constraint', 'relationship', 'task_state', 'transient', 'identity', 'event', 'fact'. Drives decay rate. |
| importance | number | 0-1, higher is harder to evict (default 0.7). |
| tier | string | One of 'working', 'episodic', 'semantic', 'archival'. If omitted, inferred from content. |
| ttl | string | Optional TTL like '30d', '12h', '7d12h', 'P30D'. |
checkpointFreeze the agent's cognitive state into an immutable snapshot.| Parameter | Type | Description |
|---|---|---|
| execution_state | object | Optional opaque, JSON-serialisable payload (e.g. current file, pending task, open todos). Stored and returned verbatim; never interpreted or executed. |
| label | string | Optional human-readable label. |
compressRun the compression pipeline (expiration → decay → consolidation| Parameter | Type | Description |
|---|---|---|
| use_llm | boolean | When True, uses the agent's current provider to synthesise consolidated facts. Otherwise consolidation keeps the canonical fact as-is. |
find_relatedReturn entities reachable from `entity` within `max_hops`.| Parameter | Type | Description |
|---|---|---|
| direction | string | 'out', 'in', or 'both'. |
| entity * | string | starting node. |
| max_hops | integer | BFS depth (default 2). |
gdpr_exportReturn a JSON-serialisable export of every fact, triple, andhealthReturn the cognitive observability snapshot.linkAdd a directed graph relation (subject -[predicate]-> object).| Parameter | Type | Description |
|---|---|---|
| confidence | number | |
| object * | string | |
| predicate * | string | |
| subject * | string | |
| ttl | string |
list_checkpointsList this agent's checkpoints, oldest first.purge_expiredRemove facts and triples whose TTL has elapsed.recallSemantic recall — return top_k facts most relevant to `query`.| Parameter | Type | Description |
|---|---|---|
| min_score | number | Filter out facts below this similarity score. |
| query * | string | Natural-language question or topic. |
| top_k | integer | Maximum number of results. |
restoreRestore the agent's cognitive state from a checkpoint.| Parameter | Type | Description |
|---|---|---|
| snapshot_id * | string | The checkpoint id to restore (cp_...). |
set_identitySet or merge the agent's persistent identity.| Parameter | Type | Description |
|---|---|---|
| constraints | array | |
| merge | boolean | |
| name | string | |
| principles | array | |
| role | string |
Security checks
- ✓README presentThe repository's README runs to about 1.8K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- !Dependencies pinnedNo lockfile. Installs can pull different code over time.
- ✓No dynamic code executionScanned 71 source files and found no eval, dynamic Function or shell execution.
1 check has not been run yet.
Releases
README
The repository's README runs to about 1.8K words, fetched 12 days ago. The original in the repository is authoritative.
Read full README