Claude Code CLI layer for OpenCharly images.
The claude-code candy installs the Claude Code CLI via the official native
installer (https://claude.ai/install.sh) — the currently-recommended method. At
image-build time it fetches the platform-native claude binary, lets the
installer self-install its launcher under the build user's home, then relocates
the real binary to /usr/local/bin/claude.
That relocation is load-bearing: a system path survives the deploy-time
home-volume mount, whereas anything a candy installs under ${HOME} at build
time is shadowed once a live pod mounts its persistent home volume over
/home/<user>. This replaces the deprecated @anthropic-ai/claude-code npm
package — a thin launcher that deferred a native-binary download to first runtime
and so failed claude --version in hermetic offline image builds.
A CUE-validated tmux terminal profile makes the same CLI available through the
generic local/SSH/nested Charly agent channel, and runtime self-updates are
disabled (DISABLE_AUTOUPDATER=1) so the image-owned install stays immutable
across real terminal sessions.
| Property | Value |
|---|---|
| Layer / candy | claude-code |
| Packages | curl (no nodejs) |
| Binary | /usr/local/bin/claude |
| Environment | DISABLE_AUTOUPDATER=1 |
| Agent channel | agent_provide: tmux, profile claude-code (terminal) |
| Service / port | none |
Compose the layer by pinning this repo in a box's candy: list:
my-dev:
candy:
base: fedora
candy:
- '@github.com/opencharly/layer-claude-code:v2026.270.0831'Verifiable offline, both in the built image and on a live deployment:
ls -l /usr/local/bin/claude
/usr/local/bin/claude --version # prints the Claude Code bannercharly.yml— theclaude-code:candy entity: thedownload:/installplan:steps, env, the tmux terminal profile, and thecheck:assertions, plus the embeddedskill:entity.CHANGELOG/— per-CalVer release notes..github/workflows/tag-on-merge.yml— CalVer tag +CHANGELOG/on merge.README.md— this user overview.
- Owning skill:
/charly-coder:claude-code— the native-install and relocation reference - Sibling AI CLIs:
/charly-coder:codex,/charly-coder:gemini - Bundled by:
/charly-hermes:hermes-full-layer,/charly-hermes:hermes opencharly/charly— the charly CLI and image builderopencharly/opencharly— the umbrella