# stored_key_reaches_runtime

> **Function** in `deepagents_code`

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

Whether a stored credential copied onto `env_var` would be read.

A present `DEEPAGENTS_CODE_` override outranks the store: the apply pass
skips the copy outright, and the canonical name it would have written is
then ignored by `resolve_env_var`. That holds even when the override is
empty, which suppresses the canonical name entirely.

## Signature

```python
stored_key_reaches_runtime(
    env_var: str,
) -> bool
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `env_var` | `str` | Yes | Canonical env var name the store would be copied onto. |

## Returns

`bool`

`True` when no prefixed override stands in the way.

---

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