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 Kafka profiles for kcat, the Apache Kafka and Confluent CLIs, Kaskade, kaf, kcl, and applications you run with kantrip exec, over plaintext, verified TLS, SASL/PLAIN, SCRAM, mTLS, or OAuth where the client supports it. 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
  • kcl, with a private configuration and Confluent Registry administration and 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 the GitHub milestone v0.1 (first release: hardening, final CLI contract, dedicated credential vault, more clients, Strimzi and properties import). Current support is described in Compatibility.

Kantrip is pre-release software: no backward compatibility is promised before v0.1.0, including between published alpha and beta 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.0b1

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.0b1
File Size Uploaded Provenance
kantrip-0.1.0b1.tar.gz 614.8 kB With provenance Details

Built distribution (wheel)

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

Total release size: 756.3 kB

Release files / kantrip-0.1.0b1.tar.gz

Download URL kantrip-0.1.0b1.tar.gz
Size 614.8 kB
Tags Source
SHA-256 checksum
How to use checksums
116d2bdd3226482f90f5b96262cdc9540d5118bd443f0f7232053b41d1352ba2
BLAKE2b-256 checksum
How to use checksums
1fa464af6dd365ed4d9db84de530b2ed65b978775203a5d90ca172392a6dc37b
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 29, 2026.

Transparency log

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

Download URL kantrip-0.1.0b1-py3-none-any.whl
Size 141.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2cfac0624b178dc52931b2bce1cdfd7ccb4ea86e1c2388863d5dd53738f1ba18
BLAKE2b-256 checksum
How to use checksums
3e73658b393fddf4cc36c6c6f61de116f87134753f41a932b45b6e654dbe1991
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 29, 2026.

Transparency log

Security for kantrip 0.1.0b1

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.0b1.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 29, 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