Cross-platform onboarding for Claude Code (and Claude Desktop) against a
third-party inference provider — first target: the Cornell AI gateway with no claude.ai
sign-in. Supersedes dotclaude/bootstrap.sh and the claude-gw.zsh wrapper.
Design: docs/superpowers/specs/2026-09-09-boot-slapper-design.md.
bs env # what this box looks like (os, label, detected provider)
bs plan [--profile aca34|cornell-faculty] [--only a,b] # what onboard WOULD do — read-only
bs doctor [--profile aca34|cornell-faculty] [--json] [--headless] # verify every artifact — read-only, exit 1 on any error
bs onboard [--profile aca34|cornell-faculty] [--auto] [--headless] # plan → confirm → apply → verify
bs capture --out <dir> # portable/translatable state as a bundle dir (spec §5); refuses secret-shaped strings
bs secrets set|check <service> # cornell-ai-gateway | mecp-device-token | mecp-api-key | mct-sync-token
bs migrate --profile cornell-faculty --checklist-only [--out <dir>] # write the save-this-first checklist (instructions.md); read-only apart from that one file
On a machine whose Claude Desktop is managed by policy (or whose policy cannot be read), bs onboard --profile cornell-faculty and
bs migrate without --checklist-only refuse with exit code 4 and write nothing; there is no override flag. bs migrate --checklist-only
still works there. On both bs capture and bs migrate, --out may not point inside Claude's own data folder, a leading ~ is expanded, and a relative path is taken as home-relative. On Windows a \\?\ or \\.\ prefixed --out is checked by its plain spelling (so it cannot reach that folder either), and a drive-relative --out (C:foo, or \foo with no drive letter) is refused. Also on Windows, trailing dots and spaces in a path segment (Claude., Claude ), the NTFS directory-stream suffixes (Claude::$INDEX_ALLOCATION, Claude:$I30) and a loopback admin share are folded the way Windows folds them before the check; a loopback share is any 127.x.x.x address in any spelling (127.1, 0x7f.1), ::1 in any IPv6 form ([::1], --1.ipv6-literal.net), localhost, or this machine's own name with or without a domain (\\box\C$\..., \\box.corp.example.edu\C$\...; matched by name, without a DNS lookup). Any other stream syntax in --out (folder:name) is refused. On every OS the nearest existing folder of --out is resolved through the filesystem, so a symlink, junction, subst drive or 8.3 short name that leads into Claude's data folder is refused too, and so is a link whose target does not exist yet but would be created inside it. The Windows rules are covered by tests against a simulated Windows filesystem, and the junction, 8.3, trailing-dot, stream-suffix and admin-share cases also run against a real Windows filesystem on the windows-latest CI leg (tests/unit/engine/win32-real-paths.test.ts). A name that reaches this machine only through DNS or a hosts-file entry is not recognised.
In a terminal onboard and doctor draw Ink screens (plan → apply → doctor); --headless gives the
line output, and --auto (no prompts, interactive steps skipped with a warning) implies it. Piped stdin
or CI also mean headless. Every onboard writes ~/.config/boot-slapper/runs/<timestamp>.jsonl.
--profile cornell-faculty is the Claude Desktop-only gateway profile for faculty/staff. Its gateway URL is a .invalid
placeholder (the repo is public and holds no real address), so bs onboard refuses until you supply it at run time:
--gateway-url <url> or the CORNELL_GATEWAY_URL env var (flag wins). The override must be an https origin only (https://host[:port]: no path, query or credentials, no plain http); a malformed override makes every command run with a known profile, including secrets set, exit 2 (it is applied before the command switch). bs onboard refuses while any URL in the profile is still a
.invalid (or .invalid., or any form with two or more trailing dots, or whitespace-padded) host; plan and doctor run while the override is absent or valid.
Fresh box:
curl -fsSL https://raw.githubusercontent.com/merpuya/boot-slapper/main/install.sh | bash
irm https://raw.githubusercontent.com/merpuya/boot-slapper/main/install.ps1 | iex
Gate-2 cutover material: docs/cutover/.
Artifacts (profile aca34, surfaces code + desktop): prereqs, claude-config, device-label, secrets, gateway-launch,
project-memory, mct, plugins, desktop-inference, desktop-mcp, desktop-skills, open-brain-auth, hosted-connectors.
Claude Desktop (third-party mode): bs onboard writes one configuration named boot-slapper into Desktop's per-user config
library (~/Library/Application Support/Claude-3p/configLibrary/, %LOCALAPPDATA%\Claude-3p\configLibrary\) — gateway provider,
a credential helper that prints the key from the secret store, MeCP (headers helper) and Open Brain (OAuth) as managed connectors —
and copies the listed dotclaude skills into Cowork's skills plugin. Quit Desktop before applying; relaunch and choose the third-party
option afterwards. On a fresh box it takes two passes: the first bs onboard writes the inference entry (Cowork's plugin directory and
ant-did do not exist yet), and a second bs onboard — after relaunching Desktop in third-party mode, opening Cowork once and quitting
again — completes the MCP servers and the skills. A device whose MDM profile sets more than the update/proxy keys is reported policy-owned (skipped, doctor info; the other artifacts still run):
IT owns that configuration.
desktop-inference's verify — so bs doctor, and therefore npm run test:parity, which spawns a live bs doctor — makes a real
GET <baseUrl>/v1/models with the stored gateway key as an in-process header, so both need network.
Secrets live in the login Keychain (macOS) or Windows Credential Manager; mecp-api-key lives in
~/.config/mecp/api_key because the SessionStart hook reads that file; mct-sync-token is copied into
~/.mct/config.json (mct's own store) at activation. Values are entered at a hidden prompt and never
appear on a command line.
bs capture reads bundle files as UTF-8 text; dotclaude tracks no binaries today.
npm install && npm test # unit tests against the recording io fake
npm run test:parity # gate 1: bs doctor vs ~/.claude/bootstrap.sh --doctor (skips without dotclaude; needs network — see below)
npm run build && node dist/cli.js plan
Phase map and task-level plan: Phase 1 docs/superpowers/plans/2026-09-09-boot-slapper-phase1-engine.md, Phase 2 docs/superpowers/plans/2026-09-10-boot-slapper-phase2-artifacts-tui.md, Phase 3 docs/superpowers/plans/2026-09-10-boot-slapper-phase3-desktop-cutover.md.