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

# SQLite

> Persist Agno sessions and other data in a local SQLite database.

`SqliteDb` stores Agent, Team, and Workflow sessions, memories, knowledge, evaluations, and traces in [SQLite](https://www.sqlite.org).

## Usage

Install Agno with the `sqlalchemy` and `openai` packages:

```shell theme={null}
uv pip install agno sqlalchemy openai
```

```python sqlite_for_agent.py theme={null}
from agno.agent import Agent
from agno.db.sqlite import SqliteDb

db = SqliteDb(db_file="tmp/data.db")
agent = Agent(db=db)
```

## Parameters

<Snippet file="db-sqlite-params.mdx" />
