feat: initial clawdie-iso skeleton
USB installer for Clawdie-AI. Combines FreeBSD base install,
desktop-installer GPU/DE setup, and Clawdie-AI deployment into
a single rc.firstboot wizard flow.
Skeleton includes:
- build.cfg: FreeBSD 15.0-RELEASE-p4, amd64, XFCE default
- build.sh: 7-step build outline (fetch → inject → repack), stubs
- installerconfig: bsdinstall post-install hook, copies firstboot/ to HDD
- firstboot/rc.d/clawdie-firstboot: runs once on first HDD boot
- firstboot/firstboot.sh: tiered bsddialog wizard (identity, desktop,
pi profile, auto-generated secrets, AGENTS.md seeding, npm prefix setup)
- firstboot/gpu-detect.sh: pciconf PCI ID → kld/xorg driver mapping
- CLAWDIE-ISO.md: full design doc (copied from clawdie-ai)
VirtualBox excluded. pkg latest default. LLM keys deferred to pi first-run.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-17 10:20:23 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
# clawdie-iso build configuration
|
|
|
|
|
# Sourced by build.sh — edit before building
|
|
|
|
|
|
2026-03-24 00:51:22 +00:00
|
|
|
FREEBSD_VERSION="15.0-RELEASE"
|
feat: initial clawdie-iso skeleton
USB installer for Clawdie-AI. Combines FreeBSD base install,
desktop-installer GPU/DE setup, and Clawdie-AI deployment into
a single rc.firstboot wizard flow.
Skeleton includes:
- build.cfg: FreeBSD 15.0-RELEASE-p4, amd64, XFCE default
- build.sh: 7-step build outline (fetch → inject → repack), stubs
- installerconfig: bsdinstall post-install hook, copies firstboot/ to HDD
- firstboot/rc.d/clawdie-firstboot: runs once on first HDD boot
- firstboot/firstboot.sh: tiered bsddialog wizard (identity, desktop,
pi profile, auto-generated secrets, AGENTS.md seeding, npm prefix setup)
- firstboot/gpu-detect.sh: pciconf PCI ID → kld/xorg driver mapping
- CLAWDIE-ISO.md: full design doc (copied from clawdie-ai)
VirtualBox excluded. pkg latest default. LLM keys deferred to pi first-run.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-17 10:20:23 +00:00
|
|
|
FREEBSD_ARCH="amd64"
|
2026-05-12 12:17:59 +02:00
|
|
|
FREEBSD_RELEASE_SERIES="${FREEBSD_VERSION%-RELEASE}"
|
|
|
|
|
FREEBSD_ISO_BASE_URL="https://download.freebsd.org/releases/${FREEBSD_ARCH}/${FREEBSD_ARCH}/ISO-IMAGES/${FREEBSD_RELEASE_SERIES}"
|
|
|
|
|
FREEBSD_MEMSTICK_URL="${FREEBSD_ISO_BASE_URL}/FreeBSD-${FREEBSD_VERSION}-${FREEBSD_ARCH}-memstick.img"
|
|
|
|
|
FREEBSD_MEMSTICK_SHA256_URL="${FREEBSD_ISO_BASE_URL}/CHECKSUM.SHA256-FreeBSD-${FREEBSD_VERSION}-${FREEBSD_ARCH}"
|
feat: initial clawdie-iso skeleton
USB installer for Clawdie-AI. Combines FreeBSD base install,
desktop-installer GPU/DE setup, and Clawdie-AI deployment into
a single rc.firstboot wizard flow.
Skeleton includes:
- build.cfg: FreeBSD 15.0-RELEASE-p4, amd64, XFCE default
- build.sh: 7-step build outline (fetch → inject → repack), stubs
- installerconfig: bsdinstall post-install hook, copies firstboot/ to HDD
- firstboot/rc.d/clawdie-firstboot: runs once on first HDD boot
- firstboot/firstboot.sh: tiered bsddialog wizard (identity, desktop,
pi profile, auto-generated secrets, AGENTS.md seeding, npm prefix setup)
- firstboot/gpu-detect.sh: pciconf PCI ID → kld/xorg driver mapping
- CLAWDIE-ISO.md: full design doc (copied from clawdie-ai)
VirtualBox excluded. pkg latest default. LLM keys deferred to pi first-run.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-17 10:20:23 +00:00
|
|
|
|
2026-05-12 17:10:54 +02:00
|
|
|
# ISO version metadata.
|
|
|
|
|
# ISO version is independent from the bundled Clawdie-AI runtime version.
|
|
|
|
|
ISO_VERSION="0.1.0"
|
|
|
|
|
BUILD_CHANNEL="${BUILD_CHANNEL:-dev}" # dev | release
|
|
|
|
|
|
feat: initial clawdie-iso skeleton
USB installer for Clawdie-AI. Combines FreeBSD base install,
desktop-installer GPU/DE setup, and Clawdie-AI deployment into
a single rc.firstboot wizard flow.
Skeleton includes:
- build.cfg: FreeBSD 15.0-RELEASE-p4, amd64, XFCE default
- build.sh: 7-step build outline (fetch → inject → repack), stubs
- installerconfig: bsdinstall post-install hook, copies firstboot/ to HDD
- firstboot/rc.d/clawdie-firstboot: runs once on first HDD boot
- firstboot/firstboot.sh: tiered bsddialog wizard (identity, desktop,
pi profile, auto-generated secrets, AGENTS.md seeding, npm prefix setup)
- firstboot/gpu-detect.sh: pciconf PCI ID → kld/xorg driver mapping
- CLAWDIE-ISO.md: full design doc (copied from clawdie-ai)
VirtualBox excluded. pkg latest default. LLM keys deferred to pi first-run.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-17 10:20:23 +00:00
|
|
|
# Output image
|
2026-03-17 12:02:11 +00:00
|
|
|
# User-facing date format: DD.mmm.YYYY (per AGENTS.md convention)
|
2026-03-24 00:51:22 +00:00
|
|
|
#
|
|
|
|
|
# USB KEY SIZING GUIDE:
|
2026-05-13 12:19:47 +02:00
|
|
|
# 32GB USB → IMAGE_SIZE="28G" (fits typical 29.5GiB sticks)
|
2026-03-24 00:51:22 +00:00
|
|
|
# 64GB USB → IMAGE_SIZE="50G" (leaves ~14GB spare for user data/cache)
|
|
|
|
|
# 128GB USB → IMAGE_SIZE="100G" (leaves ~28GB spare)
|
|
|
|
|
# 256GB USB → IMAGE_SIZE="200G" (leaves ~56GB spare)
|
|
|
|
|
#
|
2026-05-13 12:19:47 +02:00
|
|
|
# Minimum: 32GB USB (with IMAGE_SIZE=28G)
|
|
|
|
|
# Recommended: 64GB+ USB for comfortable offline setup
|
2026-03-24 00:51:22 +00:00
|
|
|
#
|
2026-05-13 12:19:47 +02:00
|
|
|
IMAGE_SIZE="28G"
|
2026-05-12 19:43:19 +02:00
|
|
|
# build.sh overrides IMAGE_NAME with the "unified" prefix; do not edit here.
|
feat: initial clawdie-iso skeleton
USB installer for Clawdie-AI. Combines FreeBSD base install,
desktop-installer GPU/DE setup, and Clawdie-AI deployment into
a single rc.firstboot wizard flow.
Skeleton includes:
- build.cfg: FreeBSD 15.0-RELEASE-p4, amd64, XFCE default
- build.sh: 7-step build outline (fetch → inject → repack), stubs
- installerconfig: bsdinstall post-install hook, copies firstboot/ to HDD
- firstboot/rc.d/clawdie-firstboot: runs once on first HDD boot
- firstboot/firstboot.sh: tiered bsddialog wizard (identity, desktop,
pi profile, auto-generated secrets, AGENTS.md seeding, npm prefix setup)
- firstboot/gpu-detect.sh: pciconf PCI ID → kld/xorg driver mapping
- CLAWDIE-ISO.md: full design doc (copied from clawdie-ai)
VirtualBox excluded. pkg latest default. LLM keys deferred to pi first-run.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-17 10:20:23 +00:00
|
|
|
|
2026-05-12 16:53:48 +02:00
|
|
|
# Clawdie-AI ref to bundle from Codeberg.
|
|
|
|
|
# Use main for install validation so ISO firstboot exercises the current
|
|
|
|
|
# post-install setup/token flow. Use --clawdie-version X.Y.Z for release builds.
|
|
|
|
|
CLAWDIE_VERSION="main"
|
|
|
|
|
CLAWDIE_REF="${CLAWDIE_REF:-main}"
|
feat: initial clawdie-iso skeleton
USB installer for Clawdie-AI. Combines FreeBSD base install,
desktop-installer GPU/DE setup, and Clawdie-AI deployment into
a single rc.firstboot wizard flow.
Skeleton includes:
- build.cfg: FreeBSD 15.0-RELEASE-p4, amd64, XFCE default
- build.sh: 7-step build outline (fetch → inject → repack), stubs
- installerconfig: bsdinstall post-install hook, copies firstboot/ to HDD
- firstboot/rc.d/clawdie-firstboot: runs once on first HDD boot
- firstboot/firstboot.sh: tiered bsddialog wizard (identity, desktop,
pi profile, auto-generated secrets, AGENTS.md seeding, npm prefix setup)
- firstboot/gpu-detect.sh: pciconf PCI ID → kld/xorg driver mapping
- CLAWDIE-ISO.md: full design doc (copied from clawdie-ai)
VirtualBox excluded. pkg latest default. LLM keys deferred to pi first-run.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-17 10:20:23 +00:00
|
|
|
|
2026-04-27 11:56:49 +02:00
|
|
|
# Default installer choices (can be overridden by setup.txt on the writable USB config partition)
|
feat: initial clawdie-iso skeleton
USB installer for Clawdie-AI. Combines FreeBSD base install,
desktop-installer GPU/DE setup, and Clawdie-AI deployment into
a single rc.firstboot wizard flow.
Skeleton includes:
- build.cfg: FreeBSD 15.0-RELEASE-p4, amd64, XFCE default
- build.sh: 7-step build outline (fetch → inject → repack), stubs
- installerconfig: bsdinstall post-install hook, copies firstboot/ to HDD
- firstboot/rc.d/clawdie-firstboot: runs once on first HDD boot
- firstboot/firstboot.sh: tiered bsddialog wizard (identity, desktop,
pi profile, auto-generated secrets, AGENTS.md seeding, npm prefix setup)
- firstboot/gpu-detect.sh: pciconf PCI ID → kld/xorg driver mapping
- CLAWDIE-ISO.md: full design doc (copied from clawdie-ai)
VirtualBox excluded. pkg latest default. LLM keys deferred to pi first-run.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-17 10:20:23 +00:00
|
|
|
DEFAULT_PKG_BRANCH="latest" # latest or quarterly
|
2026-03-26 08:59:38 +00:00
|
|
|
DEFAULT_DESKTOP="lumina" # lumina only (sole supported DE)
|
2026-03-24 01:17:37 +00:00
|
|
|
|
|
|
|
|
# GPU driver variant (set at build time via --gpu-driver flag)
|
|
|
|
|
# intel | amd | nvidia-590 | nvidia-470 | nvidia-390 | vesa | "" (auto-detect)
|
|
|
|
|
GPU_DRIVER=""
|
2026-03-24 01:50:31 +00:00
|
|
|
|
|
|
|
|
# Deploy target
|
2026-04-06 12:11:45 +02:00
|
|
|
TARGET="baremetal" # vps | baremetal
|
2026-03-24 01:50:31 +00:00
|
|
|
|
2026-04-01 13:35:07 +00:00
|
|
|
# Cloud pre-bake vars (supplied via --assistant-name, --domain, --tz flags,
|
|
|
|
|
# or via environment variables). Env vars take precedence.
|
|
|
|
|
ASSISTANT_NAME="${ASSISTANT_NAME:-}"
|
|
|
|
|
AGENT_DOMAIN="${AGENT_DOMAIN:-}"
|
|
|
|
|
AGENT_GENDER="${AGENT_GENDER:-}"
|
|
|
|
|
TZ="${TZ:-}"
|
2026-03-24 07:45:44 +00:00
|
|
|
|
2026-05-12 19:58:33 +02:00
|
|
|
# LLM provider/model. Leave blank for post-install setup and Clawdie-AI profile defaults.
|
2026-04-01 13:35:07 +00:00
|
|
|
PI_TUI_PROVIDER="${PI_TUI_PROVIDER:-}"
|
|
|
|
|
PI_TUI_MODEL="${PI_TUI_MODEL:-}"
|
feat: make firstboot agent-name-agnostic for multi-agent deployments
Derive AGENT_NAME from ASSISTANT_NAME instead of hardcoding "clawdie".
Database names, users, and identity vars now follow the agent name.
Add configurable fields to build.cfg and shell-env.sh:
- AGENT_GENDER, PI_TUI_PROVIDER, PI_TUI_MODEL
- ZAI_API_KEY, OPENROUTER_API_KEY, EMBED_BASE_URL, EMBED_MODEL
- TELEGRAM_BOT_TOKEN, FEATURE_TELEGRAM (pre-bakeable for cloud)
Add gender selection to baremetal wizard (bsddialog radiolist).
Update bhyve-test.sh with --name flag, tap0/bridge auto-setup,
sparse disk reuse, and reduced default disk size (25G).
Tested: dry-run env generation produces correct Mevy config
(agent_name=mevy, db=mevy, provider=zai, model=glm-5).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-01 13:31:36 +00:00
|
|
|
|
|
|
|
|
# API keys (pre-baked for cloud, deferred to web UI for baremetal)
|
2026-04-01 13:35:07 +00:00
|
|
|
ZAI_API_KEY="${ZAI_API_KEY:-}"
|
|
|
|
|
OPENROUTER_API_KEY="${OPENROUTER_API_KEY:-}"
|
|
|
|
|
ANTHROPIC_API_KEY="${ANTHROPIC_API_KEY:-}"
|
feat: make firstboot agent-name-agnostic for multi-agent deployments
Derive AGENT_NAME from ASSISTANT_NAME instead of hardcoding "clawdie".
Database names, users, and identity vars now follow the agent name.
Add configurable fields to build.cfg and shell-env.sh:
- AGENT_GENDER, PI_TUI_PROVIDER, PI_TUI_MODEL
- ZAI_API_KEY, OPENROUTER_API_KEY, EMBED_BASE_URL, EMBED_MODEL
- TELEGRAM_BOT_TOKEN, FEATURE_TELEGRAM (pre-bakeable for cloud)
Add gender selection to baremetal wizard (bsddialog radiolist).
Update bhyve-test.sh with --name flag, tap0/bridge auto-setup,
sparse disk reuse, and reduced default disk size (25G).
Tested: dry-run env generation produces correct Mevy config
(agent_name=mevy, db=mevy, provider=zai, model=glm-5).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-01 13:31:36 +00:00
|
|
|
|
2026-05-12 19:58:33 +02:00
|
|
|
# Embeddings. Leave base URL blank to let Clawdie-AI choose OpenRouter when
|
|
|
|
|
# OPENROUTER_API_KEY is present, otherwise local llama-server.
|
2026-04-01 13:35:07 +00:00
|
|
|
EMBED_BASE_URL="${EMBED_BASE_URL:-}"
|
|
|
|
|
EMBED_MODEL="${EMBED_MODEL:-}"
|
2026-04-06 01:37:16 +00:00
|
|
|
EMBED_API_KEY="${EMBED_API_KEY:-}"
|
|
|
|
|
EMBED_DIMENSIONS="${EMBED_DIMENSIONS:-1024}"
|
feat: make firstboot agent-name-agnostic for multi-agent deployments
Derive AGENT_NAME from ASSISTANT_NAME instead of hardcoding "clawdie".
Database names, users, and identity vars now follow the agent name.
Add configurable fields to build.cfg and shell-env.sh:
- AGENT_GENDER, PI_TUI_PROVIDER, PI_TUI_MODEL
- ZAI_API_KEY, OPENROUTER_API_KEY, EMBED_BASE_URL, EMBED_MODEL
- TELEGRAM_BOT_TOKEN, FEATURE_TELEGRAM (pre-bakeable for cloud)
Add gender selection to baremetal wizard (bsddialog radiolist).
Update bhyve-test.sh with --name flag, tap0/bridge auto-setup,
sparse disk reuse, and reduced default disk size (25G).
Tested: dry-run env generation produces correct Mevy config
(agent_name=mevy, db=mevy, provider=zai, model=glm-5).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-01 13:31:36 +00:00
|
|
|
|
2026-04-02 15:18:50 +00:00
|
|
|
# Local LLM runtime (optional)
|
|
|
|
|
# Choices: none | ollama | llama_cpp
|
|
|
|
|
LOCAL_LLM_PROVIDER="${LOCAL_LLM_PROVIDER:-none}"
|
|
|
|
|
FEATURE_OLLAMA="${FEATURE_OLLAMA:-NO}"
|
|
|
|
|
FEATURE_LLAMA_CPP="${FEATURE_LLAMA_CPP:-NO}"
|
|
|
|
|
FEATURE_OLLAMA_HPP="${FEATURE_OLLAMA_HPP:-NO}"
|
|
|
|
|
OLLAMA_RAM_ESTIMATE="${OLLAMA_RAM_ESTIMATE:-8-16 GB}"
|
|
|
|
|
OLLAMA_DISK_ESTIMATE="${OLLAMA_DISK_ESTIMATE:-4-20 GB per model}"
|
|
|
|
|
LLAMA_CPP_RAM_ESTIMATE="${LLAMA_CPP_RAM_ESTIMATE:-8-16 GB}"
|
|
|
|
|
LLAMA_CPP_DISK_ESTIMATE="${LLAMA_CPP_DISK_ESTIMATE:-4-20 GB per model}"
|
|
|
|
|
USB_LLM_MODELS_PATH="${USB_LLM_MODELS_PATH:-/mnt/media/llm-models}"
|
|
|
|
|
|
feat: make firstboot agent-name-agnostic for multi-agent deployments
Derive AGENT_NAME from ASSISTANT_NAME instead of hardcoding "clawdie".
Database names, users, and identity vars now follow the agent name.
Add configurable fields to build.cfg and shell-env.sh:
- AGENT_GENDER, PI_TUI_PROVIDER, PI_TUI_MODEL
- ZAI_API_KEY, OPENROUTER_API_KEY, EMBED_BASE_URL, EMBED_MODEL
- TELEGRAM_BOT_TOKEN, FEATURE_TELEGRAM (pre-bakeable for cloud)
Add gender selection to baremetal wizard (bsddialog radiolist).
Update bhyve-test.sh with --name flag, tap0/bridge auto-setup,
sparse disk reuse, and reduced default disk size (25G).
Tested: dry-run env generation produces correct Mevy config
(agent_name=mevy, db=mevy, provider=zai, model=glm-5).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-01 13:31:36 +00:00
|
|
|
# Telegram (pre-baked for cloud, deferred for baremetal)
|
2026-04-01 13:35:07 +00:00
|
|
|
TELEGRAM_BOT_TOKEN="${TELEGRAM_BOT_TOKEN:-}"
|
2026-04-27 11:56:49 +02:00
|
|
|
TELEGRAM_ADMIN_IDS="${TELEGRAM_ADMIN_IDS:-}"
|
2026-04-01 13:35:07 +00:00
|
|
|
FEATURE_TELEGRAM="${FEATURE_TELEGRAM:-}"
|
feat: make firstboot agent-name-agnostic for multi-agent deployments
Derive AGENT_NAME from ASSISTANT_NAME instead of hardcoding "clawdie".
Database names, users, and identity vars now follow the agent name.
Add configurable fields to build.cfg and shell-env.sh:
- AGENT_GENDER, PI_TUI_PROVIDER, PI_TUI_MODEL
- ZAI_API_KEY, OPENROUTER_API_KEY, EMBED_BASE_URL, EMBED_MODEL
- TELEGRAM_BOT_TOKEN, FEATURE_TELEGRAM (pre-bakeable for cloud)
Add gender selection to baremetal wizard (bsddialog radiolist).
Update bhyve-test.sh with --name flag, tap0/bridge auto-setup,
sparse disk reuse, and reduced default disk size (25G).
Tested: dry-run env generation produces correct Mevy config
(agent_name=mevy, db=mevy, provider=zai, model=glm-5).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-01 13:31:36 +00:00
|
|
|
|
2026-04-06 11:45:12 +02:00
|
|
|
# Tailscale (recommended for secure remote access)
|
|
|
|
|
FEATURE_TAILSCALE="${FEATURE_TAILSCALE:-YES}"
|
2026-04-04 14:58:37 +00:00
|
|
|
TAILSCALE_AUTHKEY="${TAILSCALE_AUTHKEY:-}"
|
|
|
|
|
|
2026-04-02 10:25:07 +00:00
|
|
|
# Code hosting (local git + Forgejo by default)
|
2026-04-19 10:36:55 +00:00
|
|
|
CODE_HOSTING_MODE="${CODE_HOSTING_MODE:-git}"
|
2026-04-02 10:25:07 +00:00
|
|
|
FEATURE_GIT="${FEATURE_GIT:-YES}"
|
2026-04-19 10:36:55 +00:00
|
|
|
FEATURE_GITEA="${FEATURE_GITEA:-NO}"
|
2026-04-02 10:25:07 +00:00
|
|
|
FORGEJO_DISK_ESTIMATE="${FORGEJO_DISK_ESTIMATE:-1.2 GB}"
|
|
|
|
|
|
2026-03-24 07:45:44 +00:00
|
|
|
# SSH public key (optional, supplied via --ssh-key flag)
|
2026-04-01 13:35:07 +00:00
|
|
|
SSH_PUBLIC_KEY="${SSH_PUBLIC_KEY:-}"
|
2026-03-24 07:45:44 +00:00
|
|
|
|
|
|
|
|
# System passwords (optional, supplied via flags)
|
2026-04-01 13:35:07 +00:00
|
|
|
ROOT_PASSWORD="${ROOT_PASSWORD:-}"
|
|
|
|
|
CLAWDIE_USER_PASSWORD="${CLAWDIE_USER_PASSWORD:-}"
|