# CosmosOptions.ConfigureCosmosClient(string, AzureKeyCredential)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.reminders.cosmos/orleans.reminders.cosmos.cosmosoptions/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.reminders.cosmos/orleans.reminders.cosmos.cosmosoptions/methods/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Azure/Shared/Cosmos/CosmosOptions.cs#L85-L86)

```csharp
public void ConfigureCosmosClient(string accountEndpoint, AzureKeyCredential authKeyOrResourceTokenCredential)
```

Configures the Cosmos DB client.

### Parameters

- `accountEndpoint` (`string`): The account endpoint. In the form of 

```csharp
https://{databaseaccount}.documents.azure.com:443/
```

, [https://learn.microsoft.com/rest/api/cosmos-db/cosmosdb-resource-uri-syntax-for-rest](https://learn.microsoft.com/rest/api/cosmos-db/cosmosdb-resource-uri-syntax-for-rest)
- `authKeyOrResourceTokenCredential` (`AzureKeyCredential`): `Azure.AzureKeyCredential` with master-key or resource token.
