# WelcomeBanner

> **Class** in `deepagents_cli`

📖 [View in docs](https://reference.langchain.com/python/deepagents-cli/widgets/welcome/WelcomeBanner)

Welcome banner displayed at startup.

## Signature

```python
WelcomeBanner(
    self,
    thread_id: str | None = None,
    mcp_tool_count: int = 0,
    *,
    connecting: bool = False,
    resuming: bool = False,
    local_server: bool = False,
    **kwargs: Any = {},
)
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `thread_id` | `str \| None` | No | Optional thread ID to display in the banner. (default: `None`) |
| `mcp_tool_count` | `int` | No | Number of MCP tools loaded at startup. (default: `0`) |
| `connecting` | `bool` | No | When `True`, show a "Connecting..." footer instead of the normal ready prompt. Call `set_connected` to transition. (default: `False`) |
| `resuming` | `bool` | No | When `True`, the connecting footer says "Resuming..." instead of any `'Connecting...'` variant. (default: `False`) |
| `local_server` | `bool` | No | When `True`, the connecting footer qualifies the server as "local" (i.e. a server process managed by the CLI).  Ignored when `resuming` is `True`. (default: `False`) |
| `**kwargs` | `Any` | No | Additional arguments passed to parent. (default: `{}`) |

## Extends

- `Static`

## Constructors

```python
__init__(
    self,
    thread_id: str | None = None,
    mcp_tool_count: int = 0,
    *,
    connecting: bool = False,
    resuming: bool = False,
    local_server: bool = False,
    **kwargs: Any = {},
) -> None
```

| Name | Type |
|------|------|
| `thread_id` | `str \| None` |
| `mcp_tool_count` | `int` |
| `connecting` | `bool` |
| `resuming` | `bool` |
| `local_server` | `bool` |


## Properties

- `auto_links`
- `DEFAULT_CSS`

## Methods

- [`on_mount()`](https://reference.langchain.com/python/deepagents-cli/widgets/welcome/WelcomeBanner/on_mount)
- [`update_thread_id()`](https://reference.langchain.com/python/deepagents-cli/widgets/welcome/WelcomeBanner/update_thread_id)
- [`set_connected()`](https://reference.langchain.com/python/deepagents-cli/widgets/welcome/WelcomeBanner/set_connected)
- [`set_failed()`](https://reference.langchain.com/python/deepagents-cli/widgets/welcome/WelcomeBanner/set_failed)
- [`on_click()`](https://reference.langchain.com/python/deepagents-cli/widgets/welcome/WelcomeBanner/on_click)

---

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