> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mutagent.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Providers

> Manage LLM providers on the Platform with the Python SDK.

Providers connect your Platform account to LLM providers (BYOK). The SDK lists, adds, and tests them.
The credential is the **name** of an env var holding the key — never the key itself.

```python theme={null}
from mutagent import Mutagent

client = Mutagent()

# List configured providers
providers = client.provider_configs.list_providers()

# Add one — points at the env var that holds the key
client.provider_configs.create_provider(
    name="openai",
    credentials_ref="OPENAI_API_KEY",
)

# Verify a provider's credentials work
client.provider_configs.test_provider(id="<provider-id>")
```

<Note>
  Managing providers interactively is usually easier through the
  [`mutagent providers`](/cli/overview) CLI or the dashboard. Use the SDK when you're scripting it.
</Note>
