Kubernetes 控制室 - 由 Rust 构建,为工程师和 AI 代理准备就绪。
The Kubernetes control room—built in Rust, ready for engineers and AI agents.
srelens is an open-source, local-first Kubernetes desktop workspace for SREs, platform engineers, and DevOps engineers. Investigate, analyse, and take safe action across clusters from one application built with Tauri v2, React 19, and a pure-Rust core.
Website · Install · Quick start · User guide · MCP server · Developer guide · Contributing
Kubernetes troubleshooting often means moving between terminals, dashboards, YAML editors, logs, and cluster contexts. srelens brings that investigation loop into one local-first desktop workspace.
srelens uses the operating system WebView through Tauri v2 and a Rust backend built
with kube-rs and tokio. It is independently developed and is not affiliated with
Mirantis Lens or the Freelens project.
That architecture is why the download is small: srelens v0.5.0 ships a 17.1 MiB
macOS installer and a 19.8 MiB Linux .deb, against 190.2 MiB and 146.8 MiB for
Freelens v1.10.3 — roughly 11× and 7× smaller. Those are published release-asset
sizes, and the performance baselines explain how to reproduce
them (including where the gap is narrower, such as the self-contained AppImage).
See the user guide for how to use each of these.
default) are
disambiguated so every cluster stays visible and reachable.kubectl, krew, helm, and krew plugins, and
diagnose a context's exec-auth tool requirements.metrics-server is available.Download the latest release for your platform from GitHub Releases.
| Platform | Packages | Notes |
|---|---|---|
| macOS | .dmg for Apple Silicon and Intel |
Developer ID signed and notarized |
| Linux | .AppImage, .deb, .rpm |
AppImage supports the in-app updater |
| Windows | .exe, .msi |
Windows may show a SmartScreen prompt while code signing remains on the roadmap |
| Terminal UI | srelens-tui--.tar.gz / .zip, or the one-liners below |
A single binary for Linux (glibc and static musl), macOS and Windows, on x86-64 and arm64; macOS builds on a stable release are signed and notarized |
The terminal UI also installs in one line. Linux:
( f="$(mktemp)" && trap 'rm -f "$f"' EXIT &&
curl -fsSL https://raw.githubusercontent.com/srelens/srelens/main/packaging/install/install.sh -o "$f" &&
sh "$f" )macOS:
brew install srelens/tap/srelens-tuiSee the installation guide for platform-specific installation, first-launch, updating, verification, and uninstall instructions.
Run as a web app (Docker): srelens can also run as a multi-user web server
in a container. Users sign in with OIDC (or a local dev login for trials) and
each gets a fully isolated environment built only from their own uploaded
kubeconfigs. OIDC-protected clusters work with a browser-based, Headlamp-style
sign-in — srelens runs the authorization-code + PKCE flow and injects the
id_token itself, so no kubelogin/exec plugin is needed. Kubeconfigs and tokens
are sealed at rest under a required SRELENS_MASTER_KEY that is never written to
disk; decrypted files live only in tmpfs. Some desktop-only actions (host shell,
raw helm repo/plugin) are gated off the shared surface — web users get
RBAC-scoped in-pod exec terminals instead. See docs/WEB.md for
deployment, environment variables, and the full security model.
srelens includes an MCP server generated from the same capability registry used by the desktop backend. Supported backend capabilities can therefore be used by MCP-capable clients without creating a separate cluster integration layer.
Open Settings → MCP to:
srelens CLI for stdio connections, which need no token — the
client already holds your privileges by spawning the process;You can also start the server directly:
srelens --mcp-stdio
srelens --mcp-http 127.0.0.1:8765Destructive tools prompt for confirmation in the app. Headless runs have no
dialog to show, so they need "_confirm": true on the call and a
process-level opt-in — --mcp-allow-destructive to change anything, or
--mcp-allow-sensitive-reads to read Secrets. The two are independent, so
reading a Secret never implies permission to drain a node, and neither flag
alone authorizes anything without _confirm. There's no GUI toggle for
stdio. See docs/MCP.md for the full security model, including
the Host-header check, audit log, and token storage.
Example stdio configuration:
{
"mcpServers": {
"srelens": {
"command": "srelens",
"args": ["--mcp-stdio"]
}
}
}MCP access uses your locally authenticated cluster contexts. Review tool calls and use appropriate Kubernetes RBAC permissions, especially with critical clusters.
nvm install && nvm use to use the version in .nvmrc.git clone https://github.com/srelens/srelens
cd srelens
pnpm install
pnpm dev| Command | Purpose |
|---|---|
pnpm dev |
Launch the desktop application in development mode |
pnpm test |
Run JavaScript and TypeScript tests |
cargo test |
Run Rust workspace tests |
pnpm build |
Build the production frontend |
pnpm tauri build |
Create packaged desktop binaries |
See the developer guide for architecture, testing standards, and instructions for adding capabilities.
React 19 + TypeScript
│
│ Tauri commands and events
▼
Tauri v2 desktop shell
│
▼
Pure-Rust backend
├── capability registry
├── Kubernetes integration with kube-rs
├── live watches, logs, exec, and port forwarding
├── Helm and metrics
└── MCP server over stdio and loopback HTTPRepository layout:
apps/desktop/
src/ React and TypeScript desktop UI
src-tauri/ Tauri application and Rust command bridge
crates/
capability/ Backend capability registry
kube/ Kubernetes clients, watches, actions, Helm, and metrics
mcp/ MCP server
docs/ Installation, usage, development, and project documentationsrelens is stable and in active development, with regular releases for macOS, Linux, and Windows. macOS builds are Developer ID signed and notarized, and supported packages update in place through the in-app updater.
New capabilities land continuously, so the release notes are worth a glance when you upgrade. Feedback, bug reports, and reproducible troubleshooting details are always welcome.
Contributions are welcome. Start with:
Please review the Code of Conduct before participating.
srelens is open source under the MIT License.
Not affiliated with Mirantis Lens or the Freelens project.
暂无开放 Issues,或尚未同步最近议题。