Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

apko

$ apko Official Low Risk
Chainguard · Cloud & Infra · Apache-2.0 · macos / linux / windows

apko builds minimal, reproducible, single-layer OCI container images directly from APK package repositories using declarative YAML (apko.yaml). It generates SPDX and CycloneDX JSON SBOMs natively via --sbom-formats and writes local OCI tarballs via apko build without a Docker daemon.

FCRS-1.0 Score
84 /100
Good
Medium Confidence
Zero-Friction Install
brew install apko
CLI vs MCP Decision CLI Only

apko resolves APK packages and synthesizes local OCI tarballs and SBOM JSON files directly on disk without needing MCP.

Agent-Readiness Checklist

✓ JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 21 / 25

Fully declarative non-interactive YAML workflow producing JSON lockfiles (apko.lock.json) and SPDX/CycloneDX JSON SBOMs cleanly.

  • apko lock outputs reproducible JSON lockfiles
  • apko build emits SPDX/CycloneDX JSON SBOMs via --sbom-formats
Trust & Safety 22 / 25

Separates local apko build (tarball only) from remote apko publish, with zero Docker daemon or arbitrary shell RUN execution.

  • No RUN shell scripts—declarative APK package installation only
  • Local tarball output on apko build without implicit registry pushes
Setup & Portability 14 / 15

Single static Go binary via Homebrew, go install, and GitHub Releases across macOS, Linux, and Windows.

  • Daemonless cross-platform Go binary
Utility & Efficiency 12 / 15

Produces minimal, bit-for-bit reproducible multi-arch distroless images and SBOMs in one step.

  • Single-layer APK image assembly with built-in multi-arch and SBOM output
Maintenance & Lineage 8 / 10

Maintained by Chainguard (chainguard-dev/apko) under Apache-2.0.

  • Official chainguard-dev/apko repository
Docs & Verifiability 7 / 10

Good YAML schema examples and --help, though advanced APK packaging workflows often pair with melange.

  • Docs in chainguard-dev/apko/docs

Security, Auth & Guardrails

Auth Modes
No Auth Config File
Credential Storage

Reads OCI registry auth from ~/.docker/config.json on apko publish; apko build runs locally without registry auth.

Side Effects
Read-Only Local Write Remote Write
Cost & Quotas

100% free and open-source (Apache-2.0) from Chainguard.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# apko Agent Rules
- Prefer `apko lock` and `apko build` (local tarball) over `apko publish` until image contents and SBOMs are verified.
- Pin APK repositories and keyring entries explicitly in `apko.yaml` rather than trusting unverified third-party repos.

Agent-Ready Command Recipes

Safe Read-Only Queries

Resolve APK dependencies into a reproducible lockfile
apko lock apko.yaml --output apko.lock.json

Resolves exact APK package versions and checksums into apko.lock.json without building an image tarball.

Controlled Writes & Previews

Build a local OCI tarball with SPDX JSON SBOM
apko build --sbom-formats spdx --sbom-path ./sbom apko.yaml app:dev app.tar

Builds a reproducible distroless OCI tarball locally and emits structured SPDX JSON SBOM files into ./sbom.

Strengths for Agents

  • + Separates local apko build from remote apko publish for safe offline artifact verification.
  • + Generates reproducible apko.lock.json and SPDX/CycloneDX JSON SBOMs automatically.
  • + Zero Docker daemon and zero arbitrary Dockerfile RUN execution.

Caveats & Pitfalls

  • ! Only installs APK packages (Alpine/Wolfi); custom binaries must first be packaged as APKs (e.g., via melange).
  • ! Remote APK index resolution requires network access unless using a local APK cache.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI