English | 中文
Kan-Linux(or KanLinux) is a Concise, Security and Agent‑First Linux distribution. The name Kan(勘) derives from Instructions for Practical Living by Wang Yangming, representing the philosophy of breaking through technical obscurations and returning to the system’s original simplicity. The name Kan(勘) also stands for "see through the delusions and return to simplicity".
The main goal of Kan-Linux is to build a concise, secure and Agent-First Linux distro at the edge --- locally and in the cloud.
-
Simplicity --- Eliminate overly complex wrapper layers and overengineering, following the core philosophy of ggml/llama.cpp. Kan-Linux is not dependent on any existing Linux distribution.
- Keep the LiveISO compact while supporting a rich set of modern desktop features.
- The full self-hosting bootstrapping pipeline covers only the OS base system. Heavy desktop applications(chromium,office suite...) are built separately on top of a fully bootstrapped Kan-Linux instance and distributed as optional artifacts (similar to the pinned official Firefox tar.gz/tar.xz releases).
- No GNOME or KDE desktop stacks. While GTK and Qt are capable toolkits, Kan-Linux builds a lean, minimal desktop environment from scratch. Applications are pluggable, with no mandatory global metadata, introspection subsystems, or complex hidden runtime contracts.
-
Monorepo --- Drawing lessons from many existing Linux distributions and the highly complicated Yocto Project, Kan-Linux adopts an AOSP-style single-repository architecture. All source code resides in one repository to simplify development, builds, and maintenance.
-
Secure --- Our goal is not an unbreakable system, but to shrink the TCB and attack surface, while maximizing SBOM clarity and supply-chain security.
- Optimized for single-user desktop workflows to reduce attack surface.
- Source-built --- The base OS and its components are compiled from source, with a small explicit exception list: prebuilt artifacts such as Go, Rust, Firefox, Vulkan SDK, and user-installed software. This maximizes SBOM transparency and supply-chain auditability.
- SELinux is excluded intentionally to keep the TCB minimal.
- AI-native security audit pipeline --- Kan-Linux embeds LLM-powered source-level security auditing (GLM-5.3 and other high-capability models) as a mandatory pre-compilation gate, complementing human review. Security validation shifts from post-hoc binary scanning to source-code admission review.
- 100% full self-hosting; 100% reproducible builds.
- No telemetry, no phoning home, no ads.
-
Agent-First
- No traditional package manager (such as apt, dnf, pacman......) is included. Kan‑Agent is the native system component manager, and Flatpak is provided as supplementary app delivery (since v0.3.4). AI agents are a core component of Kan-Linux: they autonomously compile, deploy, install components, run system health checks, and resolve issues.
- llama.cpp-First --- A native, integrated llama.cpp edge inference engine is provided for local AI deployment.
- Maintain a balance between Agent-first automation and plain human-readable interfaces and workflows.
The implementation of Kan-Linux OS is not fully open-sourced for now:
-
This repository hosts Open‑KanLinux, which is the open‑source subset of Kan‑Linux OS. This separation is conceptually similar to the relationship between OpenHarmony (open‑source foundation) and HarmonyOS (commercial product built upon OpenHarmony): the open‑source part exposes base components, while the complete commercial product includes additional closed‑source proprietary layers.
-
Similarly, it is clear that Xiaomi HyperOS will not be fully open-sourced, although its mobile variant is built upon Android.
-
We do not seek open-source sponsorship and are self-funded.
-
We will make Kan-Linux as secure as possible(verify with the built-in Wireshark or your white-box environment). That said, community contributions to other fully open components (such as Kan-Agent, desktop-shell) or upstream components (such as Hyprland, Quickshell, Strata) of Kan-Linux are still welcome, pls refer to our contributions to Linux community.
- Kan-Agent(based on pi, we maintain our standalone repo): https://github.com/kan-linux/kan-agent
- Hyprland(we maintain our own downstream fork): https://github.com/kan-linux/Hyprland
- strata: https://github.com/kan-linux/strata
- quickshell: https://github.com/kan-linux/quickshell
- omarchy desktop shell(featured/current desktop shell, we maintain our own downstream fork): https://github.com/kan-linux/omarchy
- screenshot(we maintain our own downstream fork): https://github.com/kan-linux/screenshot
- ggml-hexagon(based on llama.cpp, we maintain our own downstream fork): https://github.com/kan-linux/ggml-hexagon
- kernel: https://github.com/kan-linux/kernel
- noctalia(candidate desktop shell, already verified on Kan-Linux v0.3.3):https://github.com/kan-linux/noctalia
- fcitx(we maintain our own downstream fork): https://github.com/kan-linux/fcitx5
All of these fully open-source projects can be built and tested since Kan-Linux v0.3.3(screenshot can be built and tested since Kan-Linux v0.3.4, which will be released on Nov 28, 2026) . Feel free to join the corresponding projects according to your expertise. Details can be found at how to contribute.
Please refer to https://github.com/kan-linux/kan/releases/latest
- Currently focus on x86-64 laptops, PCs and hardware
- Kan-Agent is under development
- Tested and verified on limited x86-64 laptops and PCs
- Built-in support for AMD and Intel GPUs. Nvidia GPU support requires assistance from the built-in Agent or a domain specialist
- The installer supports only single-OS installation to a specified partition or a standalone disk among multiple disks(this is a design choice, pls refer to "why we do not offer dual‑boot or multi‑boot installation modes in Kan‑Linux"); LUKS encryption is not yet supported
- Potential undisclosed vulnerabilities in the Linux kernel and featured components
- UI/UX issues(such as workspace focus issue, other focus issue...)
- Inspired by Omarchy("Convention over Configuration") and Omarchy's desktop shell
- Inspired by llama.cpp
- Thanks to the entire Linux community(various tech orgs, such as Redhat(RHEL/Fedora/QEMU), SPI(Debian), Linux Foundation, Linaro, Canonical(Ubuntu), System76(Pop!_OS), UnionTech(Deepin/UOS)... and tech stacks)
- Thanks to the entire local AI community
- The Kan Linux project wants to recognize and thank the hard work of Linux community & local AI community put in. We are grateful to be part of the Linux community & local AI community and provide this modern Desktop Linux operating system
This project may include trademarks or logos belonging to third parties. Use of any third-party trademarks is governed by their respective policies.