---
title: "Authenticate the SDK | Grafana Labs"
description: "Create the access policy token with the scopes the SDK needs and the optional OTLP scopes, and configure the SDK through the five environment variables with basic authentication."
---

> For a curated documentation index, see [llms.txt](/llms.txt). For the complete documentation index, see [llms-full.txt](/llms-full.txt).

# Authenticate the SDK

Create the access policy token with the scopes the SDK needs and the optional OTLP scopes, and configure the SDK through the five environment variables with basic authentication.

Estimated time: 7 min

[Start this section →](https://grafana.com/docs/learning-hub/intro-to-agent-observability/04-authenticate-the-sdk/13-why-the-sdk-needs-a-token/)
