# apply_stored_service_credentials

> **Function** in `deepagents_code`

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

Export every stored service key into `os.environ`.

Services (e.g. web search via Tavily) have no base URL to reconcile, so
this is a plain key copy onto the canonical env var name the underlying
SDK reads. A stored key takes precedence over an existing plain env var,
matching `apply_stored_credentials`; a `DEEPAGENTS_CODE_`-prefixed override
is left authoritative because the app already treats it as the top-priority
per-session credential.

## Signature

```python
apply_stored_service_credentials() -> None
```

---

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