# Claude API overlay: the features that call the Claude API (frame scan, # generation routed to "api") read the same one-line key file a host install # does — ANTHROPIC_API_KEY=…, mode 600. # # docker compose -f docker-compose.yml -f docker-compose.anthropic.yml up -d # # (`archilyzer service install` adds this overlay by itself when the file # exists.) # # The file is bind-mounted READ-ONLY at the path the app's default # `generation.apiKeyFile` names (~/.config/archilyzer/anthropic.env, root's home # in the container), so no setting changes. A mount, not an env_file and not a # variable: its value never appears in `docker compose config`, in # `docker inspect`, or in .env. The app refuses a key file that group or others # can read — `chmod 600` it on the host; a bind mount keeps the host's mode. # # Not there? `up` refuses with "bind source path does not exist" rather than # creating an empty directory where the file should be. Leave the overlay out # and those features say "no API key"; every other feature works without it. # # Another path: ARCHILYZER_ANTHROPIC_ENV_FILE in .env. services: editor: volumes: - type: bind source: ${ARCHILYZER_ANTHROPIC_ENV_FILE:-${HOME:-.}/.config/archilyzer/anthropic.env} target: /root/.config/archilyzer/anthropic.env read_only: true bind: create_host_path: false umtool: volumes: - type: bind source: ${ARCHILYZER_ANTHROPIC_ENV_FILE:-${HOME:-.}/.config/archilyzer/anthropic.env} target: /root/.config/archilyzer/anthropic.env read_only: true bind: create_host_path: false