# fetch_langsmith_project_url

> **Function** in `deepagents_cli`

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

Fetch the LangSmith project URL via the LangSmith client.

Successful results are cached at module level so repeated calls do not
make additional network requests.

The network call runs in a daemon thread with a hard timeout of
`_LANGSMITH_URL_LOOKUP_TIMEOUT_SECONDS`, so this function blocks the
calling thread for at most that duration even if LangSmith is unreachable.

Returns None (with a debug log) on any failure: missing `langsmith` package,
network errors, invalid project names, client initialization issues,
or timeouts.

## Signature

```python
fetch_langsmith_project_url(
    project_name: str,
) -> str | None
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `project_name` | `str` | Yes | LangSmith project name to look up. |

## Returns

`str | None`

Project URL string if found, None otherwise.

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/1ae053f347679e58562d2b81eb6d6e6e9bbf0b07/libs/cli/deepagents_cli/config.py#L1629)