# apply_stored_langsmith_auth

> **Function** in `deepagents_code`

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

Apply a `/auth`-stored LangSmith key, tracing, and redaction now.

## Signature

```python
apply_stored_langsmith_auth(
    *,
    replace_project: bool = False,
) -> None
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `replace_project` | `bool` | No | Whether the stored LangSmith project should replace the current process `LANGSMITH_PROJECT`. Startup leaves this false so an explicit environment value remains authoritative; the `/auth` save path sets it true because the saved project is the newest user choice for the already-running session. (default: `False`) |

---

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