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

# SQLite

> Use SQLite for local agent session storage.

Agno supports using [SQLite](https://www.sqlite.org) as a database with the `SqliteDb` class.

## 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

# Setup the SQLite database
db = SqliteDb(db_file="tmp/data.db")

# Setup a basic agent with the SQLite database
agent = Agent(db=db)
```

## Params

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