> For the complete documentation index, see [llms.txt](https://docs.snarkify.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.snarkify.io/serverless-gpu-proving/snakrify-cli/authentication.md).

# Authentication

## 1. Create your API key

First of all, get an API key from our [cloud console](https://cloud.snarkify.io/keys). Please be aware that new API keys will be only displayed once in the popup dialog, make sure you copy it before closing.&#x20;

<figure><img src="/files/m31RLT1IMuzKp3FM7AoB" alt=""><figcaption></figcaption></figure>

## 2. Login with Snarkify CLI

Simply run:

```bash
snarkify login
```

You will be prompted to input your API key first. Upon successful authentication, you will also be asked to select an active team. If you want to switch to a different team later, just run the `snarkify team switch` command.&#x20;

## 3. Logout with Snarkify CLI

If you want to logout, simply run&#x20;

```
snarkify logout
```

Once logout, you are not able to interact with other Snarkify commands unless you login again.
