ktxby Kaelio
Docs
CLI Reference

ktx status

Check ktx setup and project readiness.

Run the ktx readiness doctor. Inside a ktx project, this checks setup, project configuration, semantic search, query history, connections, and related diagnostics. Outside a project, it checks local CLI setup readiness so you know whether ktx setup can run.

Command signature

ktx status [options]

Options

FlagDescriptionDefault
--jsonPrint JSON outputfalse
-v, --verboseShow every check, including passing onesfalse
--validateOnly validate the ktx.yaml schema; skip readiness checksfalse
--no-inputDisable interactive terminal input-

Examples

# Show project status
ktx status

# Get status as JSON without interactive input
ktx status --json --no-input

# Show all checks, not only warnings and failures
ktx status --verbose

# Validate ktx.yaml without running readiness checks
ktx status --validate

# Check a project from another directory
ktx status --project-dir ./analytics

Output

ktx status prints grouped doctor checks. Agents should use ktx status --json --no-input when they need to branch on readiness state.

For llm.provider.backend: claude-code, ktx status checks that the local Claude Code session is usable. If auth fails, run the Claude Code CLI login flow, then rerun ktx status.

{
  "title": "ktx project doctor",
  "checks": [
    {
      "id": "project-config",
      "label": "Project config",
      "status": "pass",
      "detail": "warehouse"
    }
  ]
}

Common errors

ErrorCauseRecovery
No ktx project foundCurrent directory has no ktx.yaml and KTX_PROJECT_DIR is unsetktx status runs setup checks; run from a ktx project or set KTX_PROJECT_DIR for project checks
Project config check failsThe project directory is missing or has an invalid ktx.yamlRun ktx setup to resume setup
Schema validation failsktx.yaml does not match the current config schemaRun ktx status --validate --json for structured issue details, then edit ktx.yaml or rerun ktx setup
Semantic search check warnsEmbeddings are not configured or the provider probe failedRun ktx setup or inspect the check's fix field in JSON output
Query history check warnsA database has query history enabled but the warehouse prerequisites are missingFix the warehouse extension, grants, or history access, then rerun ktx status