# get_db_path

> **Function** in `deepagents_cli`

📖 [View in docs](https://reference.langchain.com/python/deepagents-cli/sessions/get_db_path)

Get path to global database.

The result is cached after the first successful call to avoid repeated
filesystem operations.

## Signature

```python
get_db_path() -> Path
```

## Returns

`Path`

Path to the SQLite database file.

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/64ecf141be0479f859f4efe25d139166b45ee18c/libs/cli/deepagents_cli/sessions.py#L227)