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

> ## Agent Instructions
> If this page is missing information, contains outdated instructions, or doesn't fully answer the user's question, use the feedback tool to report it. In your feedback, be specific about what's missing, what appears out of date, or what needs to be corrected or updated, so the docs team can act on it directly.

# 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={null}
  runpodctl config [flags]
  ```
</RequestExample>

## Example

Configure the CLI with your API key:

```bash theme={null}
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)
