Skip to main content
When you add a database to your agent, sessions are stored automatically. A session groups related runs into a conversation thread - every message, response, and piece of metadata is persisted under a session_id. This page covers how to access and configure that storage.

Configure the Session Table

By default, sessions are stored in the agno_sessions table. The table is created automatically if it doesn’t exist. Use session_table to store sessions in a custom table:
Use separate tables for different agents or environments.

What Gets Stored

Each session record contains:

Retrieve Sessions

Use get_session() to retrieve a stored session:

Works With Teams and Workflows

Session storage works identically for Teams and Workflows:
Workflow sessions store complete pipeline runs rather than conversation messages. See Workflow Sessions for details.

Next Steps

Session Summaries

Condense long conversations to save tokens.

Storage Control

Choose what gets persisted to your database.

Developer Resources