Memories are per-agent text snippets injected into the agent’s context at session start. They are intended for facts, preferences, and instructions that the agent should remember across sessions — for example, a user’s coding style or a recurring project convention. Memories can be searched with a keyword query (Documentation Index
Fetch the complete documentation index at: https://docs.litellm-agent-platform.ai/llms.txt
Use this file to discover all available pages before exploring further.
?q=) or filtered by tag (?tag=). When the harness’s search_memory tool calls GET /memory?q=..., the platform automatically bumps times_applied and last_applied_at on the returned rows so you can track which memories are actually being used.
Endpoints
| Method | Path | Description |
|---|---|---|
GET | /api/v1/managed_agents/agents/{agent_id}/memory | List memories |
POST | /api/v1/managed_agents/agents/{agent_id}/memory | Create a memory |
PATCH | /api/v1/managed_agents/agents/{agent_id}/memory/{memory_id} | Update a memory |
DELETE | /api/v1/managed_agents/agents/{agent_id}/memory/{memory_id} | Delete a memory |
List memories
Case-insensitive substring search against memory
text. When provided, only memories whose text contains this string are returned.Filter to memories whose
tags array includes this exact tag value.q and tag can be combined — results must satisfy both conditions.
Returns an array of ApiMemory objects.
Create a memory
Body parameters
The memory content to store. Must be at least one character.
Up to 8 tags for categorizing and filtering this memory.
Optional free-form type label, e.g.
preference, fact, instruction.Integer priority used to order memories when multiple are injected. Higher values are injected first.
Origin of the memory. One of:
agent, slack, ui. Defaults to ui when called from the API. The harness sets agent; integrations like Slack set slack.ApiMemory object.
Update a memory
New memory content.
New tag list. Replaces the existing tags.
New type label.
New priority integer.
Set to
true to suppress this memory without deleting it. A disabled memory is excluded from context injection and search_memory results but remains in the database for audit purposes.ApiMemory object.
Delete a memory
disabled: true) instead of deleting if you may want to restore the memory later.
Returns 204 No Content.
ApiMemory response fields
Unique memory ID.
ID of the agent this memory belongs to.
The memory content.
List of tag strings.
Type label.
Injection priority. Higher values are injected first.
When
true, this memory is suppressed from context injection and search without being deleted.Number of times this memory has been returned by a
GET /memory?q= search (i.e. how often the harness’s search_memory tool has fetched it).ISO 8601 timestamp of the last time this memory was returned in a search.
null if never searched.Origin of the memory:
agent, slack, or ui.ISO 8601 creation timestamp.