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

# doctor

Diagnose and fix CLI issues, including first-time setup for API keys and SSH configuration.

<RequestExample>
  ```bash Command theme={"theme":{"light":"github-light","dark":"github-dark"}}
  runpodctl doctor
  ```
</RequestExample>

## Description

The `doctor` command is the recommended way to set up `runpodctl` for the first time. It guides you through:

* Configuring your API key
* Setting up SSH keys for Pod access
* Verifying your configuration

If you encounter issues with the CLI, running `doctor` can help diagnose and fix common problems.

## Example

Run the doctor command to set up or troubleshoot your CLI:

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
runpodctl doctor
```

The command will interactively guide you through the setup process and report any issues it finds.

## Related commands

* [`runpodctl config`](/runpodctl/reference/runpodctl-config)
* [`runpodctl ssh add-key`](/runpodctl/reference/runpodctl-ssh)
