> For the complete documentation index, see [llms.txt](https://wiki.code-solutions.dev/serverassistantai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.code-solutions.dev/serverassistantai/configuration/credentials-yaml-file.md).

# Credentials YAML File

The credentials.yml file is used to store API keys and other credentials required by ServerAssistantAI and its addons. This file is updated dynamically as you install new addons.

### Configuring Credentials:

* `credentials.cohere.api_key`: Your [Cohere](https://dashboard.cohere.ai/api-keys) API key.
* `credentials.openai.api_key`: Your [OpenAI](https://platform.openai.com/api-keys) API key.

{% hint style="success" %}
To obtain credentials for each provider, please visit the [AI Providers](https://wiki.code-solutions.dev/serverassistantai/providers-and-models/ai-providers) wiki page. This page contains detailed information about the supported AI providers and where the necessary API keys or access tokens can be found.
{% endhint %}

{% hint style="info" %}
When using models from providers like Cohere or OpenAI, make sure to enter the appropriate API keys or access tokens in the `credentials.yml` file. These credentials are necessary for ServerAssistantAI to authenticate and access the required providers.
{% endhint %}

<details>

<summary>credentials.yml:</summary>

```yaml
# ServerAssistantAI Credentials Configuration
# ===========================================
# This file is updated dynamically as you install new addons that require API keys or other credentials.
# Please do not modify this file manually unless filling in the generated credentials or if instructed by an update or the documentation.
# To view the URLs for obtaining API keys for each provider, visit https://wiki.code-solutions.dev/serverassistantai/providers-and-models/ai-providers
# ===========================================

# Here you can configure credentials for services, such as APIs. Do not add your own service manually.
credentials:
  cohere:
    api_key: ''
  openai:
    api_key: ''
```

</details>
