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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
