Primary command groups:
kafclaw onboard- onboarding and initial configurationkafclaw gateway- start API + dashboard + runtime serviceskafclaw status- runtime/config health snapshotkafclaw doctor- diagnostics and setup checkskafclaw security- security checks, deep audit, and safe remediation (check|audit|fix)kafclaw models- manage LLM providers and models (list|stats|auth login|auth set-key)kafclaw config/kafclaw configure- low-level and guided config changeskafclaw agent -m- one-shot interactionkafclaw skills- bundled/external skill lifecycle and auth/prereq flows (enable|disable|list|status|enable-skill|disable-skill|verify|install|update|exec|prereq|auth)kafclaw install- install local built binary (/usr/local/binroot,~/.local/binnon-root)kafclaw update- update lifecycle (plan,apply,backup,rollback)kafclaw daemon- system service lifecycle (install,uninstall,start,stop,restart,status)kafclaw completion- generate shell completion scriptskafclaw whatsapp-setup/kafclaw whatsapp-auth- WhatsApp setup and auth controlskafclaw pairing- Slack/Teams pairing approvalskafclaw group- group communication controlskafclaw knowledge- shared knowledge governance (status|propose|vote|decisions|facts)kafclaw task- cascading task protocol visibility (status --trace <id>)kafclaw kshark- Kafka diagnosticskafclaw version- print build version
Automation-friendly lifecycle output:
kafclaw onboard --jsonkafclaw install --jsonkafclaw configure --jsonkafclaw doctor --jsonkafclaw security <check|audit|fix> --jsonkafclaw update <plan|backup|apply|rollback> --jsonkafclaw daemon <install|uninstall|start|stop|restart|status> --json
Detailed command examples:
- Getting Started
- User Manual - CLI Reference section
- Manage KafClaw
- Models CLI Reference - provider management, auth, usage stats
Memory safety flags:
kafclaw doctor --fixrepairs missing memory embedding defaults.kafclaw configure --memory-embedding-enabled-set --memory-embedding-enabled=true --memory-embedding-provider local-hf --memory-embedding-model BAAI/bge-small-en-v1.5 --memory-embedding-dimension 384kafclaw configure --memory-embedding-model <new-model> --confirm-memory-wipewhen switching an already-used embedding.kafclaw configure --agent-id <agent-id> --agent-cascade-enabled-set --agent-cascade-enabled=<true|false>
Cascade safety note:
- Enabling per-agent cascade is recommended only for deterministic workflows (ops/runbook/config/code-mod).
- For ambiguous or creative tasks, keep it disabled to avoid extra latency and retry churn.
Knowledge governance notes:
- Knowledge envelopes require
schemaVersion,traceId,idempotencyKey,clawId, andinstanceId. - Duplicate knowledge envelopes (same
idempotencyKey) are ignored after first apply. - Voting outcomes follow quorum policy (
approved|rejected|expired|pending) fromknowledge.voting.*.
Cascading protocol visibility:
kafclaw task status --trace <trace-id> --json- Returns ordered cascade task states plus transition audit events for restart-safe debugging.
Skills execution example:
kafclaw skills exec <skill-id> --input '{"text":"..."}'