# get_available_models

> **Function** in `deepagents_cli`

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

Get available models dynamically from installed LangChain provider packages.

Imports model profiles from each provider package and extracts model names.

Results are cached after the first call; use `clear_caches()` to reset.

## Signature

```python
get_available_models() -> dict[str, list[str]]
```

## Returns

`dict[str, list[str]]`

Dictionary mapping provider names to lists of model identifiers.
Includes providers from the langchain registry, config-file
providers with explicit model lists, and `class_path` providers
whose packages expose a `_profiles` module.

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/b710a69b12e49479045eaa54dfb709326473500b/libs/cli/deepagents_cli/model_config.py#L430)