Florian Schmidt 399628bf16 feat(deploy): one-step install/update from the Proxmox host (#6)
bootstrap.sh runs on the Proxmox host via
  bash -c "$(curl -fsSL .../deploy/proxmox/bootstrap.sh)"
It unpacks the repository into a temporary directory, runs
create-ct.sh and removes everything again; create-ct.sh also removes
the installer files it pushed into the CT. Nothing stays on the host.

install.sh now installs or updates: an existing checkout is pulled
(fast-forward, SHELLBOOK_REF pins are kept), the service is restarted
and health-checked, and the summary prints the address, the one-time
setup token while setup is pending, the Claude login state and the
SSH public key.

It also installs a root-owned `shellbook-update` that downloads the
installer from the repository and reruns it. Root never executes
scripts from /opt/shellbook, which the service user and its terminal
panel can modify, so deploy/update.sh is removed.

Verified in a Debian 13 container: fresh install, then an update that
pulls a new commit while a tampered checkout script is not executed;
bootstrap.test.sh checks that host and CT keep no installer files.
2026-11-16 10:57:42 +01:00

ShellBook

Notebook-style runbooks for Linux servers.

  • Notebooks are Markdown: prose plus sh blocks.
  • Commands are always shown literally, with parameters filled in, so you can copy them.
  • Steps run on a chosen host over SSH (run) or verify state with ✅/❌ (check).
  • Steps can produce files that appear as downloads, and reveal follow-up notes.
  • Claude Code (the real CLI) runs in a built-in terminal panel and edits notebooks live.

Host and SSH credential management is available from Servers & SSH in the sidebar. See docs/spec.md.

Manage servers in the browser

Open Servers & SSH to add, edit (including rename), or delete a server. Address accepts a hostname, IPv4 or IPv6; port defaults to 22. Tags remain in hosts.yaml. Disk edits reload live; stale edits return a conflict. Reload hosts explicitly to start again from the latest inventory.

Select SSH credentials for a host to choose the ShellBook key, a password, or a pasted/uploaded private key with an optional passphrase. Credentials are write-only: the browser sees their type, key fingerprint and save time, never saved secrets. Selecting ShellBook key removes the saved password/private key. OpenSSH user certificates are unavailable with ssh2 1.17.0 (no client certificate pairing API).

Test connection verifies SSH authentication with the same strict host-key confirmation as runbook execution. Install ShellBook key requires a saved password and previews the exact idempotent authorized_keys script before execution. After success, choose ShellBook key to remove the stored password. Forget host key asks for confirmation; the next connection requires fingerprint verification. The page also displays ShellBook's public key with a Copy button.

Secrets are AES-256-GCM encrypted in SHELLBOOK_DATA_DIR/ssh-credentials/; the random encryption key is SHELLBOOK_DATA_DIR/ssh-credentials.key. Both key and credential files use mode 0600 on POSIX. Keep this data directory outside the git workspace, back it up securely, and restore the key together with the ciphertext. Windows does not implement POSIX file modes; use an appropriately restricted data directory ACL there. Never put these files into the workspace repository.

S
Description
Notebook-style runbooks for Linux servers: readable shell steps, checks, parameters, SSH execution, Claude Code built in.
Readme
786 KiB
Languages
TypeScript 91.9%
Shell 4.1%
CSS 3.9%
HTML 0.1%