> For the complete documentation index, see [llms.txt](https://docs.cloud.olakrutrim.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cloud.olakrutrim.com/terraform-provider-krutrim/authentication.md).

# Authentication

### API Key Setup

Set your API key:

```
export KRUTRIM_API_KEY="your_api_key"
```

### Alternative Method

```
provider "krutrim" {
  api_key = var.api_key
}
```

### Best Practices

* Do not hardcode API keys
* Use environment variables
* Rotate keys regularly
