> ## Documentation Index
> Fetch the complete documentation index at: https://docs.coreweave.com/llms.txt
> Use this file to discover all available pages before exploring further.

# How do I download a kubeconfig file to access my cluster?

CKS generates a managed-auth kubeconfig when you create an API access token. Visit the [Access Tokens dashboard](https://console.coreweave.com/tokens) in the CoreWeave Cloud Console, create a token scoped to your cluster, and download the resulting kubeconfig. Save the file as `~/.kube/config`, or set `KUBECONFIG` to its path. If you use `kubectl` with multiple clusters, merge the new file into your existing config and switch contexts with `kubectl config use-context`.

The token's secret values are shown only once at creation, so save the kubeconfig immediately. Private clusters have no public API endpoint, so the kubeconfig download may not be available. See [How do I access the Kubernetes API if my cluster is private?](/support/cks/articles/how-do-i-access-the-kubernetes-api-if-my-cluster-is-private) for the supported private-access patterns.

For full details, see [Managed auth kubeconfig](/products/cks/auth-access/managed-auth/kubeconfig).

***

<Badge stroke shape="pill" color="blue" size="md">[Authentication & Access](/support/cks/tags/authentication-access)</Badge>
