Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Kantrip

CI status MIT License Sponsor on GitHub
PyPI version
Linux support macOS support

Kantrip securely manages plaintext, TLS, SASL, mTLS, and OAuth Kafka profiles for kcat, the official Kafka CLIs, Kaskade, kaf, and compatible applications. This pre-release CLI validates and displays profiles, opens scoped sessions, and checks Kafka and registry connectivity. The typed connection core validates, resolves, and renders PLAIN, SCRAM-SHA-256, SCRAM-SHA-512, mTLS, and OAuth for authenticated command sessions and ACL-independent Kafka connectivity checks.

Features

Kafka profiles

  • Schema-validated profiles in a private transactional SQLite database
  • Ordered automatic schema migrations with private recovery backups
  • Multiple bootstrap servers, descriptions, labels, and independent secure Registry endpoints
  • Native Kafka OAuth and Registry Basic, token, mTLS, and OAuth profiles
  • Plaintext or verified TLS transport with default client trust or a copied PEM CA bundle
  • Typed PLAIN, SCRAM, and mTLS lifecycle with OS-backed secret references
  • Canonical Java and librdkafka authentication renderers
  • add, edit, remove, label-filtered list, and safe describe commands
  • Human, JSON, and YAML profile observations

Local diagnostics

  • Profile database, credential backend, permissions, platform, shell, and session checks
  • Read-only diagnostics with explicit deterministic repair through doctor --repair
  • Explicit Kafka protocol connectivity checks with ping
  • Installed-command discovery for Kantrip's supported adapters
  • Colored status output with plain-text and NO_COLOR support

Compatible CLI sessions

  • kcat and its kafkacat alias
  • Apache Kafka .sh commands and equivalent unsuffixed Confluent Platform commands
  • Confluent Avro, JSON Schema, and Protobuf console producers and consumers
  • Kaskade admin and consumer, including Confluent and native Apicurio decoding
  • kaf, with a private one-cluster configuration and Confluent Avro decoding
  • Private, profile-aware client configuration with connection overrides blocked
  • Consistent Bash, Zsh, and Fish subshells plus one-off command execution
  • Process-group and PTY supervision with child exit-status preservation
  • Crash-safe runtime locks, automatic stale-session recovery, and doctor --repair

Terminal experience

  • Rich-based Arcana theme with semantic colors
  • Clean stdout/stderr separation
  • NO_COLOR, TERM=dumb, non-TTY behavior, and global or command-local --no-color

Roadmap

Planned work is tracked in GitHub milestones: v0.1 (first release: hardening, final CLI contract, dedicated credential vault, kaf) and v0.2 (Strimzi and properties import, more clients). Current support is described in Compatibility.

Kantrip is pre-release software: no backward compatibility is promised before v0.1.0, including between published alpha versions. Commands, output, and stored profiles may change, and older profile databases may need to be recreated.

Quick start

pipx

pipx install kantrip

First profile session

kantrip add local
kantrip doctor
kantrip list
kantrip describe local
kantrip ping local
kantrip exec local -- kcat -L
kantrip exec local -- kafka-topics --list
kantrip exec local -- kaskade admin

Omit the command to work in a profile-scoped interactive subshell:

kantrip exec local
kantrip current
kcat -L
kafka-topics --list
exit

Command compatibility

See the compatibility guide for supported tools, versions, and limitations.

Usage

See the usage guide.

Development

See the development guide.

Run the valuable exploratory scenarios in the manual testing guide.

Releases

See GitHub Releases for release notes and downloadable artifacts.

Questions

For Q&A, go to GitHub Discussions.

Security

Report suspected vulnerabilities privately by following the Kantrip security policy.

Donations

If Kantrip is useful to you, consider supporting its development on GitHub Sponsors.

AI Assistance

The project uses AI-assisted development. The maintainer reviews and tests all AI-assisted changes before inclusion.

Acknowledgements

Sponsored by LittleHorse Built with Rich

Metadata

Release files for kantrip 0.1.0a3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kantrip 0.1.0a3
File Size Uploaded Provenance
kantrip-0.1.0a3.tar.gz 568.6 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for kantrip 0.1.0a3
File Interpreter ABI Platform
kantrip-0.1.0a3-py3-none-any.whl Python 3 none any Details

Total release size: 689.4 kB

Release files / kantrip-0.1.0a3.tar.gz

Download URL kantrip-0.1.0a3.tar.gz
Size 568.6 kB
Tags Source
SHA-256 checksum
How to use checksums
099a8de7cf688ac8290ad80fbd80cfb132c86b6a67f9e2c8df64870c8822be59
BLAKE2b-256 checksum
How to use checksums
e7e68596007b64a6cbecf70baef02d172cbedda47915ff8ba9b1d2913d03e22b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 27, 2026.

Transparency log

Release files / kantrip-0.1.0a3-py3-none-any.whl

Download URL kantrip-0.1.0a3-py3-none-any.whl
Size 120.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e9f6c71883063f147fe5b9fbcb5a4c285555a14e66d400ecc4560b31bd6b0ebf
BLAKE2b-256 checksum
How to use checksums
6bf75143496d99f10b8a5177083cffcd6b5aee0bf169511d1217de485418630a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 27, 2026.

Transparency log

Security for kantrip 0.1.0a3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for kantrip-0.1.0a3.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 27, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page