> ## Documentation Index
> Fetch the complete documentation index at: https://phidatainc.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# SurrealDB

> Store agent, team, and workflow sessions in SurrealDB.

| Example                                                                      | Description                                                                                   |
| ---------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- |
| [SurrealDB for Agent](/examples/storage/surrealdb/surrealdb-for-agent)       | Claude agent persists sessions in SurrealDB over a WebSocket connection.                      |
| [SurrealDB for Team](/examples/storage/surrealdb/surrealdb-for-team)         | Persist a HackerNews research team's sessions in SurrealDB with structured Article output.    |
| [SurrealDB for Workflow](/examples/storage/surrealdb/surrealdb-for-workflow) | Persist workflow sessions in SurrealDB for a two-step research and content planning pipeline. |
