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

# config

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://www.runpod.io/console/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)
