alpine-install-claude
v1.0.3
Published
Install and launch Claude Code on Alpine Linux
Maintainers
Readme
alpine-install-claude
One-command installer for Claude Code on Alpine Linux.
Alpine Linux uses musl libc and a minimal base, which requires a few extra packages before Claude Code can run. This tool handles everything and launches Claude.
Usage
npx alpine-install-claudeThat's it. The script will:
- Install required system packages via
apk - Set
USE_BUILTIN_RIPGREP=0in your shell profile (uses Alpine's native ripgrep instead of the bundled glibc binary) - Install Claude Code via the official native binary installer
- Launch
claude
Any arguments are passed through to claude:
npx alpine-install-claude --versionWhat gets installed (apk)
| Package | Why |
|---|---|
| bash | Claude Code requires bash (Alpine defaults to ash) |
| git | Required for Claude's git operations |
| curl | Used to fetch the Claude installer |
| libgcc | GNU C runtime — needed by the native binary |
| libstdc++ | GNU C++ library — needed by the native binary |
| ripgrep | Fast search used by Claude (rg) |
Requirements
- Alpine Linux
- Node.js >= 18 (just enough to run
npx) - Root or
sudoaccess (forapk add)
License
MIT
