# get_stored_base_url

> **Function** in `deepagents_code`

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

Return the base URL paired with `provider`'s stored key, or `None`.

Returns `None` both when no key is stored and when a key is stored without
an accompanying base URL (the user left the field blank, meaning "use the
provider default"). Callers distinguish the two via `get_stored_key`.

## Signature

```python
get_stored_base_url(
    provider: str,
) -> str | None
```

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/7794b61a6e76230e8c7a49bdce808b3728305914/libs/code/deepagents_code/auth_store.py#L393)