# InstallProviderConfirmScreen

> **Class** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/tui/widgets/install_confirm/InstallProviderConfirmScreen)

Confirmation overlay for installing a model provider's extra.

Shown from the model selector when the user picks a model whose provider
integration package is not installed. Dismisses with `True` to install and
`False` to cancel; Esc cancels so the user is never forced into an install.

## Signature

```python
InstallProviderConfirmScreen(
    self,
    provider: str,
    extra: str,
    model_spec: str | None = None,
)
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `provider` | `str` | Yes | The provider whose integration is missing. |
| `extra` | `str` | Yes | The `deepagents-code` extra that installs the provider. |
| `model_spec` | `str \| None` | No | The selected `provider:model` spec, surfaced in the body by the model selector. Omitted by the `/auth` manager, which installs a provider so a key can be added rather than to switch to a specific model. (default: `None`) |

## Extends

- `ModalScreen[bool]`

## Constructors

```python
__init__(
    self,
    provider: str,
    extra: str,
    model_spec: str | None = None,
) -> None
```

| Name | Type |
|------|------|
| `provider` | `str` |
| `extra` | `str` |
| `model_spec` | `str \| None` |


## Properties

- `BINDINGS`
- `CSS`

## Methods

- [`compose()`](https://reference.langchain.com/python/deepagents-code/tui/widgets/install_confirm/InstallProviderConfirmScreen/compose)
- [`action_confirm()`](https://reference.langchain.com/python/deepagents-code/tui/widgets/install_confirm/InstallProviderConfirmScreen/action_confirm)
- [`action_cancel()`](https://reference.langchain.com/python/deepagents-code/tui/widgets/install_confirm/InstallProviderConfirmScreen/action_cancel)

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/2f56309d821db4a0d06ee03959cf842c91b7f228/libs/code/deepagents_code/tui/widgets/install_confirm.py#L123)