ksp doctor
DocsCLIksp doctor

ksp doctor

Command Reference

Diagnose system health, network permissions, cryptographic dependencies, and configuration errors.

System & Environment

Purpose

Diagnose system health, network permissions, cryptographic dependencies, and configuration errors.

Syntax

Command-line specification
bash / powershell
ksp doctor [OPTIONS]

Options & Flags

Option FlagDescription
--verbose, -vInclude detailed OS kernel info, socket limits, and environment variables.
--fixAutomatically attempt to repair permission issues or missing directory structures.

Example Usage

Example command
ksp doctor --verbose

Expected Output

════════════════════════════════════════════════════════════
══            KSP System Health & Diagnostics             ══
════════════════════════════════════════════════════════════
  [✔] OS Platform:          Windows 11 x86_64 (Kernel 10.0.22631)
  [✔] Rust Toolchain:       rustc 1.96.1 (stable-x86_64-pc-windows-msvc)
  [✔] Network Stack:        Raw UDP & TCP Socket Access OK
  [✔] Crypto Backend:       Hardware AES-NI & AVX2 Acceleration Enabled
  [✔] Configuration:        c:\Users\kush\.ksp\ksp.toml (Valid)
  [✔] Trust Anchors:        2 CA certificates loaded from local store

  Summary: 6 checks passed, 0 warnings, 0 failures. System optimal.
Implementation Notes

Run this command first whenever encountering socket binding errors, certificate rejection issues, or unexplained drops.