# 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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.snarkify.io/serverless-gpu-proving/snakrify-cli/authentication.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
