> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/nemo/guardrails/llms.txt.
> For full documentation content, see https://docs.nvidia.com/nemo/guardrails/llms-full.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.nvidia.com/nemo/guardrails/_mcp/server.

# nemoguardrails.cli.providers

## Module Contents

### Functions

| Name                                                                                   | Description                                                            |
| -------------------------------------------------------------------------------------- | ---------------------------------------------------------------------- |
| [`_get_provider_completions`](#nemoguardrails-cli-providers-_get_provider_completions) | Get list of providers based on type.                                   |
| [`_list_providers`](#nemoguardrails-cli-providers-_list_providers)                     | List all available providers.                                          |
| [`find_providers`](#nemoguardrails-cli-providers-find_providers)                       | List and select LLM providers interactively.                           |
| [`select_provider`](#nemoguardrails-cli-providers-select_provider)                     | Let user select a specific provider based on the type.                 |
| [`select_provider_type`](#nemoguardrails-cli-providers-select_provider_type)           | Let user select between text completion and chat completion providers. |
| [`select_provider_with_type`](#nemoguardrails-cli-providers-select_provider_with_type) | Let user select both provider type and specific provider.              |

### Data

[`ProviderType`](#nemoguardrails-cli-providers-ProviderType)

[`log`](#nemoguardrails-cli-providers-log)

### API

```python
nemoguardrails.cli.providers._get_provider_completions(
    provider_type: typing.Optional[nemoguardrails.cli.providers.ProviderType] = None
) -> typing.List[str]
```

Get list of providers based on type.

```python
nemoguardrails.cli.providers._list_providers() -> None
```

List all available providers.

```python
nemoguardrails.cli.providers.find_providers(
    list_only: bool = typer.Option(False, '--list...
)
```

List and select LLM providers interactively.

This command provides an interactive interface to explore and select LLM providers.
It supports both text completion and chat completion providers.

When run without options:

* Type to search for provider type (text/chat completion)
* Type to search for specific provider
* Use arrows to navigate and Tab to complete

When run with --list:

* Simply lists all available providers
* No selection is made

```python
nemoguardrails.cli.providers.select_provider(
    provider_type: typing.Optional[nemoguardrails.cli.providers.ProviderType] = None
) -> typing.Optional[str]
```

Let user select a specific provider based on the type.

```python
nemoguardrails.cli.providers.select_provider_type() -> typing.Optional[nemoguardrails.cli.providers.ProviderType]
```

Let user select between text completion and chat completion providers.

```python
nemoguardrails.cli.providers.select_provider_with_type() -> typing.Optional[typing.Tuple[str, str]]
```

Let user select both provider type and specific provider.

```python
nemoguardrails.cli.providers.ProviderType = Literal['text completion', 'chat completion']
```

```python
nemoguardrails.cli.providers.log = logging.getLogger(__name__)
```