How coderluii/holyclaude works
Purpose and Entry Points
HolyClaude builds and publishes a self-hosted Docker development workstation: CloudCLI’s browser UI fronts Claude Code and other AI CLIs, with a persistent workspace, browser automation, and optional remote shell access. Main user entry points are docker-compose.yaml (quick Docker), docker-compose.full.yaml (full configuration), and docker-compose.podman-rootless.yaml (rootless Podman). Image construction begins in Dockerfile.
Image Assembly and Release Contract
The Dockerfile creates full and slim variants, installs runtimes/tools, and bakes patched CloudCLI plus browser support into the image. Release-sensitive versions and expected image properties are declared as a machine-readable contract and checked against build/Compose inputs.
• Dockerfile
• contracts/product-facts.json
• contracts/product-facts.v1.schema.json
Security backports and patch scripts modify upstream CloudCLI/package/browser behavior during build rather than at runtime. Immutable-input and advisory policy artifacts constrain release supply-chain decisions.
• security/immutable-inputs.yml
• scripts/patch-cloudcli-browser-runtime.mjs
• scripts/build-cryptography-security-backport.sh
Container Lifecycle and Persistent State
The container starts through a privileged lifecycle script that handles Docker UID/GID remapping, restores Claude session state, prepares persistent Git/GitHub configuration, and delegates long-running processes to s6. First boot copies default Claude settings/memory into the mounted .claude directory without overwriting later user changes.
• scripts/entrypoint.sh
• scripts/bootstrap.sh
• scripts/persist-claude-json.mjs
The key persistence boundary is host-mounted /home/claude/.claude for credentials/settings and /workspace for projects. CloudCLI’s SQLite account store is container-local by default; it can use a local Docker named volume but should not reside on network filesystems.
Supervised Runtime Services
s6-overlay is PID 1 and controls independent runtime services: CloudCLI, Xvfb, Claude-session persistence, and opt-in SSH. This separates boot-time state repair from restartable service processes and ensures signal forwarding and child reaping.
• s6-overlay/s6-rc.d/cloudcli/run
• s6-overlay/s6-rc.d/xvfb/run
• s6-overlay/s6-rc.d/sshd/run
CloudCLI listens on container port 3001 and is the browser-facing control plane for Claude Code, projects, plugins, and web terminal access. It launches as the non-root claude user with /workspace as its workspace boundary.
AI, Browser, and External Provider Boundary
Claude Code is the primary execution agent; the image also includes Gemini, Codex, Cursor, TaskMaster, and full-image-only providers. Credentials come from mounted state or environment variables and clients contact Anthropic, OpenAI, Google, Cursor, JetBrains, OpenRouter, Bedrock, Vertex, or Ollama directly—HolyClaude does not proxy provider credentials.
Chromium, Playwright, and optionally Xvfb provide browser automation. Compose supplies a large /dev/shm allocation and a permissive retained browser security profile; these are deployment-level constraints, not application logic.
• docker-compose.yaml
• docker-compose.full.yaml
• scripts/holyclaude-chromium
Deployment and Access Boundaries
Compose exposes CloudCLI only on 127.0.0.1:3001 by default. Optional SSH/Mosh requires explicit enablement, key mounts outside workspace/Claude state, persisted host keys, and port mappings. Reverse-proxy subpath deployment is mediated by HOLYCLAUDE_BASE_PATH; recommended remote access is via Tailscale or Cloudflare Tunnel rather than public port forwarding.
• docker-compose.full.yaml
• docker-compose.podman-rootless.yaml
• s6-overlay/s6-rc.d/sshd/run
CI and Artifact Publishing
GitHub Actions build and publish Docker images. The release pipeline validates product facts and integrity, while scripts provide reproducible patching, artifact verification, SBOM normalization, and policy checks.
• .github/workflows/docker-publish.yml
• scripts/verify-product-facts.mjs
• scripts/verify-immutable-inputs.mjs
Main entry points: run CloudCLI · Dockerfile Image assembly · entrypoint.sh Privileged startup · docker-compose.full.yaml Local and remote access
Components 18
Image Build & Release
- Image assembly · Builds full and slim workstation images.
Dockerfile - Product facts contract · Declares release-sensitive versions and image expectations.
contracts/product-facts.json - Security backports & patches · Patches upstream CloudCLI, browser runtime, and dependencies during image build.
scripts/patch-cloudcli-browser-runtime.mjs - Immutable input policy
security/immutable-inputs.yml - Publish pipeline · Validates contracts and publishes Docker images.
.github/workflows/docker-publish.yml
Container Runtime
- Privileged startup · Remaps IDs, restores state, prepares Git, then hands off to s6.
scripts/entrypoint.sh - First-boot bootstrap · Seeds default Claude state without overwriting persisted user changes.
scripts/bootstrap.sh - s6-overlay · Separates boot repair from restartable services and handles signals.
s6-overlay/s6-rc.d/cloudcli/run - CloudCLI · Runs as claude, serves port 3001, and manages CLI projects, plugins, and terminal access.
s6-overlay/s6-rc.d/cloudcli/run - AI CLI agents · Claude Code is primary; included clients contact providers directly.
- Browser automation · Uses Xvfb when required for browser automation.
scripts/holyclaude-chromium - Xvfb service
s6-overlay/s6-rc.d/xvfb/run - Mounted Claude state · Persists credentials, settings, memory, and Claude sessions at /home/claude/.claude.
scripts/persist-claude-json.mjs - Mounted workspace · Projects are persisted at /workspace and form CloudCLI's workspace boundary.
- CloudCLI account store · Container-local by default; a local named volume is supported but network filesystems are unsuitable.
Deployment & Access
- Compose entry points · Quick, full, and rootless launch configurations.
docker-compose.yaml - Optional SSH/Mosh · Requires explicit enablement, key mounts, persisted host keys, and port mappings.
s6-overlay/s6-rc.d/sshd/run - Local and remote access · CloudCLI binds to localhost by default; remote access uses a base path or trusted tunnel.
docker-compose.full.yaml
Connections 23
- Product facts contract → Image assembly: constrains
- Immutable input policy → Security backports & patches: governs
- Security backports & patches → Image assembly: applied during build
- Image assembly → CloudCLI: packages
- Image assembly → AI CLI agents: packages
- Image assembly → Browser automation: packages
- Publish pipeline → Product facts contract: validates
- Publish pipeline → Image assembly: builds and publishes
- Compose entry points → Privileged startup: starts container
- Compose entry points → Local and remote access: sets ports and deployment constraints
- Privileged startup → First-boot bootstrap: initializes on first boot
- Privileged startup → Mounted Claude state: restores and prepares
- Privileged startup → s6-overlay: delegates to
- s6-overlay → CloudCLI: supervises
- s6-overlay → Xvfb service: supervises
- s6-overlay → Optional SSH/Mosh: supervises when enabled
- Xvfb service → Browser automation: provides display
- CloudCLI → AI CLI agents: launches
- CloudCLI → Mounted workspace: uses
- CloudCLI → Mounted Claude state: uses credentials and settings
- CloudCLI → CloudCLI account store: stores accounts
- Local and remote access → CloudCLI: routes browser access
- Local and remote access → Optional SSH/Mosh: optionally exposes