> ## 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 TypeScript 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.

```typescript theme={null}
import { Mutagent } from '@mutagent/sdk';

const client = new Mutagent();

// List configured providers
const providers = await client.providerConfigs.listProviders();

// Add one — points at the env var that holds the key
await client.providerConfigs.createProvider({
  name: 'openai',
  credentialsRef: 'OPENAI_API_KEY',
});

// Verify a provider's credentials work
await client.providerConfigs.testProvider({ 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>
