# fetch_langsmith_project_url_or_raise

> **Function** in `deepagents_code`

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

Fetch the LangSmith project URL, raising on any failure.

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.

## Signature

```python
fetch_langsmith_project_url_or_raise(
    project_name: str,
) -> str
```

## Parameters

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

## Returns

`str`

Project URL string.

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/a98f0dfa8d534d8a1885b524632400e52db22ac6/libs/code/deepagents_code/config.py#L2432)