Official SDK

Google ADK memory

A real BaseMemoryService whose ingestion actually stores sessions — powering ADK’s native memory tools.

Overview

Install google-adk-memorysync and pass MemorySyncMemoryService() to Runner(memory_service=...): all four BaseMemoryService methods are real — add_session_to_memory sends every message the user wrote to fact extraction (and raises on failure), search_memory powers ADK’s native load_memory and preload_memory tools. A context tool guarantees per-turn injection and sends the user’s message, an after_model_callback sends the invocation’s user message once the model has answered, and five structured tools give agents explicit memory. Only the durable facts are stored; the agent’s replies are not sent. The only vendor ADK integration whose ingestion is not a no-op.

Setup status and requirements

Supported version
google-adk-memorysync 1.1.0 (PyPI)
Last setup review
2026-10-01
Permissions
A MemorySync API key with read and write scopes; the delete tool needs delete permission.
Limits
Requires google-adk 2.0+ (Python 3.10+). Python only — TypeScript agents use the Vercel AI SDK or Mastra integrations.
Open setup documentation →

Capabilities

Quick Start

from google.adk.agents import LlmAgent
from google.adk.runners import Runner
from google.adk.tools import preload_memory
from google_adk_memorysync import MemorySyncMemoryService
memory_service = MemorySyncMemoryService()
agent = LlmAgent(
name="assistant",
model="your-model",
instruction="You are a helpful assistant.",
tools=[preload_memory],
)
runner = Runner(agent=agent, app_name="support",
session_service=session_service,
memory_service=memory_service)

Use Cases

ADK agents that remember users across sessions and apps

Replacing Vertex AI Memory Bank without the GCP lock-in

Guaranteed memory injection for support and assistant agents

Guides and related pages

Explore More

Add long-term memory to Google ADK

Start free with 10,000 add requests a month and no credit card. Memory is stored per end user and comes back in every later session.