lensAI
Health Gecti
- License — License: AGPL-3.0
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Community trust — 17 GitHub stars
Code Gecti
- Code scan — Scanned 12 files during light audit, no dangerous patterns found
Permissions Gecti
- Permissions — No dangerous permissions requested
Bu listing icin henuz AI raporu yok.
Local-first Kubernetes desktop app in Rust, with a propose-only AI assistant
lensAI
lensAI is a local-first Kubernetes desktop app, written in Rust with
egui. It reads your own kubeconfig and talks straight to your API
servers: no account, no cloud service, no telemetry.
It is built around one promise. A status is shown as current only when it is current. Anything it
cannot know is shown as unsupported, with the reason. Nothing changes on a cluster without your
confirmation, and production contexts change only through a pull request. See
the safety model.
The name is a working name and may change (see NOTICE).
Status
Pre-1.0. Not ready for everyday use. The first tagged release is 0.1.0 (v0.1.0). No binaries are
published, so build from source.
"Checked on kind" means the lensai-api calls behind a screen were run against a throwaway local
kind cluster (Kubernetes 1.30) by the suite in e2e/. Nothing has been verified on a managed
cluster (EKS, GKE, AKS) yet.
| Area | State |
|---|---|
| Shell, contexts, Namespaces, Pods, pod detail, YAML, events, logs | Built. Tested on fixtures, checked on kind |
| Deployments, Nodes (cordon, drain), Events, Problems, command palette | Built. Tested on fixtures; delete pod checked on kind |
| Other workload and config kinds, Secrets with a confirmed reveal, custom resources, Overview | Built. Tested on fixtures, Secrets checked on kind |
| Edit YAML (a replace bound to the resource version), terminals, node shell, port forwards | Built. Checked on kind |
| Helm releases (history, diff, rollback, uninstall), topology | Built. Helm checked on kind with Helm 4 |
| Assistant panel and settings | Built. The model is called only when you press a button; API keys live in the OS keychain |
| Screen lock | Ships disabled, with a "no system sign-in" state |
| SRE twin (detectors, findings, investigations) | Interfaces, store and fixtures only. No detectors for real clusters yet (Unsupported), no screens |
| Argo CD, Flux, Argo Rollouts, HPA, VPA, KEDA, Karpenter, External Secrets, Gateway API, admission | Engine only, no screens yet. Live tests written, not yet run |
| MCP server and AI CLI handoff | Engine only |
| Web and in-cluster mode | Not built (planned) |
| Linux | The only platform the app has been run on by hand. Built and tested in CI on x86_64 and aarch64 |
| Windows, macOS | Built and tested in CI (windows-latest, macos-latest). Not yet run by hand. The MCP socket is Unix-only |
Where the app cannot know something it says so instead of guessing. Some things that areUnsupported today: TLS certificate expiry on real clusters (the backend cannot read it without
reading secret values), editing a Secret in Edit YAML, and forwarding a Service port that does
not exist.
The plan is in docs/plans/roadmap.md; the findings from the first kind
run are in docs/plans/wave-7c-e2e.md.
Screenshots
There are no screenshots of the running app in the repository yet. The design contract is a single
HTML mock, design/mock/index.html: download it and open it from disk in
any browser. design/mock/NOTES.md lists every screen, state and key. A
screen is built only after its states are in the mock, and is compared with them before merge. The
app icon is in design/icon/final.
All data in the mock and in the fixtures is fictional.
What it does
- Contexts and objects. Opens each kubeconfig context on demand, lists and watches the common
kinds, and shows YAML, events and logs. A side pane shows the selected object. - Changes, with confirmation. Edit YAML replaces an object bound to the resource version you
read. Cordon, drain, delete, scale, rollback and uninstall name the context, namespace, kind,
name and effect, and use a server-side dry run where the API offers one. - Access from the desktop. A pod shell, a node shell, port forwards and a local terminal tab.
- Helm. Release history, diff, rollback and uninstall, read from Helm's own storage.
- Assistant. An optional panel that reads cluster state and proposes changes. It never applies
one. See the safety model. - Demo mode.
--demoruns on fictional clusters, with no kubeconfig needed.
Install and build
Installers and archives for each release are on the
releases page: a Windows installer and zip,
macOS disk images, Debian packages and Linux tarballs. Each file comes with SHA256SUMS and a build
attestation you can check withgh attestation verify <file> --repo DevanshChoubey/lensAI.
Code signing policy: Windows builds are not code-signed yet, so SmartScreen warns on the first
run, and macOS builds are only ad-hoc signed. See CODE_SIGNING.md for the
policy and its status, and PRIVACY.md for what lensAI sends over the network.
To build from source: the Rust toolchain is pinned to 1.100 in rust-toolchain.toml; rustup
installs it on the first build.
git clone https://github.com/DevanshChoubey/lensAI
cd lensAI
cargo build --workspace
cargo run -p lensai-app -- --demo # fictional clusters, no kubeconfig needed
cargo run -p lensai-app # your kubeconfig (KUBECONFIG, else ~/.kube/config)
cargo test --workspace # or: cargo nextest run --workspace --all-features
The binary is named lensai. --demo needs the demo feature, which is on by default for now.
The live-cluster suite in e2e/ is separate and needs Docker and kind; see
CONTRIBUTING.md.
Linux
Install a Rust toolchain with rustup. The window uses wgpu and both X11 and
Wayland. If the build reports a missing system library, install your distribution's development
packages for X11, Wayland and xkbcommon. On Debian or Ubuntu these are usually libx11-dev,libxkbcommon-dev and libwayland-dev, plus pkg-config. The app needs a Vulkan or OpenGL driver
at run time.
macOS
Install the Xcode Command Line Tools (xcode-select --install), then Rust with rustup. CI builds
on Apple silicon (macos-latest).
Windows
Install Rust with rustup and the MSVC toolchain. Visual Studio Build Tools with the "Desktop
development with C++" workload provides the linker. CI builds on windows-latest.
Architecture
lensai-app (egui desktop app)
| imports only
v
lensai-api (command, query and stream facade; fixtures; lensai-mcp-bridge)
| the Kubernetes backend crates
v
lensai-kube, lensai-registry, lensai-streams, lensai-capability, ...
|
v
your API servers (only the contexts you opened)
lensai-core (shared domain types: freshness, action risk, clock) is used by the app and the facade
| Crate | Role |
|---|---|
lensai-core |
Shared domain types: freshness, action risk, the clock. Headless; MIT OR Apache-2.0 |
lensai-api |
The command, query and stream facade that the app, the MCP server and the AI CLI handoff use. Also holds the fixture backend and the lensai-mcp-bridge binary |
lensai-kube |
Kubernetes client layer: connect, list, watch, logs, exec, port-forward, Helm |
lensai-registry |
Registers every backend capability and the extension inventory |
lensai-capability, lensai-capability-mcp, lensai-streams, lensai-plugin-host, lensai-sidecar-protocol |
Capability registry and audit, its MCP bridge, streaming cores, extension host and its sidecar protocol |
lensai-llm, lensai-agent-cli |
LLM provider transport and agent loop; agent-CLI event parsing |
lensai-app |
The desktop app (egui). Binary lensai |
e2e (lensai-e2e) |
The live-cluster suite against a throwaway kind cluster. Its own workspace, not part of the gates |
The backend crates (lensai-kube and the rest) are MIT licensed and live in this repository. See
Acknowledgements and LICENSING.md. Their plan to meet this
repository's rules is docs/plans/imported-backend.md.
The app imports only lensai-api and lensai-core, and only lensai-api imports the backend
crates. The app does not derive cluster state itself: lensai-api returns every status and count.
Most tests run on fixtures, so they need no cluster. Headless crates never depend on egui, eframe,
wgpu or winit; CI checks this on every pull request.
Safety model
Stale state is never shown as current.
- Every value carries its freshness:
live(the watch is connected),stale(the watch dropped,
with the time it dropped) orsnapshot(one list, with the time it was taken). A view whose
watch has dropped does not keep showing as live. The active context and namespace are always
visible. - A query returns a value,
Unsupportedwith the reason, or a typed error. "Forbidden by RBAC",
"API group not served" and "connection failed" are different results, never an empty list. A
partial result says what is missing.
No cluster change without confirmation.
- Every action that changes a cluster has a risk: read, write or destructive. Destructive actions
(delete, drain, scale to zero, rollback, uninstall, node shell, secret reveal) need a
confirmation that names the context, namespace, kind, name and effect. The same gate applies in
the UI, the CLI and over MCP. - A confirmed action is bound to the context, namespace and resource version it was confirmed for.
Switching context or namespace cancels pending confirmations. If the object changed since it was
shown, the change is reported and not retried silently.
Production contexts change only through a pull request. A context flagged as production is
changed only through a pull request (rule A11). lensAI never applies a change there, from the UI,
the assistant or MCP. A write ends in a pull request draft against the object's Git source (the
Argo CD or Flux source that owns it, or a repository the user linked to the context), or inUnsupported when no source is known. There is no override in the app. On a production context
the typed context name is also required for destructive actions, and turning the flag off requires
typing the name and is recorded in the audit log.
The AI only proposes. The assistant and the MCP server read and propose. A proposal goes
through the same confirmation a human uses; nothing is applied on its own. The model is called only
when you press a button. API keys are kept in the OS keychain.
Secrets stay hidden. Tokens, client keys, exec-credential output and Secret values never reach
logs, crash reports or the assistant. A Secret value is shown only after an explicit, confirmed
reveal, for 60 seconds.
Only the clusters you open. The network is used for the API servers of contexts you opened,
the auth plugins your kubeconfig names, and explicit actions you take. Starting the app contacts
no cluster until you open a context. There is no telemetry.
Input is untrusted. Kubeconfig files, manifests, Helm charts, API responses, logs and terminal
output are treated as hostile. The rules require fuzzing of parsers for them; that is not yet in
the repository.
The full rules, with their numbers, are in docs/engineering-rules.md.
Report a security problem privately, as described in SECURITY.md.
Documentation
- CONTRIBUTING.md: development setup, the gates, pull requests and DCO sign-off
- SUPPORT.md: where to ask questions and report problems
- GOVERNANCE.md: who decides, and how
- SECURITY.md: how to report a vulnerability
- CHANGELOG.md: what has changed
- docs/USAGE.md: using lensAI: connecting contexts, screens, keys, confirmations, protected contexts and the local terminal
- docs/engineering-rules.md: the rules every change follows
- design/mock/index.html: the design contract
Contributing
Bug reports and pull requests are welcome. Read CONTRIBUTING.md first: it
explains the rules every change follows and how to report a problem without sharing cluster data.
Everyone taking part follows the code of conduct.
Licence
lensai-app, lensai-api and the e2e suite are AGPL-3.0-or-later. lensai-core is MIT OR
Apache-2.0, so other projects can reuse the shared types. The nine backend crates listed in
LICENSING.md are MIT, and each crate's LICENSE-MIT carries its copyright notice.
See LICENSING.md and NOTICE.
Acknowledgements
The backend crates started from MIT-licensed Rust code. It was copied once, at rev e46211d, on
2026-11-30, and has been developed in this repository since. Each of those crates' LICENSE-MIT
keeps the copyright notice, as the MIT License requires, and NOTICE points to them.
lensAI does not depend on that code's project at run time, and that project does not review or
maintain this one.
Fonts and icons are credited in NOTICE: Geist and Geist Mono (SIL Open Font License 1.1),
and Phosphor icons through egui-phosphor (MIT).
Clean room
lensAI is independent. It is not affiliated with, endorsed by or supported by Mirantis (Lens), the
Freelens project. "Lens" is a trademark of its owner.
The project's rule (F5 in docs/engineering-rules.md) is a clean room
for design: no code, artwork, icons or screenshots from Lens, Freelens or other Kubernetes desktop
apps are used as design input. The design contract is the mock in this repo. Part of the feature
plan was drawn from the public release notes of a commercial desktop app, as a list of what to
build, not of how it looks.
Yorumlar (0)
Yorum birakmak icin giris yap.
Yorum birakSonuc bulunamadi