# AuthManagerScreen

> **Class** in `deepagents_code`

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

Modal that lists configured providers and lets the user manage keys.

Reachable via the `/auth` slash command. Always dismisses with `None`;
state changes are persisted by `AuthPromptScreen` and reflected by
re-rendering the option list when this screen is reopened or after a
save/delete completes.

Well-known providers whose integration package isn't installed yet are
surfaced greyed-out so they stay discoverable. Selecting one routes
through an install confirmation: on confirm the screen records the extra on
`pending_install_extra` and dismisses so the app can install it (mirroring
the model selector's install-on-select flow) and reopen the manager.

## Signature

```python
AuthManagerScreen(
    self,
    *,
    initial_provider: str | None = None,
)
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `initial_provider` | `str \| None` | No | Provider whose row should start highlighted — set when reopening after an install-on-select so the cursor lands on the just-installed provider ready for a key, rather than resetting to the top of the list. (default: `None`) |

## Extends

- `ModalScreen[None]`

## Constructors

```python
__init__(
    self,
    *,
    initial_provider: str | None = None,
) -> None
```

| Name | Type |
|------|------|
| `initial_provider` | `str \| None` |


## Properties

- `BINDINGS`
- `CSS`
- `pending_install_extra`
- `pending_install_provider`

## Methods

- [`compose()`](https://reference.langchain.com/python/deepagents-code/tui/widgets/auth/AuthManagerScreen/compose)
- [`on_mount()`](https://reference.langchain.com/python/deepagents-code/tui/widgets/auth/AuthManagerScreen/on_mount)
- [`on_click()`](https://reference.langchain.com/python/deepagents-code/tui/widgets/auth/AuthManagerScreen/on_click)
- [`on_mouse_move()`](https://reference.langchain.com/python/deepagents-code/tui/widgets/auth/AuthManagerScreen/on_mouse_move)
- [`on_leave()`](https://reference.langchain.com/python/deepagents-code/tui/widgets/auth/AuthManagerScreen/on_leave)
- [`on_option_list_option_selected()`](https://reference.langchain.com/python/deepagents-code/tui/widgets/auth/AuthManagerScreen/on_option_list_option_selected)
- [`action_cancel()`](https://reference.langchain.com/python/deepagents-code/tui/widgets/auth/AuthManagerScreen/action_cancel)
- [`action_cursor_down()`](https://reference.langchain.com/python/deepagents-code/tui/widgets/auth/AuthManagerScreen/action_cursor_down)
- [`action_cursor_up()`](https://reference.langchain.com/python/deepagents-code/tui/widgets/auth/AuthManagerScreen/action_cursor_up)

---

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