▍ Free local generator · documentation checked

Claude Code web setup script generator.

Generate the two pieces Anthropic’s cloud workflow actually uses: a cached environment setup script for tools, and a repository-owned SessionStart hook for project dependencies.

Runs locally No repository upload No account required
01 · Select

Prepare a reproducible cloud session.

Cached environment tools

These commands run as root when Anthropic builds or refreshes the environment’s file cache. Keep the total comfortably below roughly five minutes.

Repository preparation

The generated SessionStart script runs only when CLAUDE_CODE_REMOTE=true. Commands use committed lockfiles when present.

Current provider behavior: the cache preserves files, not running processes. Setup scripts rebuild the cache after configuration changes or expiry; repository hooks run on session startup and resume. Verify in Anthropic’s documentation ↗
02 · Review

Three explicit files. No hidden commands.

Cloud UI

Environment setup script

#!/usr/bin/env bash
set -euo pipefail

# Paste this into the cloud environment's Setup script field.
# It runs as root on Ubuntu 24.04 when Anthropic rebuilds the file cache.
# Keep the complete script comfortably below the roughly five-minute budget.

apt-get update
apt-get install -y --no-install-recommends gh jq ripgrep
Repository file

scripts/claude-cloud-session-start.sh

#!/usr/bin/env bash
set -euo pipefail

# This repository-owned hook runs on startup and resume.
# Skip it locally; CLAUDE_CODE_REMOTE is true in Claude cloud sessions.
if [ "${CLAUDE_CODE_REMOTE:-}" != "true" ]; then
  exit 0
fi

if [ -f package-lock.json ]; then
  npm ci
fi

exit 0
Merge into repository

.claude/settings.json

{
  "hooks": {
    "SessionStart": [
      {
        "matcher": "startup|resume",
        "hooks": [
          {
            "type": "command",
            "command": "\"$CLAUDE_PROJECT_DIR\"/scripts/claude-cloud-session-start.sh"
          }
        ]
      }
    ]
  }
}

Review every command. If .claude/settings.json already exists, merge the generated hooks object—do not overwrite other project settings.

▍ Free founder fit check

Not sure whether a setup script is enough?

Send the workflow—not your code or credentials. We’ll reply with an honest recommendation: keep Claude Code on the web and improve the setup, or use a persistent shell because the live state actually matters.

  • No sales deck or purchase required
  • Your generated scripts stay in this browser
  • A specific running task gets the most useful answer
Two fields · one real workflow

What needs to stay alive?

Describe the process or session you lose when your laptop closes.

Do not include secrets, credentials, or private repository details. We only use this information to discuss the fit check. See our privacy notice.

The commercial boundary

Rebuildable files or a live workspace?

Do not pay Terminalbox merely to avoid writing a setup script. Pay only when the state you need cannot be represented by a fresh clone plus repeatable preparation.

03 · Install

Test the generated path in a fresh session.

  1. 1

    Paste the environment script

    Add the first script to the cloud environment’s Setup script field.

  2. 2

    Commit the repository hook

    Add the shell file, make it executable, and merge the generated SessionStart hook into project settings.

  3. 3

    Start clean and inspect the log

    Open a new cloud session, confirm setup finishes, and remove any command that is slow, unnecessary, or unsafe for that repository.

Setup questions

Know where each command runs.

What belongs in a Claude Code web setup script?

Use the cloud environment setup script for tools the cloud needs but your laptop already has. Anthropic caches its filesystem output, so later fresh sessions can start with those tools already present.

What belongs in a SessionStart hook?

Use a repository-owned SessionStart hook for project preparation that should run when a session starts or resumes, such as installing dependencies from a committed lockfile.

Does this generator upload my repository or selections?

No. Generation, copying, and downloading happen in your browser. Terminalbox records only bounded page-view and button-action labels, never generated scripts, repository details, environment variables, or credentials.

Should I put secrets in either generated script?

No. Do not commit secrets or embed them in setup commands. Configure environment variables through the provider’s environment controls and follow your organization’s credential policy.

When is a persistent terminal a better fit?

Use a persistent terminal when the valuable state is a running process, interactive shell, database, tmux session, non-GitHub workflow, or frequent steering across devices—not merely files that can be rebuilt from a repository.