Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

kafkactl

$ kafkactl Community Med Risk
deviceinsight · Database & Data · Apache-2.0 · macos / linux / windows

kafkactl brings kubectl-style verbs (get, describe, create, delete, consume, produce) to Apache Kafka clusters. Supports -o json / --output json across resource commands, context switching (config use-context), and Avro/Protobuf Schema Registry integration.

FCRS-1.0 Score
88 /100
Good
Medium Confidence
Zero-Friction Install
brew install kafkactl
CLI vs MCP Decision CLI Preferred vs MCP

kafkactl get ... -o json gives agents kubectl-familiar JSON inspection and bounded --max-messages topic reads locally.

Agent-Readiness Checklist

✓ JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 23 / 25

Consistent kubectl-style verbs (get, describe), -o json / --output json support, --only-with-lag filtering, and --max-messages bounded consumption.

  • Supports -o json across get and describe commands
  • Supports --max-messages for bounded consume
Trust & Safety 21 / 25

Context isolation in config.yml and dry-run-by-default reset consumer-group-offset (requires --execute), though delete topic executes immediately.

  • reset consumer-group-offset defaults to dry-run unless --execute is passed
Setup & Portability 14 / 15

Single Go binary via Homebrew, go install, deb/rpm, and GitHub releases across macOS, Linux, and Windows.

  • Static Go binary with brew install kafkactl
Utility & Efficiency 14 / 15

Covers topics, consumer groups, ACLs, brokers, Avro/Protobuf decoding, and multi-cluster contexts in one lightweight CLI.

  • Full Kafka resource lifecycle plus Schema Registry decoding
Maintenance & Lineage 8 / 10

Actively maintained by deviceinsight/kafkactl under Apache-2.0 license with v5+ releases.

  • Active deviceinsight/kafkactl repository under Apache-2.0
Docs & Verifiability 8 / 10

Well-structured command docs at deviceinsight.github.io/kafkactl/ and Cobra --help text.

  • Complete command reference at deviceinsight.github.io/kafkactl

Security, Auth & Guardrails

Auth Modes
Config File Env API Key
Credential Storage

Stores contexts, brokers, TLS certs, and SASL credentials in ~/.config/kafkactl/config.yml (overridable via KAFKA_CTL_CONFIG or env vars).

Side Effects
Read-Only Remote Write Destructive
Cost & Quotas

Apache-2.0 open-source CLI; completely free.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# kafkactl Agent Rules
- Always pass `-o json` on `get` and `describe` commands, and `--max-messages <N>` on `kafkactl consume`.
- Run `kafkactl config current-context` before mutations and never pass `--execute` on `reset` or run `delete` without approval.

Agent-Ready Command Recipes

Safe Read-Only Queries

List Kafka topics as JSON
kafkactl get topics -o json

Returns all visible topics with partition and replication counts in structured JSON.

Inspect consumer group lag as JSON
kafkactl describe consumer-group orders-service -o json

Outputs partition offsets, lag, and active group members as JSON.

Controlled Writes & Previews

Reset consumer group offsets with execute flag
kafkactl reset consumer-group-offset orders-service --topic orders --oldest

By default prints the planned offset reset; requires --execute to commit changes.

Strengths for Agents

  • + Familiar kubectl-like UX (get, describe, use-context) reduces agent syntax errors.
  • + -o json works consistently across topics, consumer groups, and brokers.
  • + reset consumer-group-offset safely previews changes unless --execute is passed.

Caveats & Pitfalls

  • ! Running kafkactl consume without --max-messages or --exit streams forever.
  • ! Plaintext SASL passwords stored in ~/.config/kafkactl/config.yml require file permissions or env overrides.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI