> ## Documentation Index
> Fetch the complete documentation index at: https://docs.akua.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Akua

> The packaging substrate behind every Akua installation

![A package authoring loop from package files and inputs through render, preview, and installation.](https://docs.akua.dev/images/heros/akua-index-light.svg)

[Akua](https://github.com/akua-dev/akua) is the open-source packaging substrate behind Akua's per-installation renders. Every install on Akua is an akua Package: a typed KCL program, rendered in a sandbox and pinned by digest, that turns customer inputs into Kubernetes manifests.

## Why akua

* **Typed instead of templated.** Helm values are an untyped tree parsed as YAML 1.1, and most popular charts ship no values schema. In akua, inputs, Kubernetes resources, Custom Resources and chart values are schemas, so a typo fails the render with the file and line instead of reaching a cluster.
* **Sandboxed, because charts are programs.** Helm and Kustomize can read host files, make network requests and run plugins with the authority of whatever renders them. akua runs both, and the KCL runtime, as WebAssembly with no filesystem, network, environment or process access, under memory and CPU budgets.
* **Locked dependencies.** Charts, CRDs and KCL modules are pinned by digest in `akua.lock`, with optional cosign verification.

[Why typed and sandboxed →](https://docs.akua.dev/akua/why.md) has the evidence; [Typed resources →](https://docs.akua.dev/akua/typed-resources.md) shows the workflow.

You don't have to author an akua Package by hand to use Akua. The platform can synthesize one from a Helm chart in a public OCI repository. See [Packages](https://docs.akua.dev/packages.md) for the platform contract around Package versions.

## Try it

The Package toolchain ships inside the `akua` CLI as `akua pkg`, and as the standalone `akuapkg` executable:

```bash
brew install akua-dev/tap/akua
akua pkg init hello && cd hello
akua pkg render --inputs inputs.example.yaml
```

`init` scaffolds `akua.toml`, `akua.lock`, `package.k` and `inputs.example.yaml`, typed against Kubernetes 1.35; `render` writes the resulting manifests to `./deploy`. The standalone `akuapkg` binary (`brew install akua-dev/tap/akuapkg`) runs the same commands without the `pkg` prefix.

## What akua provides

| Surface | Purpose |
| - | - |
| **`package.k`** | Install composition: KCL logic that turns inputs into Kubernetes resources |
| **`akua.toml` + `akua.lock`** | Pinned dependencies (Helm charts, other Packages, KCL modules, CRDs), digest-locked and optionally cosign-verified |
| **Typed resources** | The Kubernetes schemas of one pinned version, plus schemas generated from CRDs under `.akua/crds/` |
| **`akua pkg render`** | Executes the Package against inputs and writes deploy-ready manifests |
| **`akua pkg export`** | Emits the Package's input schema as JSON Schema 2020-12 or OpenAPI 3.1 |
| **`akua pkg publish`** | Packs the Package and pushes it to an OCI registry, cosign-signed and attested when a signing key is configured |

Renders run in a WebAssembly sandbox: no network, no shell, no environment, and only a read-only copy of the Package is visible. The same inputs, lockfile and toolchain version produce byte-identical output, unless a chart asks Helm for randomness. The sandbox protects the machine that renders; what the manifests do in a cluster is still up to your policy.

## How Akua uses akua

Akua runs akua at two points in the install lifecycle:

1. **Schema for the install wizard**: Akua reads the Package version's input schema; the wizard renders from it. UI hints from `x-ui` extensions flow through.
2. **Per-install rendering**: for every customer Install, Akua renders the Package against that customer's inputs in a sandbox and applies the result to the Cluster.

## Where to start

> [card] [Typed resources](https://docs.akua.dev/akua/typed-resources.md)
>
> Type every resource against a Kubernetes version and your CRDs.

> [card] [Package format](https://docs.akua.dev/akua/package-format.md)
>
> Authoring `package.k`: the `Input` schema, `@ui` annotations, composition.

> [card] [akua pkg commands](https://docs.akua.dev/akua/cli.md)
>
> Every command, its flags, and the exit codes.

> [card] [Source on GitHub](https://github.com/akua-dev/akua)
>
> The toolchain's source, examples, and release notes.

## Status

Akua is **alpha**. The Package format and the command contract (JSON output, error codes, exit codes) are stable enough to build on; the command set still grows. Akua pins a specific toolchain version per release and bumps it deliberately.

## Related topics

> [card] [Packages](https://docs.akua.dev/packages.md)
>
> How Package versions are created and published on Akua.

> [card] [Offers](https://docs.akua.dev/marketplace/offers.md)
>
> How your Package's schema drives the install wizard.

> [card] [Installations](https://docs.akua.dev/installs.md)
>
> Run a Package version on a Cluster.

> [card] [Products](https://docs.akua.dev/products.md)
>
> Wrap a Package into a sellable product.
