# API Keys

Device Cloud uses API keys for authentication. This guide explains how to obtain, use, and manage your API keys.

## Getting Your API Key

1. Log in to [devicecloud.dev](https://devicecloud.dev)
2. Navigate to the console UI
3. Find your API key in the settings/account section

## Using Your API Key

### Command Line

```bash
dcd cloud --apiKey your-api-key-here
```

### Environment Variable

```bash
export DEVICE_CLOUD_API_KEY=your-api-key-here
dcd cloud  # Key will be automatically used
```


---

# 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.devicecloud.dev/getting-started/api-keys.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.
