> ## Documentation Index
> Fetch the complete documentation index at: https://runpod-b18f5ded-lg-ssh-agents-docs438.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# config

> Configure runpodctl with your Runpod API key and API endpoint URL so the CLI can authenticate and manage account resources.

Configure the Runpod CLI with your API credentials and API URL to enable programmatic access to your Runpod resources.

<RequestExample>
  ```bash Command theme={"theme":{"light":"github-light","dark":"github-dark"}}
  runpodctl config [flags]
  ```
</RequestExample>

## Example

Configure the CLI with your API key:

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
runpodctl config --apiKey "your-api-key-here"
```

<Note>
  For first-time setup, we recommend using [`runpodctl doctor`](/runpodctl/reference/runpodctl-doctor) instead, which guides you through API key configuration and SSH key setup interactively.
</Note>

## Flags

<ResponseField name="--apiKey" type="string">
  Your Runpod API key, which authenticates the CLI to access your account. You can generate an API key from the [Runpod console](https://console.runpod.io/user/settings).
</ResponseField>

<ResponseField name="--apiUrl" type="string" default="https://api.runpod.io/graphql">
  The Runpod API endpoint URL. The default value should work for most users.
</ResponseField>

## Related commands

* [`runpodctl doctor`](/runpodctl/reference/runpodctl-doctor)
* [`runpodctl user`](/runpodctl/reference/runpodctl-user)
