Skip to main content

A vibes-based alternative to kubectl

Project description

vibectl

A vibes‑first alternative to kubectl — because clusters deserve good vibes too.


✨ Why vibectl?

Managing Kubernetes shouldn’t feel like editing an INI file through a periscope. vibectl wraps plain‑English intent, a dash of emoji, and an LLM planner around ordinary kubectl, giving you memory‑aware, conversational control of any cluster. Keep using every manifest, context, and kube‑config you already have – just add vibes.


🚀 Feature Highlights

Category What it does
Conversational Commands vibectl get vibe pods → natural‑language queries for any verb.
LLM Planner Structured JSON contracts ensure predictable plans that you confirm.
Memory System Context persists between invocations (vibectl memory ...).
Semi‑Autonomous Loops vibectl semiauto iteratively proposes & executes safe changes.
Full Autonomy vibectl vibe plans, confirms, executes, summarises, updates memory.
Rich TUI Live watch, logs ‑f, port‑forward with pause/filter/save key‑bindings.
Traffic Proxy Optional middle‑proxy shows per‑session throughput & errors.
Chaos / Demo Tooling Drop‑in sandbox demos for CTFs, Kafka tuning, Chaos‑Monkey battles.

New in 0.6.x  Fragment‑based prompt engine, structured LLM metrics, Ollama alias support, smarter --watch UI, and a port‑forward proxy with byte counters.


🛠 Installation

Via pip (any OS)

pip install vibectl            # core CLI
pip install llm-anthropic      # Claude (default)
# or: pip install llm-openai   # OpenAI models
# or: pip install llm-ollama   # local Ollama models

Via Nix flakes (NixOS & friends)

git clone https://github.com/othercriteria/vibectl.git
cd vibectl
flake develop        # drops you into a fully wired shell

🔑 Configure an LLM key

export ANTHROPIC_API_KEY=sk-ant-...        # quickest
vibectl config set model claude-3.7-sonnet

More options? See docs/MODEL_KEYS.md.


⏱ 60‑Second Tour

1 – Ask for a vibe check

 vibectl get vibe pods
🔄 Consulting claude-3.7-sonnet for a plan…
🔄 Running: kubectl get pods -n sandbox
✨ Vibe check:
🚀 3 nginx‑demo pods in deployment 🌟

2 – Persist a fact

vibectl memory set "We're working in 'sandbox' namespace."

3 – Iterate with semiauto

vibectl semiauto "set up a demo redis"
# …you confirm each command (`y / n / a / b / m / e`)

4 – One‑liner natural language

vibectl scale vibe "nginx‑demo down to 1 replica"

5 – Rich port‑forward session

vibectl port-forward vibe "nginx-demo-service to 8090"
# Keybindings:  P‑pause  W‑wrap  F‑filter  S‑save  E‑exit

6 – Live event watch

vibectl events -n sandbox --watch

📚 Command Cheatsheet

Mode When to use Example
Just pass‑through You want raw kubectl vibectl just get pods -A
get / describe / scale / delete / logs / events Familiar verbs, plus AI summary vibectl get pods
vibe Full autonomous planner vibectl vibe "deploy redis with persistence"
semiauto Step‑wise interactive planner vibectl semiauto
auto Non‑interactive loops (used by agents) vibectl auto "keep latency <50 ms"

🧠 Memory Commands

vibectl memory show          # view
vibectl memory set "..."        # replace
vibectl memory set --edit    # $EDITOR
vibectl memory disable|enable
vibectl memory clear

The planner sees memory every turn, so write facts, goals, and preferences there.


🎮 Interactive UI Details

Watch / Logs / Events

  • Live table updates with elapsed time & line count
  • P pause display W wrap F regex filter S save buffer E exit
  • Upon exit vibectl prints a metrics table plus an LLM‑generated summary.

Port‑Forward Enhancements

Configure a proxy port range once:

vibectl config set intermediate_port_range 10000-11000

Every port-forward thereafter shows bytes ⇅, connection duration, errors, and a colourful recap.


⚙️ Key Configuration Knobs (vibectl config)

Key Default Why you’d change it
model claude-3.7-sonnet Switch to gpt-4o, ollama:llama3:latest, etc.
show_metrics false View LLM tokens & latency.
show_raw_output false Always print raw kubectl output.
theme dark light / system / custom.
live_display_max_lines  20 Default visible buffer for watch/logs.

Full schema in docs/CONFIG.md.


📦 Demo Environments

Demo What it shows Path
Bootstrap k3d + Ollama self‑contained playground examples/k8s-sandbox/bootstrap/
CTF Sandbox vibectl autonomously solves staged flags examples/k8s-sandbox/ctf/
Chaos Monkey Red vs Blue vibectl agents battle examples/k8s-sandbox/chaos-monkey/
Kafka Throughput vibectl tunes Kafka via agent loop examples/k8s-sandbox/kafka-throughput/

Each demo has its own README.md with step‑by‑step instructions.


🧪 Development & Testing

flake develop     # or: make install-dev
make check        # ruff + mypy + pytest
make test-fast    # quick subset
make bump-patch   # bump version with changelog guard

Pre‑commit hooks enforce Ruff lint/format; CI targets 100 % coverage (see TESTING.md).


🤝 Contributing

Pull requests welcome! Start with an issue or draft PR so we can vibe‑check the idea. All contributors agree to the MIT License.


© 2025 Daniel Klein & the vibectl community. Spread good vibes — even to your clusters.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vibectl-0.7.0.tar.gz (99.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vibectl-0.7.0-py3-none-any.whl (121.9 kB view details)

Uploaded Python 3

File details

Details for the file vibectl-0.7.0.tar.gz.

File metadata

  • Download URL: vibectl-0.7.0.tar.gz
  • Upload date:
  • Size: 99.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.9

File hashes

Hashes for vibectl-0.7.0.tar.gz
Algorithm Hash digest
SHA256 4989797d7b7ce77427d179d72f0c4f784d2e27eb582c0a961b463ecc810a1e7b
MD5 5d54a9db1c5aa5c234d9c675575349c7
BLAKE2b-256 3150bc0d155935b1fac1196b920ddf10e552b96c2d61d207e95bc013733cf16c

See more details on using hashes here.

File details

Details for the file vibectl-0.7.0-py3-none-any.whl.

File metadata

  • Download URL: vibectl-0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 121.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.9

File hashes

Hashes for vibectl-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 60b655cc0a2acb9f2397138f8cbf6b4014dd27780c379e3c23a8694d6664b9ce
MD5 3379270fa4ed4fb615fd8c06c60eb85e
BLAKE2b-256 ae62b7c552def1c86f6428bc6035900986c29e2a7f61fb6ce6d8a6891246688a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page