Prerequisites
This guide assumes that you have an active CoreWeave account.Create a new API access token
API access tokens authenticate programmatic access to CoreWeave services. Create them in the CoreWeave Cloud Console. To create a new access token, complete the following steps:- In Cloud Console, navigate to Tokens, and then click the Create Token button in the upper-right corner.
-
In the Create API Token dialog, complete the following fields to configure the token values, and then click Create:
Field Description Name The name of the token. Expiration How long the token remains valid. Note A description for future reference. -
Select one of the following options:
After you complete these steps, your new API access token is ready to use with CoreWeave services.
Option Description Token Secret Copy and store the token secret for use cases such as scraping metrics, scraping logs, self-hosted Grafana setup, or to add the token secret to an existing kubeconfig.Kubeconfig Create and download a kubeconfigfor a specific cluster, so you can interact with the cluster using commands likekubectl. Akubeconfigcan access multiple clusters when you switch contexts.
Authorization: Bearer headers when calling api.coreweave.com. The Token Secret is different from the S3-compatible Access Key and secret key used for bucket operations.
If you’re connected to a Kubernetes cluster and need to retrieve an existing token secret, it’s embedded in your
kubeconfig. To read it, run the following command: