Skip to main content

sample

PyPI version PyPI - Python Version OS support

kop

kop is a terminal-based (TUI) Kubernetes operations platform. Its goal is to provide an interactive experience similar to desktop cluster management tools, but fully within the terminal command line, aiming to solve the problem of conveniently operating Kubernetes clusters when no desktop environment is available.

Installation

Here's how to install kop.

Install from PyPI

You can install kop via PyPI with the following command:

pip install kop-cli

After installation, you can run:

kop --version

Install from an offline binary package

If the target machine cannot access PyPI, download the offline binary package from the GitHub Releases page on another machine first.

  1. Open the release version you want to install.
  2. Download the binary package that matches your operating system and CPU architecture.
  3. Copy the package to the target machine.
  4. Extract the package and run the kop binary.

On Linux or macOS, you may need to grant execute permission before running it:

chmod +x kop
./kop --version

On Windows, run kop.exe from PowerShell or Command Prompt:

.\kop.exe --version

Usage

1. Startup

kop

By default, it will load:

  • ~/.kube/config (if it exists)
  • kubeconfig files already synced under ~/.kop/

If no available cluster is found, you can import configuration from the startup page via Add or Sync.

2. Start with a Specified kubeconfig

kop --kubeconfig /path/to/kubeconfig.yaml

In this mode, the file path and kubeconfig validity are verified, and after validation it enters the resource view directly.

Operations and Shortcuts

See demo video: Watch the demo

Please refer to the Documentation for more detailed usage instructions.

FAQ

Mouse click not working

When using iTerm2 on macOS to SSH into a remote host and run kop, mouse clicks may not work. This happens because in Linux environments, most command-line programs rely on the $TERM variable to determine terminal capabilities (such as colors and bold text). A common value is xterm-256color. While xterm-256color is a general standard, it does not cover all extensions of modern terminals (such as advanced mouse protocols or synchronized updates). Textual is a very advanced TUI (text user interface) framework. To provide the best experience, it tries to detect which terminal is actually running. For iTerm2, it supports many non-standard advanced features. Textual has internal optimization logic: when it detects TERM_PROGRAM=iTerm.app, it switches to an interaction mode optimized for iTerm2. If Textual does not see TERM_PROGRAM=iTerm.app, it may avoid enabling some advanced interaction features, or due to configuration conflicts, it may fail to properly fall back to a generic mouse mode.

Solutions:

  1. Manually run export TERM_PROGRAM=iTerm.app on the remote host. After restarting kop, mouse clicks should work normally.
  2. Update local SSH config on macOS: ~/.ssh/config, add:
Host *
    SendEnv TERM_PROGRAM

Update remote host sshd config: /etc/ssh/sshd_config, add:

AcceptEnv TERM_PROGRAM

After restarting the sshd service, disconnect and reconnect to the remote host, then run kop again. Mouse clicking should be restored.

Why doesn't kop look good on macOS?

kop is built with Textual for terminal UI. Please refer to the Textual FAQ section about display issues in the default macOS terminal for fixes: https://textual.textualize.io/FAQ/#why-doesnt-textual-look-good-on-macos

Abnormal display on Linux console

You may use kop on Linux console (a monitor connected to a server via a VGA cable) and find kop UI rendering issues or even crashes. This is because Linux kernel built-in virtual terminals (tty1~tty6):

  • ❌ Do not support True Color (24-bit)
  • ❌ Do not support 256 colors
  • ✅ Only support 16 colors (sometimes even only 8)
  • ✅ Rendering is controlled by the kernel (not by a terminal emulator)

There is currently no good solution. If you must use kop on a physical terminal, one compromise is kmscon.

Kmscon is a simple terminal emulator based on linux kernel mode setting (KMS). It is an attempt to replace the in-kernel VT implementation with a userspace console. See https://github.com/kmscon/kmscon

Roadmap

Features

  • Upload local files to pod containers
  • Download files from pod containers to local
  • Multi-task workspace support

Metadata

Release files for kop-cli 0.4.2

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

Source distribution (sdist)

Source distribution for kop-cli 0.4.2
File Size Uploaded Provenance Actions
kop_cli-0.4.2.tar.gz 22.2 MB With provenance Details for kop_cli-0.4.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for kop-cli 0.4.2
File Interpreter ABI Platform Actions
kop_cli-0.4.2-py3-none-any.whl Python 3 none any Details for kop_cli-0.4.2-py3-none-any.whl

Total release size: 22.4 MB

Release files / kop_cli-0.4.2.tar.gz

Download URL kop_cli-0.4.2.tar.gz
Size 22.2 MB
Tags Source
SHA-256 checksum
How to use checksums
57c541b968bbf4cec29c10ceeefb5ce5e5b1b351502be3180848ae6277b864a9
BLAKE2b-256 checksum
How to use checksums
ef92749ca92eff3664560a1e3a784b714c3287ae5b52ba050cecdcafdfcb0f39
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jul 7, 2026.

Transparency log

Release files / kop_cli-0.4.2-py3-none-any.whl

Download URL kop_cli-0.4.2-py3-none-any.whl
Size 136.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
68c6e7f310c9def9a9b57fa0dd5fc1e00fa83b36971df930fd690dc008d7863a
BLAKE2b-256 checksum
How to use checksums
2aa26def2982a35914fe31f8457ffa56df5ebff1be6f256de0f0db9fe7b5305f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jul 7, 2026.

Transparency log

Security for kop-cli 0.4.2

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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for kop_cli-0.4.2.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 Jul 7, 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