Skip to content
@kcl-lang

The KCL Programming Language

KCL is an open-source constraint-based record & functional language mainly used in configuration and policy scenarios.

Hey, this is KCL community 👋

💻 Website | 👩‍💻 Quick Start | 👀 Blog | 📦 Modules | 🔧 SDKs | 🔌 Plugins | 💻 IDE Extensions | 🎮 Playground |☸️ KRM KCL Spec

KCL is a constraint-based record & functional language mainly used in cloud-native configuration and policy scenarios. It is hosted by the Cloud Native Computing Foundation (CNCF) as a Sandbox Project.

What is it for?

KCL aims to provide the following capabilities:

  • Hide infrastructure and platform details by defining more appropriate API abstractions to reduce the burden of developers.
  • Mutate and validate existing config files or manifests through numerous community modules.
  • Manage large-scale configuration data across teams without side effects through configuration and policy language for GitOps.

Specifically, KCL can

  • Improve the ability to semantically validate configurations at the code level, such as schema definitions, required/optional attribute requirements, types, range constraints, and etc.
  • Provide capabilities for writing, combining, and abstracting configuration chunks, such as structure definitions, structure inheritance, constraint definitions, and configuration policy merging.
  • Enhance configuration flexibility by adopting modern programming language features, such as conditional statements, loops, functions, and package management, to improve configuration reusability.
  • Provide comprehensive toolchain support, including rich IDE extensions and toolchains support to reduce the learning curve and enhance the user experience.
  • Enable easier sharing, propagation, and delivery of configurations between different teams/roles through package management tools and OCI registries.
  • Offer a high-performance compiler to meet the demands of scalable configuration scenarios, such as rendering performance for generating configurations for different environments and topologies based on a baseline configuration and configuration automation modification performance requirements.
  • Improve automation integration capabilities through multi-language SDKs, KCL language plugins, and other means, significantly reducing the learning curve while leveraging the value of configuration and policy writing with KCL.
  • Used as a platform engineering language to deliver modern apps with KusionStack.

Documents

See the KCL website for more information.

Community

See the community for ways to join us.

Pinned Loading

  1. kcl kcl Public

    KCL Language Core and API

    Rust 2.5k 176

  2. kcl-lang.io kcl-lang.io Public

    KCL Website and Documentation

    Shell 22 56

  3. cli cli Public

    KCL Command Line Interface (CLI).

    Go 38 29

  4. modules modules Public

    KCL Community Modules. View on Artifact Hub: https://artifacthub.io/packages/search?org=kcl&sort=relevance&page=1

    KCL 41 54

  5. lib lib Public

    KCL Multiple Language Bindings including Rust, Go, Python, Java, Kotlin, .NET, Swift, Lua, Node.js, Zig, C, C++, WASM, etc.

    C# 21 17

  6. krm-kcl krm-kcl Public

    Kubernetes Resource Model KCL Specification and Integrations including Kubectl, Kustomize, Helm, Helmfile, Crossplane, KPT, etc.

    KCL 37 18

Repositories

Showing 10 of 46 repositories
  • flux-kcl-controller Public

    Flux KCL Controller

    kcl-lang/flux-kcl-controller's past year of commit activity
    Go 30 Apache-2.0 10 2 3 Updated Nov 27, 2026
  • kcl-plugin Public

    KCL Plugins

    kcl-lang/kcl-plugin's past year of commit activity
    Go 8 Apache-2.0 3 4 (4 issues need help) 3 Updated Nov 25, 2026
  • rules_kcl Public

    A Bazel ruleset for generating configuration files with KCL

    kcl-lang/rules_kcl's past year of commit activity
    Starlark 2 Apache-2.0 2 0 1 Updated Nov 25, 2026
  • kpm Public

    KCL Package Manager

    kcl-lang/kpm's past year of commit activity
    Go 38 Apache-2.0 59 0 5 Updated Nov 25, 2026
  • tree-sitter-kcl Public

    A tree-sitter grammar for KCL

    kcl-lang/tree-sitter-kcl's past year of commit activity
    JavaScript 9 Apache-2.0 10 2 (1 issue needs help) 0 Updated Nov 25, 2026
  • intellij-kcl Public

    IntelliJ IDEA KCL Extension

    kcl-lang/intellij-kcl's past year of commit activity
    Java 12 Apache-2.0 10 1 0 Updated Nov 25, 2026
  • cli Public

    KCL Command Line Interface (CLI).

    kcl-lang/cli's past year of commit activity
    Go 38 Apache-2.0 29 1 0 Updated Nov 25, 2026
  • konfig Public

    KCL Kubernetes Config Abstraction & Composition Module

    kcl-lang/konfig's past year of commit activity
    KCL 17 Apache-2.0 9 1 0 Updated Nov 25, 2026
  • .project Public

    Project metadata for KCL - CNCF .project automation

    kcl-lang/.project's past year of commit activity
    1 1 1 0 Updated Nov 24, 2026
  • kcl-go Public

    KCL Go SDK

    kcl-lang/kcl-go's past year of commit activity
    Go 57 Apache-2.0 31 0 0 Updated Nov 24, 2026