# user_agents_dir

> **Function** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/_paths/user_agents_dir)

Return the launch user's tool-agnostic `~/.agents` directory.

## Signature

```python
user_agents_dir() -> Path | None
```

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/4bfa52000ef65ac623d8ada0cb67f67cbdd663ea/libs/code/deepagents_code/_paths.py#L352)