1DOLLY 82APPLICATION closed-source-agent3REQUIRES HOST runtime@04REQUIRES HOST display@05REQUIRES HOST input@06REQUIRES HOST snapshot@07REQUIRES HOST download@08REQUIRES HOST upload@09REQUIRES HOST http@010REQUIRES HOST packages@011REQUIRES HOST threads@01213# Runs Claude Code, which the launcher downloads from the npm registry into14# the session after the notice: the image holds nothing of it.15INSTALL /Dollyfile-core f92e986b840d0d46883b4a8d6eee8082aebd56f944f318083bda74cfe3e86b1016INSTALL /Dollyfile-posix bd721815ffc3d3b9d887f57c3260749cb1db05ed2fe3f46a38b37e00ee66391b17INSTALL /Dollyfile-display a03812d93e51c6338e43063f954fb9492ee0535f94a39e5c377d504a3d9eedb818INSTALL /Dollyfile-amy 95b7ecb251d9d5c3d28eb8aaa63b6bd2a465fac35756bdf95b520884a61547e419INSTALL /demos/javascript/Dollyfile-janis-install 49ac0a17d652e8a1f249b399354ca4ad55b19df09397ccc28328406013cf4cb420INSTALL /demos/closed-source-agent/Dollyfile-secretenv 5486fdd9ea56dc2548493724774e9f6eeffe67b07019ee6aceadd654a9b1a55121INSTALL /demos/closed-source-agent/Dollyfile-anykey 77b27f70bc88545d47fd11a17929eb41f89dce1f06c16a1dffaf88a484cfddaf22INSTALL /demos/rust/Dollyfile-ripgrep f1645cc725226a27bf8936a4bfa214c7a047f7d0d2686cb4c2a66fc348e33b1d23# download and upload, which move files in and out of the agent's workspace (transfer).24INSTALL /Dollyfile-transfer 06c7f7e4b4d53f6ef7d342f48293d1e61af6e9a330d4d857b597f26471ce8c0725REQUIRES TOOL foreground26REQUIRES TOOL janis27REQUIRES TOOL janis-install28REQUIRES TOOL rg2930FILE /usr/share/doc/closed-source-agent/NOTICE31    THIS IMAGE RUNS CLAUDE CODE32    ---------------------------33    Claude Code is Anthropic's command-line coding agent. It is Anthropic's34    software and not part of Dolly; Dolly is not affiliated with or endorsed by35    Anthropic.36    - Continuing downloads Claude Code 2.1.112 (April 2026, 18.7 MB) from the37      npm registry into this browser session, checks its digest and runs it38      unchanged. This site serves nothing of it. Its use is subject to39      Anthropic's terms: https://code.claude.com/docs/en/legal-and-compliance40    - Its interface works here with your own Anthropic API key, in its minimal41      mode (--bare): no hooks, LSP, plugin sync, attribution, auto-memory,42      background prefetches, keychain reads or CLAUDE.md discovery, and only43      the Read, Edit and Bash tools. The key is asked for once, is not shown44      and is given to Claude Code alone. Usage is billed to you. Requests go45      from this browser to Anthropic; the site serving Dolly does not receive46      them.47    - Signing in with a Claude or Console account does not work in a browser:48      started as published, Claude Code stops at "Unable to connect to49      Anthropic services" before its sign-in screen, and its /login needs a50      local callback server that nothing here can run.51    - Print mode works: export ANTHROPIC_API_KEY=... and then52      closed-source-agent -p 'your request'53    - A saved or exported session contains the downloaded package and what54      Claude Code stored of your sign-in (the last 20 characters of the key).55    - Limits: an old release (the last that is JavaScript), run on Janis56      instead of Node; its Bash tool finds no shell here; a wrong key shows57      the API's error only after about three minutes of its own retries.5859# Shows the notice, installs Claude Code into the session (once) from its60# tarball at the pinned integrity and runs it unchanged: with the arguments61# given, or without any as the notice's key chose.62FILE /usr/bin/closed-source-agent63    #!/bin/slop64    package=/usr/lib/node_modules/@anthropic-ai/claude-code65    start=66    if test $# -eq 0 || ! test -s $package/cli.js; then67      clear68      cat /usr/share/doc/closed-source-agent/NOTICE69      keys=$'\nEnter (or any other key): download and start with an API key (--bare)\np: start as published        Ctrl+C: leave without downloading\n'70      test $# -eq 0 || keys=$'\nAny key: download and run it with your arguments        Ctrl+C: leave\n'71      start=$(anykey "$keys") || exit $?72    fi73    if ! test -s $package/cli.js; then74      printf '\nDownloading Claude Code 2.1.112 from registry.npmjs.org ...\n'75      janis-install --integrity sha512-9FUgJ0EOvILyhIqxFKNVliebiUjL68dwpEW3eGSSe0vkVDJ1c5qMDNWc22gW3zkD7zRAqtfQPSGv0t4vMM2DPA== @anthropic-ai/claude-code@2.1.112 || exit 176    fi77    export USE_BUILTIN_RIPGREP=078    if test $# -gt 0 || test "$start" = p; then79      janis $package/cli.js "$@"80    elif test -n "$ANTHROPIC_API_KEY"; then81      janis $package/cli.js --bare82    else83      secretenv ANTHROPIC_API_KEY $'\nAnthropic API key (not shown; Enter alone starts without one): ' janis $package/cli.js --bare84    fi85EXPORTS TOOL closed-source-agent8687FILE /etc/dolly/init.slop88    /bin/foreground -i /usr/bin/closed-source-agent89    printf '\nDolly: image entry exited; entering the recovery Slop shell. closed-source-agent starts it again.\n'90    /bin/foreground -i /bin/slop9192ENTRY /bin/foreground -i /bin/slop /etc/dolly/init.slop93