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

# Async Sqlite for Agent

Agno supports using Sqlite asynchronously as a storage backend for Agents, with the `AsyncSqliteDb` class.

## Usage

Install the `sqlalchemy`, `aiosqlite`, `openai`, and `ddgs` packages:

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

```python async_sqlite_for_agent.py theme={null}
import asyncio

from agno.agent import Agent
from agno.db.sqlite import AsyncSqliteDb
from agno.tools.websearch import WebSearchTools

# Initialize AsyncSqliteDb
db = AsyncSqliteDb(db_file="agent_storage.db")

agent = Agent(
    db=db,
    tools=[WebSearchTools()],
    add_history_to_context=True,
    add_datetime_to_context=True,
)


async def main():
    await agent.aprint_response("How many people live in Canada?")
    await agent.aprint_response("What is their national anthem called?")


if __name__ == "__main__":
    asyncio.run(main())

```

## Params

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