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

# doctor

> Run runpodctl doctor to configure API and SSH credentials, verify the CLI setup, and diagnose common connection or configuration problems.

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

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